//...Scripts

//...change images
//--------------------------------------------------
pre_img_ar = new Array();
for(i=1;i<=12;i++){
	pre_img_ar[i] = new Image();
	ii = (i<10)? '0'+i:i;
	pre_img_ar[i].src = "../images/common/menu_"+ii+"o.gif";
}
pre_img_ret = new Image();
pre_img_ret.src = "../images/common/menu_reto.gif";

function m_over(n){document.images[n].src = "../images/common/" + n + "o.gif";}
function m_out(n){document.images[n].src = "../images/common/" + n + ".gif";}


//...scroll
//--------------------------------------------------
var timerID;
function ret(){
	yy = (document.all)? document.body.scrollTop : window.pageYOffset;
	y2 = Math.floor(yy/1.1);
	scrollTo(0,y2);
	clearTimeout(timerID);
	if(yy>y2){
		timerID = setTimeout("ret()",10);
	}else{
		clearTimeout(timerID);
	}
}


//...css
//--------------------------------------------------
UA = navigator.userAgent;
if(UA.indexOf("Mac")>=0){
	document.write("<link rel=\"stylesheet\" href=\"../common/common_mac.css\" type=\"text/css\">\n");
}

