function ROfunction(){
	var imgNum=document.getElementsByTagName("img");
	var inputNum=document.getElementsByTagName("input");
	overNum=new Array;
	for(i=0;i<imgNum.length;i++){overNum[i]=imgNum[i];}
	for(i=0;i<inputNum.length;i++){overNum[i+imgNum.length]=inputNum[i];}
	for(i=0;i<overNum.length;i++){
		if(overNum[i].className.indexOf("Rover")!=-1){
			overNum[i].overimg=new Image();
			if(overNum[i].className.indexOf(":")!=-1){
				Replace=overNum[i].className.split(":");
				Replace=Replace[1].split(" ");
				overNum[i].overimg.src=Replace[0];
			}else{
				Replace = overNum[i].src.length;
				overNum[i].overimg.src=overNum[i].src.substring(0,Replace-4)+"-o"+overNum[i].src.substring(Replace-4,Replace);
			}
			overNum[i].setAttribute("out",overNum[i].src);
			overNum[i].onmouseover=new Function('this.src=this.overimg.src;');
			overNum[i].onmouseout=new Function('this.src=this.getAttribute("out");');
		}
	}
}

function layerswich(layernumber){
	j1=document.getElementById("weekly");
	j2=document.getElementById("monthly");
	if(layernumber == "weekly"){
		j1.style.display='block';
		j2.style.display='none';
	}else{
		j1.style.display='none';
		j2.style.display='block';
	}
}

function floatingFn(Show,Element){
	if(Show){
		document.getElementById(Element).style.display='block';
		document.getElementById(Element).style.zindex=100;
	}else{
		document.getElementById(Element).style.display='none';
		document.getElementById(Element).style.zindex=1;
	}
}




var os="win";
var agent=navigator.userAgent;
if(agent.indexOf("Mac")!=-1) os="mac";
if(os=="win"){
	if(agent.indexOf("MSIE 6.0")!=-1){
		document.write ('<style type="text/css">')
		document.write ('body{')
		document.write ('font-size:100%;')
		document.write ('line-height:100%;')
		document.write ('}')
		document.write ('.tag{')
		document.write ('line-height:200%;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form .textbox{')
		document.write ('height:20px;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form{')
		document.write ('padding-bottom:5px')
		document.write ('}')
		document.write ('</style>')
	}
	if(agent.indexOf("MSIE 7.0")!=-1){
		document.write ('<style type="text/css">')
		document.write ('body{')
		document.write ('font-size:100%;')
		document.write ('line-height:100%;')
		document.write ('}')
		document.write ('.tag{')
		document.write ('line-height:200%;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form .textbox{')
		document.write ('height:16px;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form{')
		document.write ('padding-bottom:5px')
		document.write ('}')
		document.write ('</style>')
	}
	if(agent.indexOf("Firefox")!=-1){
		document.write ('<style type="text/css">')
		document.write ('body{')
		document.write ('font-size:100%;')
		document.write ('line-height:100%;')
		document.write ('}')
		document.write ('.tag{')
		document.write ('line-height:180%;')
		document.write ('}')
		document.write ('.weekly,.monthly{')
		document.write ('line-height:135%;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form .textbox{')
		document.write ('height:16px;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form{')
		document.write ('padding-bottom:8px')
		document.write ('}')
		document.write ('</style>')
	}

}else{
	if(agent.indexOf("Safari")!=-1){
		document.write ('<style type="text/css">')
		document.write ('body{')
		document.write ('font-size:89%;')
		document.write ('letter-spacing:-0.02em;')
		document.write ('line-height:100%;')
		document.write ('}')
		document.write ('.tag{')
		document.write ('line-height:180%;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form{')
		document.write ('padding-bottom:8px')
		document.write ('}')
		document.write ('</style>')
	}
	if(agent.indexOf("Firefox")!=-1){
		document.write ('<style type="text/css">')
		document.write ('body{')
		document.write ('font-size:107%;')
		document.write ('letter-spacing:-0.02em;')
		document.write ('line-height:90%;')
		document.write ('}')
		document.write ('.tag{')
		document.write ('line-height:180%;')
		document.write ('}')
		document.write ('div#leftmenu .leftmenublock form{')
		document.write ('padding-bottom:8px')
		document.write ('}')
		document.write ('</style>')
	}
}


function ow1(url) {
  WO = window.open(url,'pop01','width=650,height=500,location=yes,scrollbars=yes,resizable=yes');
  WO.focus();
}

function ow2(url) {
  WO = window.open(url,'pop02','width=590,height=500,location=yes,scrollbars=no,resizable=no,status=no');
  WO.focus();
}

function ow3(url) {
  WO = window.open(url,'pop03','width=650,height=500,location=yes,scrollbars=yes,resizable=yes');
  WO.focus();
}
