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");');
		}
	}
}
window.onload=ROfunction;

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,toolbar=no,location=yes,menubar=no,scrollbars=yes,resizable=yes');
  WO.focus();
}

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

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


var swfVersion="7";

var VBflash="ShockwaveFlash.ShockwaveFlash."+swfVersion;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin){

	plugin = parseInt(plugin.description.match(/\d+\.\d+/)) >= swfVersion;

}else{
	document.write('<script language=VBScript>\n');
	document.write('on error resume next\n');
	document.write('plugin=(IsObject(CreateObject(VBflash)))\n');
	document.write('</script\>');
}
function showSwf(){
	if (plugin){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+swfWidth+'" height="'+swfHeight+'" wmode="transparent">');
		document.write('<param name="movie" value="'+ swf +'" /><param name="loop" value="true" /><param name="quality" value="high" /><param name="base" value="'+swfDirectory+'">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<embed src="'+ swf +'" base="'+swfDirectory+'" loop="true" quality="high" swLiveConnect="false" width="'+swfWidth+'" height="'+swfHeight+'" type="application/x-shockwave-flash" wmode="transparent"></embed>');
		document.write('</object>');
	}else{
		document.write(swfNone);
	}
}


