// +++++++++++++++++++++++++++++++++++// style.js// +++++++++++++++++++++++++++++++++++var gUa = navigator.userAgent.toUpperCase();var gBrw = navigator.appName.toUpperCase();var gPlf = navigator.platform.toUpperCase();var gVer = navigator.appVersion;var gPlugin = navigator.plugins;//::::Get Platformvar gWin = (gUa.indexOf("WIN", 0) != -1);var gMacX = false;if (gPlugin) {	for (var p = 0; p < gPlugin.length; p++) {		if (gPlugin[p].filename.indexOf("QuickTime Plugin.plugin", 0) != -1) {			gMacX = true;		}	}}var gMacC = false;if (!gMacX) {	gMacC = (gUa.indexOf("MAC", 0) != -1);}//::::Get Browservar gIE = (gBrw.indexOf("MICROSOFT INTERNET EXPLORER", 0) != -1);var gNN = (gBrw.indexOf("NETSCAPE", 0) != -1);var gGecko = (gUa.indexOf("GECKO", 0) != -1);var gSafari = (gUa.indexOf("APPLEWEBKIT", 0) != -1);var gOpera = (gUa.indexOf("OPERA", 0) != -1);var gFire = (gUa.indexOf("FIRE", 0) != -1);//::::Get Versionvar gIE3 = (gVer.indexOf("MSIE 3", 0) != -1);var gIE4 = (gVer.indexOf("MSIE 4", 0) != -1);var gIE5 = (gVer.indexOf("MSIE 5", 0) != -1);var gIE6 = (gVer.indexOf("MSIE 6", 0) != -1);var gNN4 = (gNN && (gVer.indexOf("4.", 0) != -1));var gNN6 = (gGecko && (gUa.indexOf("/6", 0) != -1));var gNN7 = (gGecko && (gUa.indexOf("/7", 0) != -1));document.write("<style type=\"text/css\">");document.write("<!--");// CSS Set For Windows Major Browsersif (gWin) {	document.write(".fs1 { font-size:11px; line-height:120%; }");	document.write(".fs2 { font-size:12px; line-height:120%; }");	document.write(".fs3 { font-size:14px; line-height:120%; }");	document.write(".fs4 { font-size:18px; line-height:120%; }");	document.write(".fs1x { font-size:11px; line-height:140%; }");	document.write(".fs2x { font-size:12px; line-height:140%; }");	document.write(".fs3x { font-size:14px; line-height:140%; }");	document.write(".fs4x { font-size:18px; line-height:160%; }");	document.write(".fs1xx { font-size:11px; line-height:160%; }");	document.write(".fs2xx { font-size:12px; line-height:160%; }");	document.write(".fs3xx { font-size:14px; line-height:160%; }");	document.write(".fs4xx { font-size:18px; line-height:160%; }");}// CSS Set For MacOS Major Browsersif (gMacC || gMacX) {	document.write(".fs1 { font-size:10px; line-height:120%; }");	document.write(".fs2 { font-size:12px; line-height:120%; }");	document.write(".fs3 { font-size:14px; line-height:120%; }");	document.write(".fs4 { font-size:18px; line-height:120%; }");	document.write(".fs1x { font-size:10px; line-height:140%; }");	document.write(".fs2x { font-size:12px; line-height:140%; }");	document.write(".fs3x { font-size:14px; line-height:140%; }");	document.write(".fs4x { font-size:18px; line-height:140%; }");	document.write(".fs1xx { font-size:10px; line-height:160%; }");	document.write(".fs2xx { font-size:12px; line-height:160%; }");	document.write(".fs3xx { font-size:14px; line-height:160%; }");	document.write(".fs4xx { font-size:18px; line-height:160%; }");}// CSS Set For NN4 (merge)if (gNN4) {	document.write(".fs1 { line-height:140%; }");	document.write(".fs2 { line-height:140%; }");	document.write(".fs3 { line-height:140%; }");	document.write(".fs4 { line-height:140%; }");	document.write(".fs1x { line-height:160%; }");	document.write(".fs2x { line-height:160%; }");	document.write(".fs3x { line-height:160%; }");	document.write(".fs4x { line-height:160%; }");	document.write(".fs1xx { line-height:180%; }");	document.write(".fs2xx { line-height:180%; }");	document.write(".fs3xx { line-height:180%; }");	document.write(".fs4xx { line-height:180%; }");}// CSS Set For NN6 (merge)if (gNN6) {	document.write(".fs1 { line-height:1.2em; }");	document.write(".fs2 { line-height:1.2em; }");	document.write(".fs3 { line-height:1.2em; }");	document.write(".fs4 { line-height:1.2em; }");	document.write(".fs1x { line-height:1.4em; }");	document.write(".fs2x { line-height:1.4em; }");	document.write(".fs3x { line-height:1.4em; }");	document.write(".fs4x { line-height:1.4em; }");	document.write(".fs1xx { line-height:1.6em; }");	document.write(".fs2xx { line-height:1.6em; }");	document.write(".fs3xx { line-height:1.6em; }");	document.write(".fs4xx { line-height:1.6em; }");}document.write("-->");document.write("</style>")//====_ Root-Sea, Inc. JavaScript Library _====///*-----------------------------------------------------== Image Library == [2002/3/14]2001-2004 (C) Root-Sea, Inc. All Rights Reserved.Author:yoshihiro fujita-----------------------------------------------------*///::::Image preloadfunction imagePreload() {	var imgObj = new Array();	if (document.images) {		for (var i in gImgSrc) {			imgObj[i] = new Image();			imgObj[i].src = gImgSrc[i];		}		gPreloadFlag = true;	}}//::::Image swapfunction changeImg() {	var parentObj, chgImgArg;	if (gPreloadFlag) {		chgImgArg = changeImg.arguments;		chgImgArg.length % 2 == 0 ? parentObj = window : parentObj = document.layers[chgImgArg[chgImgArg.length - 1]];		for (var i = 0; i < chgImgArg.length; i += 2) {			if (i >= chgImgArg.length - 1) break;			parentObj.document.images[chgImgArg[i]].src = chgImgArg[i + 1];		}	}}//::::Get image srcfunction getImgSrc(imgName,layName) {	var srcVal;	if (!!layName && document.layers) {		srcVal = document.layers[layName].document.images[imgName].src;	}	else {		srcVal = document.images[imgName].src;	}	if (srcVal.match(/:\/{2,3}[^\/]+(\/[^\\]+){2}/)) {		return RegExp.$1;	}	else {		return null;	}}//::::Get image altfunction getImgAlt(imgName,layName) {	var altVal;	if (!!layName && document.layers) {		altVal = document.layers[layName].document.images[imgName].alt;	}	else {		altVal = document.images[imgName].alt;	}	return altVal;}//====_ Root-Sea, Inc. JavaScript Library _====///*-----------------------------------------------------== Window Library == [2004/3/14]2001-2004 (C) Root-Sea, Inc. All Rights Reserved.Author:yoshihiro fujita-----------------------------------------------------*///::::Window Openvar winOpen = new Array();function windowOpen(uri, winName, w, h, which, stName) {	var stVal0, stVal1;	var setW = parseInt(w);	var setH = parseInt(h);	var winStatus, winSize, winValue;	var wOpen;// Set Status Value(1 or 0)	if (which == 'disp') {		stVal0 = 0;		stVal1 = 1;	}	if (which == 'del') {		stVal0 = 1;		stVal1 = 0;	}// Set default Status Value	var directoriesVal = stVal0;	var statusVal = stVal0;	var scrollbarsVal = stVal0;	var toolbarVal = stVal0;	var locationVal = stVal0;	var menubarVal = stVal0;	var resizableVal = stVal0;	stName.indexOf('directories') != -1 ? directoriesVal = stVal0 : directoriesVal = stVal1;	stName.indexOf('status') != -1 ? statusVal = stVal0 : statusVal = stVal1;	stName.indexOf('scrollbars') != -1 ? scrollbarsVal = stVal0 : scrollbarsVal = stVal1;	stName.indexOf('toolbar') != -1 ? toolbarVal = stVal0 : toolbarVal = stVal1;	stName.indexOf('location') != -1 ? locationVal = stVal0 : locationVal = stVal1;	stName.indexOf('menubar') != -1 ? menubarVal = stVal0 : menubarVal = stVal1;	stName.indexOf('resizable') != -1 ? resizableVal = stVal0 : resizableVal = stVal1;	winStatus =		'directories=' + directoriesVal +		',status=' + statusVal +		',scrollbars=' + scrollbarsVal +		',toolbar=' + toolbarVal +		',location=' + locationVal +		',menubar=' + menubarVal +		',resizable=' + resizableVal;// Window width & height adjust	if (setW + setH > 0) {		//Status : YES		if (statusVal == 1) {			//IE4 for Mac			if (gMacC  && gIE4) {				setH += 16;			}		}		//Scroll : YES		if (scrollbarsVal == 1) {			//IE4 for Mac			if (gMacC  && gIE4) {				setW -= 1;			}			//NN4 for Mac			if (gMacC && gNN4) {				setW += 15;			}			//IE5 for Win			else if (gWin && (gIE4 || gIE5 || gIE6)) {				setW += 16;			}		}		//Location : YES		if (locationVal == 1) {			//IE4 for Mac			if (gMacC  && gIE4) {				setH += 24;			}		}		//Menu : YES		if (menubarVal == 1) {			//IE4 for Mac			if (gWin && (gIE4 || gIE5 || gIE6)) {				setH -= 19;			}		}	}	if (h != 0) {		winSize = 'width=' + setW;	}	else if (w != 0) {		winSize = 'height' + setH;	}	if (w != 0 && h != 0) {		winSize = 'width=' + setW + ',height=' + setH;	}	if (setW + setH > 0) {		winValue = winStatus + ',' + winSize;	}	else {		winValue = winStatus;	}	winOpen[winName] = window.open(uri, winName, winValue);}//::::Get Window Openfunction isOpener(targetWin) {	var flag = 0;	var ua = navigator.userAgent;	if (!!targetWin) {		if (ua.indexOf('Gecko') != -1 || ua.indexOf('MSIE 4') != -1 && ua.indexOf('Win') != -1) {			if (!targetWin.closed) {				flag = 1;			}			else {				flag = 2;			}		}		else {			if (typeof targetWin.document  == 'object') {				flag = 1;			}			else {				flag = 2;			}		}	}	else {		flag = 0;	}	return flag;}//::::Disp On Parent Windowfunction dispParentWin(uri) {	if (isOpener(window.opener) == 1) {		window.opener.location.href = uri;	}	else {		windowOpen(uri, 'pWin', 0, 0, 'disp', '');	}}//:::: Get window sizefunction getWinSize(which) {	var re;	if (document.layers || glNN6) {		re = parseInt(eval("window.inner" + which));		if (glNN6) {			re -= 14;		}	}	else {		re = parseInt(eval("document.body.client" + which));	}	return re;}//:::: Get window offsetfunction getWinOffset(winName) {	var winObj, t, w, offset;	if (!winName) {		winObj = window;	}	else {		winObj = parent.frames[winName];	}	if (document.all) {		w = winObj.document.body.scrollLeft;		t = winObj.document.body.scrollTop;	}	else if (document.layers || document.getElementById) {		w = winObj.pageXOffset;		t = winObj.pageYOffset;	}	offset = w + "-" + t;	return offset.split("-");}
