function ZoomLg(sPicURL,idioma) { 
     window.open( "zoom.html?img="+sPicURL+"&idioma="+idioma, "","resizable=1,HEIGHT=200,WIDTH=200"); 
   } 

function ZoomF(sPicURL,idioma) { 
     window.open( "zoom_ficha.html?img="+sPicURL+"&comentario="+idioma, "","resizable=1,HEIGHT=200,WIDTH=200"); 
   } 

function fl_intro(idioma) {
	var so = new SWFObject("media/Flash/"+idioma+"_cabecera.swf", "cabecera", "675", "131", "7", "#FFFFFF");
	so.addVariable("imglist_fn", "cabecera.php");
        so.addVariable("img_path", "media/Image/Cabeceras/img");
        so.addVariable("interval", "7000");
        so.addVariable("w", "675");
        so.addVariable("h", "131");
	so.addParam("wmode", "opaque");
	so.addParam("menu", "false");
	so.write("Cabecera_Imagenes");
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}

function SimpleSwap(el, which) {
    el.src = el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup() {
    var x = document.getElementsByTagName("img");
    for (var i = 0; i < x.length; i++) {
        var oversrc = x[i].getAttribute("oversrc");
        if (!oversrc) {
            continue;
        }
        x[i].oversrc_img = new Image;
        x[i].oversrc_img.src = oversrc;
        x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
        x[i].onmouseout = new Function("SimpleSwap(this);");
        x[i].setAttribute("origsrc", x[i].src);
    }
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}