var W3CDOM = document.getElementById;

window.onload=start;

function MouseOver(pic)
{
	var ext = ".jpg)";
	var map = getObj("map");
	map.style.background = "url(./images/maps/" + pic.id + ext;
	var n = get_sitenum(pic.id);
	if (n == 0) ext = ".gif)";
	pic.style.background = "url(./images/" + pic.id + "_over" + ext;
}

function MouseOut(pic)
{
	var ext = ".jpg)";
	var map = getObj("map");
	map.style.background = "url(./images/maps/pic.jpg)";
	
	var n = get_sitenum(pic.id);
	if (n == 0) ext = ".gif)";
	pic.style.background = "url(./images/" + pic.id + ext;
}


function start() {
if (!W3CDOM) return;

var pics = new Array();

for (sc=0; sc<9; sc++)
{
	try{
	var Pic = "pic" + sc;
	pics[sc] = getObj(Pic);
	
	/*try
	{pics[sc].onclick = function(){setPics(this.id)}}
	catch(err){}*/
	
	pics[sc].onmouseover = function(){MouseOver(this)};
	pics[sc].onmouseout = function(){MouseOut(this)};
	pics[sc].onclick = function(){MouseOut(this)};
	}
	catch(err){}
}

}

