// PRELOAD DE IMAGENES //
var toc = new Array();

function item(off, over)
{
	this.off = document.createElement("img"); this.off.src = off;
	this.over = document.createElement("img"); 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;
}

function overmapa(str) 
{
	document.getElementById("mapa").src = item[str].off.src;
}

