// 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 //

function cambio(src,img){
	document[src].src = img;	
}
