getOSType();
getBrowserName();

//ver
var browser = getBrowserName();
var version = 0;
var s = 0;
var e = 0;
var appVer  = navigator.appVersion;
var uName  = navigator.userAgent.toUpperCase();

if (browser == "Safari"){
	version = eval(appVer.substring(0,3)) - 4;
}

if (browser == "Opera"){
	s = uName.indexOf("OPERA ",0) + 6;
	e = uName.indexOf(" ",s);
	version = eval(uName.substring(s,e));
}

if (browser == "NN"){
	s = appVer.indexOf(" ",0);
	version = eval(appVer.substring(0,s));
	if (version >= 5) version++;
}

if (browser == "IE"){
	s = appVer.indexOf("MSIE ",0) + 5;
	e = appVer.indexOf(";",s);
	version = eval(appVer.substring(s,e));
}

//

document.write("<STYLE TYPE='text/css'><!--");
	document.write("a:link {color:#0033cc; text-decoration:none;}");
	document.write("a:visited {color:#3399cc; text-decoration:none;}");
	document.write("a:active {color:#0099cc; text-decoration:none;}");
	document.write("a:hover {color:#0099cc; text-decoration:underline;}");

	document.write(".inctext{font-size:10px; line-height:16px; color:#cccccc;}");


	if(agent == "Mac"){
		document.write(".text1{font-size:10px; line-height:14px}");
		document.write(".text2{font-size:12px; line-height:16px}");
		document.write(".intext2{font-size:12px; line-height:16px}");
		document.write(".text3{font-size:14px; line-height:18px}");
		document.write(".text4{font-size:18px; line-height:22px}");

	}else{

		if( bname == "IE"){
			//for WIN IE
			document.write(".text1{font-size:10px; line-height:14px}");
			document.write(".text2{font-size:12px; line-height:16px}");
			document.write(".intext2{font-size:12px; line-height:18px}");
			document.write(".text3{font-size:16px; line-height:20px}");
			document.write(".text4{font-size:18px; line-height:22px}");
		}else{
			if( version < 5 ){

				//for WIN NETSCAPE 4.x
				document.write(".text1{font-size:11px; line-height:13px}");
				document.write(".text2{font-size:12px; line-height:16px}");
				document.write(".intext2{font-size:12px; line-height:16px}");
				document.write(".text3{font-size:16px; line-height:18px}");
				document.write(".text4{font-size:18px; line-height:20px}");

			}else if( version >= 5 ){
				//for WIN NETSCAPE 6.x~
				document.write(".text1{font-size:10px; line-height:14px}");
				document.write(".text2{font-size:12px; line-height:16px}");
				document.write(".intext2{font-size:12px; line-height:18px}");
				document.write(".text3{font-size:16px; line-height:20px}");
				document.write(".text4{font-size:18px; line-height:22px}");

			}
		}
	}

document.write("--></STYLE>");


//ロールオーバースクリプト
if(document.images){
	img_data = new Array(

/* 0 */		"navi_01",
/* 1 */		"navi_02",
/* 2 */		"navi_03",
/* 3 */		"navi_04",
/* 4 */		"navi_05",
/* 5 */		"navi_06",
/* 6 */		"navi_07",
/* 7 */		"navi_08",
/* 8 */		"navi_09"
	);

	img_on   = new Array();
	img_off  = new Array();

//プレロードスクリプト
	for(i in img_data){

	img_on[i] = new Image();
	img_on[i].src = "/images/" + img_data[i] + "_on.gif";
	img_off[i] = new Image();
	img_off[i].src = "/images/" + img_data[i] + ".gif";

	}
}

//オンマウス画像の切り替え

function offimage(i) {
	if (document.images) {
		document.images["img" + i].src = img_off[i].src;
	}
}

function onimage(i) {
	if (document.images) {
		document.images["img" + i].src = img_on[i].src;
	}
}


// ポップアップスクリプト
function popWin(url,width,height){
	win = window.open(url,"newWin","toolbar=no,location=no,scrollbars=yes,status=no,menubar=no,resizable=no,width=" + width + ",height=" + height + "\"");
	win.focus();
}
