function showsubmenu(id){
	submenu=document.getElementById('s'+id);
	for(i=1;i<=4;i++){
		if(i==id){
			submenu.style.display="block";
		} else{
			document.getElementById('s'+i).style.display="none";
		}
	}
}

var win=null;

function WinOpen(url) {
	if(!win||win.closed){
		win=window.open(url,"sub",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,titleber=1,resizable=1,width=520,height=600,top=30,left=30,screennX=30,screennY=30,innerwidth=520,innerheight=600');
		win.location.href=url;

		win.opener=parent;

		if(win.closed==undefined){win.closed=true;}
		win.focus();
	}

}

function ExampleOpen(url) {
	if(!win||win.closed){
		win=window.open(url,"sub",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,titleber=1,resizable=1,width=520,height=560,top=30,left=30,screennX=30,screennY=30,innerwidth=520,innerheight=560');
		win.location.href=url;

		win.opener=parent;

		if(win.closed==undefined){win.closed=true;}
		win.focus();
	}

}

function MapOpen(url) {
	if(!win||win.closed){
		win=window.open(url,"sub",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,titleber=1,resizable=1,width=620,height=600,top=30,left=30,screennX=30,screennY=30,innerwidth=620,innerheight=600');
		win.location.href=url;

		win.opener=parent;

		if(win.closed==undefined){win.closed=true;}
		win.focus();
	}

}

function WinClose() {
	win.close();
}

function closepage(n){
w = window.close();
}

function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}