function jpg_over(names) {
	document.images[names].src=document.images[names].src.replace('.jpg','r.jpg');
} 
function jpg_out(names) {
	document.images[names].src=document.images[names].src.replace('r.jpg','.jpg');
}

function change_pic() {
	n = Math.round(Math.random()*8);
	document.all.top_pic.style.backgroundImage='url("'+imgpath+'top-pics/top-pic'+n+'.jpg")';
	document.all.right_pic.style.backgroundImage='url("'+imgpath+'top-pics/right-pic'+n+'.jpg")';
	document.all.logo.style.backgroundImage='url("'+imgpath+'top-pics/logo'+n+'.jpg")';
}

function map_over(id) {
	document.images["map"].src='../img/map/'+id+'.gif';	
}
 
function map_out(id) {
	document.images["map"].src='../img/map/all_city.gif';	
}


function showLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
// 	document.layerName.visibility="visible"';
}
function hideLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}


ns=0;
layerRef="document.all";
styleSwitch=".style";
if (navigator.appName == "Netscape") {
	ns=1;
	layerRef="document.layers";
  	styleSwitch="";
}