<!--

/* setCookie */
function setCookie(keyname,val){
	expTime = new Date( );
	expTime.setFullYear(expTime.getFullYear( ) + 1);
	expTime = expTime.toGMTString( );
	
	tmp = keyname + "=" + val + ";";
	tmp += "expires=" + expTime + ";";
	tmp += "path=/;";
	document.cookie = tmp;
}

/* getCookie */
function getCookie(keyname){
	tmp = document.cookie + ";";
	index1 = tmp.indexOf(keyname,0);
	if (index1 !=-1){
	tmp = tmp.substring(index1,tmp.length);
	index2 = tmp.indexOf("=",0) + 1;
	index3 = tmp.indexOf(";",index2);
	return(unescape(tmp.substring(index2,index3)));
	}
	return("");
}


/* include */
function incdata(path){
var fontsize = getCookie("fontsize");
if (fontsize == ""){setCookie("fontsize","M");}
if(navigator.appVersion.indexOf("Mac",0) != -1){
if (fontsize == "S"){document.write('<link rel="stylesheet" href="'+path+'common/css/importMacS.css" rel="stylesheet" type="text/css" media="screen,print" />');}
if (fontsize == "M" | fontsize == ""){document.write('<link rel="stylesheet" href="'+path+'common/css/importMacM.css" rel="stylesheet" type="text/css" media="screen,print" />');}
if (fontsize == "L"){document.write('<link rel="stylesheet" href="'+path+'common/css/importMacL.css" rel="stylesheet" type="text/css" media="screen,print" />');}
} else {
if (fontsize == "S"){document.write('<link rel="stylesheet" href="'+path+'common/css/importS.css" rel="stylesheet" type="text/css" media="screen,print" />');}
if (fontsize == "M" | fontsize == ""){document.write('<link rel="stylesheet" href="'+path+'common/css/importM.css" rel="stylesheet" type="text/css" media="screen,print" />');}
if (fontsize == "L"){document.write('<link rel="stylesheet" href="'+path+'common/css/importL.css" rel="stylesheet" type="text/css" media="screen,print" />');}
}
document.write('<meta http-equiv="imagetoolbar" content="no">');
document.write('<script type="text/javascript" src="'+path+'common/navi/common.js"></script>');
document.write('<script type="text/javascript" src="'+path+'common/navi/navigation.js"></script>');
document.write('<script type="text/javascript" src="'+path+'common/js/scrolling.js"></script>');
}

function fsdd1(){
	var fontsize = getCookie("fontsize");
	if (fontsize != "S"){document.write('<dd>　</dd>');}
}

function fsdd4(){
	var fontsize = getCookie("fontsize");
	if (fontsize == "S"){document.write('<dd>　</dd>');}
}

function fsdd2(){
	var fontsize = getCookie("fontsize");
	if (fontsize != "M"){document.write('<dd>　</dd>');}
}

function fsdd3(){
	var fontsize = getCookie("fontsize");
	if (fontsize == "M"){document.write('<dd>　</dd>');}
}

function fsdd5(){
	var fontsize = getCookie("fontsize");
	if (fontsize == "L"){document.write('<dd>　</dd>');}
}




/* windowOpen */
function WinOpen(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function Win_Open(url,name,x,y) {
	if( navigator.appVersion.indexOf("Mac",0)!= -1)
	{
		if(document.all)
		{
			x = eval(x) + 10;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=1,location=0,directories=0,status=1,resizable=1,scrollbars=1');
		}
		else if(document.layers)
		{
			x = eval(x) + 22;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=1,location=0,directories=0,status=1,resizable=1,scrollbars=1');
			subWin.focus();
		}
		else
		{
			x = eval(x) + 15;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=1,location=0,directories=0,status=1,resizable=1,scrollbars=1');
			subWin.focus();
		}
	}
	else
	{
		if(document.all)
		{
			x = eval(x) + 22;
			y = eval(y) + 10;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=1,location=0,directories=0,status=1,resizable=1,scrollbars=1');
		}
		else if(document.layers)
		{
			x = eval(x) + 15;
			y = eval(y) + 10;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=1,location=0,directories=0,status=1,resizable=1,scrollbars=1');
			subWin.focus();
		}
		else
		{
			x = eval(x) + 20;
			subWin = window.open(url,name,'width=' + x + ',height=' + y + ',toolbar=1,location=0,directories=0,status=1,resizable=1,scrollbars=1');
			subWin.focus();
		}
	}
}

/* Rollover */

function btnRollover() {
	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", btnRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", btnRollover);
}

//-->