/*
 * Index page scripts 
 */

/* 
 * Preload onmouseover images
 */
function preload_image(_image) {
	var image = new Image();
	image.src = _image;
}

/* 
 * Change county image onmouseover on index page 
 */
function change_image (id) {	
	var ShowItem1 = document.getElementById("mapa1");
	var LinkItem = document.getElementById("county_" + id);	
	ShowItem1.src = 'img/provincias/'+id + '.gif';
	LinkItem.style.textDecoration = "underline";
	LinkItem.style.color = "#CC0000";
	return true;
}

/* 
 * Change back county image onmouseout on index page
 */ 
function hide_image (id) {
	var ShowItem1 = document.getElementById("mapa1");
	var LinkItem = document.getElementById("county_" + id);
	ShowItem1.src = 'img/provincias/mapa.png';
	LinkItem.style.textDecoration = "none";
	LinkItem.style.color = "#ffffff";
	return true;
}

/*
 * Popup new news window
 */
var newWin;
function popUp(page, name, details)
{
	newWin=window.open(page, name, details);
	newWin.focus();    
	return false;  
}


