
function CS_openBrWindow(theURL,winName,features) { //v2.0
  subWin = window.open(theURL,winName,features);
		subWin.focus();
}


function onMouse() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'ov') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_ov'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_ov'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}





// ---------- font size Function

var fsDefVal = 3;

var aName = navigator.appName.toUpperCase();
var uName = navigator.userAgent.toUpperCase();
if (uName.indexOf("SAFARI") >= 0) {fsDefVal = fsDefVal;}
else if (uName.indexOf("OPERA") >= 0) {fsDefVal = fsDefVal;}
else if (uName.indexOf("FIREFOX") >= 0) {fsDefVal = fsDefVal;}
else if (uName.indexOf("NETSCAPE") >= 0) {fsDefVal = fsDefVal;}
else if (uName.indexOf("GECKO") >= 0) {fsDefVal = fsDefVal;}
else if (aName.indexOf("NETSCAPE") >= 0) {fsDefVal = fsDefVal;}
else if (aName.indexOf("MICROSOFT") >= 0) {fsDefVal = fsDefVal;}

var fsArr = new Array;
//fsArr[0] = "";
fsArr[1] = "xx-small";
fsArr[2] = "x-small";
fsArr[3] = "small";
fsArr[4] = "medium";
fsArr[5] = "large";
fsArr[6] = "x-large";
fsArr[7] = "xx-large";

var lhArr = new Array;
//lhArr[0] = "";
lhArr[1] = "130%";
lhArr[2] = "130%";
lhArr[3] = "130%";
lhArr[4] = "130%";
lhArr[5] = "130%";
lhArr[6] = "130%";
lhArr[7] = "130%";

var fsNum = fsDefVal;
var mediumNum = fsDefVal;
var largeNum = fsDefVal + 1;
var smallNum = fsDefVal - 1;


function setFontSize() {
	document.write("<style type=\"text/css\"><!-- body, table, th, td, h1, h2, h3, h4, h5, h6 { font-size: " + fsArr[fsNum] + "; line-height: " + lhArr[fsNum] + "; font-family:\"ＭＳ Ｐゴシック\", sans-serif; } --></style>");
}

setFontSize();






// Window Function ----------------------------------------------------------------------------------------------------
var brwzrType;

function opPrtWinMain(opURL) {
			if(brwzrType == 0) {
				window.opener.name = "mstWin";
				prtWin = window.open(opURL,'mstWin','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
				prtWin.focus();
			} else if(brwzrType == 1) {
				window.opener.location.href = opURL;
				window.opener.focus();
			}
}

function opPrtWin(myURL) {
		
		try{
			i = window.opener.closed;
		}catch(myError){
			i = true;
		}
		
		if(i == false)  {
			var aName = navigator.appName.toUpperCase();
			var uName = navigator.userAgent.toUpperCase();
			if (uName.indexOf("SAFARI") >= 0) {brwzrType = 0;}
			else if (uName.indexOf("OPERA") >= 0) {brwzrType = 0;}
			else if (uName.indexOf("FIREFOX") >= 0) {brwzrType = 1;}
			else if (uName.indexOf("NETSCAPE") >= 0) {brwzrType = 1;}
			else if (uName.indexOf("GECKO") >= 0) {brwzrType = 1;}
			else if (aName.indexOf("NETSCAPE") >= 0) {brwzrType = 0;}
			else if (aName.indexOf("MICROSOFT") >= 0) {brwzrType = 0;}
			opPrtWinMain(myURL);
		}
		else
		{
			prtWin = window.open(myURL,'mstWin','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
			prtWin.focus();
		}
}





function loadFunc() {
	onMouse();
}
window.onload = loadFunc;






