// #
// #
// #

// ########## Delete Error Message
window.onerror = null;

// ########## スタイルシート振り分け
var agent = navigator.userAgent;

if (navigator.platform.indexOf('Win') > -1) {	if(agent.indexOf("MSIE") != -1) {document.write('<LINK rel="stylesheet" href="css/win_variable.css" type="text/css">');}

else { if (agent.indexOf("Mozilla") != -1) {document.write('<LINK rel="stylesheet" href="css/win_variable.css" type="text/css">');}
}
}

 else if (navigator.platform.indexOf('Mac') > -1) { if(agent.indexOf("MSIE") != -1) {document.write('<LINK rel="stylesheet" href="css/mac_variable.css" type="text/css">');}
 
 else { if (agent.indexOf("Gecko") != -1){document.write('<LINK rel="stylesheet" href="css/nn6_variable.css" type="text/css">');}

 else { if (agent.indexOf("Mozilla") != -1) {document.write('<LINK rel="stylesheet" href="css/mac_variable.css" type="text/css">');}
 
 else{document.write('<link rel="stylesheet" href="css/etc_variable.css" type="text/css">');}
}
}
}



/*
// ########## ネスケ4.x用


function NS4_Resize(init) {
	if (init==true) with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.PageW=innerWidth;
			document.PageH=innerHeight;
			onresize=NS4_Resize;
		}
	}else if (innerWidth!=document.PageW || innerHeight!=document.PageH) location.reload();
}
NS4_Resize(true);
*/


// ########## IMGのPreLoad
function PreLoad() {
	var d = document;
	if(d.images){
		if(!d.My_IMG) d.My_IMG = new Array();
		var i , j = d.My_IMG.length , a = PreLoad.arguments;
		for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){
			d.My_IMG[j] = new Image;
			d.My_IMG[j++].src = a[i];
		}
	}
}

// ########## IMG切り替え
function chgimg(imgName,img) {
	document.images[imgName].src = img;
	}


// ########## 切り替えIMGのReset
function ResetIMG() {
	var i , x , a = document.My_sr;
	for(i=0; a&&i<a.length&&(x=a[i])&&x.oSrc; i++) x.src = x.oSrc;
}


// E N D

