function preload_image(_image) {
	var image = new Image;
	image.src = _image;
}

/*
 * Change county image onmouseover on index page
 */
function change_image(region) {
	var ShowItem = document.getElementById("map");
	//var LinkItem = document.getElementById("county_" + region);
	ShowItem.style.backgroundImage = 'url(./images/map/map_' + region + '.gif)';
	//LinkItem.style.textDecoration = "underline";
	return true;
}

/*
 * Change back county image onmouseout on index page
 */
function hide_image(region) {
	var ShowItem = document.getElementById("centrer");
	var LinkItem = document.getElementById("county_" + region);
	//ShowItem.style.backgroundImage = 'url(/img/none.gif)';
	//LinkItem.style.textDecoration = "none";
	return true;
}


$(".container").css("background-image","none");

preload_image('./images/map/map_1.gif');
preload_image('./images/map/map_2.gif');
preload_image('./images/map/map_3.gif');
preload_image('./images/map/map_4.gif');
preload_image('./images/map/map_5.gif');
preload_image('./images/map/map_6.gif');
preload_image('./images/map/map_7.gif');
preload_image('./images/map/map_8.gif');
preload_image('./images/map/map_9.gif');
preload_image('./images/map/map_10.gif');
preload_image('./images/map/map_11.gif');
preload_image('./images/map/map_12.gif');
preload_image('./images/map/map_13.gif');
preload_image('./images/map/map_14.gif');
preload_image('./images/map/map_15.gif');
preload_image('./images/map/map_16.gif');
preload_image('./images/map/map_17.gif');
preload_image('./images/map/map_18.gif');
preload_image('./images/map/map_19.gif');
preload_image('./images/map/map_20.gif');
preload_image('./images/map/map_21.gif');
preload_image('./images/map/map_22.gif');
preload_image('./images/map/map_23.gif');
preload_image('./images/map/map_24.gif');
preload_image('./images/map/map_25.gif');
preload_image('./images/map/map_26.gif');

