﻿function isDefined(variable) {
    return (typeof (window[variable]) == "undefined") ? false : true;
}

function cargarMouseOver() {
    imgsrc = $(this).attr("src");
    matches = imgsrc.match(/_on/);
    if (!matches) {
        imgsrcON = imgsrc.replace(/_off.gif$/ig, "_on.gif");
        $(this).attr("src", imgsrcON);
    }
}

function cargarMouseOut() {    
    if (isDefined("imgsrc"))
        $(this).attr("src", imgsrc);
}
  
function display(v_nombreImagen, v_urlImagen) 
{
    if (document.images && typeof v_urlImagen != 'undefined')
        document[v_nombreImagen].src = v_urlImagen;
}
            
   