// PRELOAD DE IMAGENES //

var status = 1;
var toc = new Array();
var nn4 = document.layers ? true:false;

function item(off, over){
	this.off = new Image(); this.off.src = off;
	this.over = new Image(); this.over.src = over;
}
function cache(id, off, over){
	item[id] = new item(off, over);
	toc[toc.length] = id;
}
function over(id){
	document[id].src = item[id].over.src;
}
function out(id){
	document[id].src = item[id].off.src;
}

//OVER,OUT CON LAYERS

function overid(id,Lyr){
	if (nn4){
		document.layers[Lyr].document[id].src = item[id].over.src;
	} else {
		document[id].src = item[id].over.src;
	}
}

function outid(id,Lyr){
	if (nn4){
		document.layers[Lyr].document[id].src = item[id].off.src;
	} else {
		document[id].src = item[id].off.src;
	}
}

// FIN DE PRELOAD DE IMAGENES //
	
	cache("bot01", "../esp/imgs/anterior.gif", "../esp/imgs/anteriorHover.gif");
	cache("bot02", "../esp/imgs/siguiente.gif", "../esp/imgs/siguienteHover.gif");
	cache("bot03", "../ing/imgs/anterior.gif", "../ing/imgs/anteriorHover.gif");
	cache("bot04", "../ing/imgs/siguiente.gif", "../ing/imgs/siguienteHover.gif");
	


// POPUP //
function Ventana(URL,Nombre,Flags) { 
  window.open(URL,Nombre,Flags);
}
