// ########## Delete Error Messagewindow.onerror = null;// ########## OS,Browser Infovar ie  = (navigator.appName.indexOf('Micr') != -1);var mac = (navigator.userAgent.indexOf('Mac') != -1 || navigator.userAgent.indexOf('mac') != -1);var win = (navigator.userAgent.indexOf('Win') != -1 || navigator.userAgent.indexOf('win') != -1);// ########## StyleSheet振り分けif (win) {	document.write('<LINK REL="STYLESHEET" HREF="../css/win.css" TYPE="text/css">');}else{	if (mac) {		document.write('<LINK REL="STYLESHEET" HREF="../css/mac.css" TYPE="text/css">');	}else{		document.write('<LINK REL="STYLESHEET" HREF="../css/etc.css" TYPE="text/css">');	}}// ########## NN4.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のMM_preloadImagesfunction MM_preloadImages() {	var d = document;	if(d.images){		if(!d.My_IMG) d.My_IMG = new Array();		var i , j = d.My_IMG.length , a = MM_preloadImages.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];		}	}}// ########## Object検索・取得function MM_findObj(n, d) {	var p,i,x;	if(!d) d = document;	if((p=n.indexOf("?"))>0&&parent.frames.length) {		d = parent.frames[n.substring(p+1)].document;		n = n.substring(0,p);	}	if(!(x=d[n])&&d.all) x = d.all[n];	for(i=0; !x&&i<d.forms.length; i++) x = d.forms[i][n];	for(i=0; !x&&d.layers&&i<d.layers.length; i++) x = MM_findObj(n,d.layers[i].document);	if(!x && document.getElementById) x = document.getElementById(n);	return x;}// ########## IMG切り替えfunction MM_swapImage() {	var i , j = 0 , x , a = MM_swapImage.arguments;	document.My_sr = new Array;	for(i=0; i<(a.length-2); i+=3) if ((x=MM_findObj(a[i]))!=null){		document.My_sr[j++] = x;		if(!x.oSrc) x.oSrc = x.src;		x.src = a[i+2];	}}// ########## 切り替えIMGのResetfunction MM_swapImgRestore() {	var i , x , a = document.My_sr;	for(i=0; a&&i<a.length&&(x=a[i])&&x.oSrc; i++) x.src = x.oSrc;}// ########## PullDown Menu Linkfunction MM_jumpMenu(targ,selObj,restore){ //v3.0	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");	if (restore) selObj.selectedIndex=0;	}// ########## for Windowsfunction Is() {  var agent = navigator.userAgent.toLowerCase();  this.major = parseInt(navigator.appVersion);  this.win = (agent.indexOf("win")!=-1);   this.ns = ((agent.indexOf('mozilla')!=-1) &&    ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible')== -1)));  this.ns3 = (this.ns && (this.major == 3)) && this.win;}var is = new Is();function search_disp() {  if(is.ns3){    alert("ご利用のブラウザでは検索を実行できません。");  }else if( ( is.ns ) && ( is.major != 4 ) ) {    alert("ご利用のブラウザでは検索を実行できません。");  }else if( ( is.win ) && ( is.major < 5 ) ) {    resultWin=window.open("../dummy.html","_result","toolbar=no,menubar=no,location=no,resizable=yes");    document.mainForm.submit();  }}// ########## Sub Window Open (Win-IE4不具合回避済み)var newwin;function WinOpen(URL,WN,F) {	if(newwin){		if(!newwin.closed){			newwin.location.href=URL;			newwin.focus();		}else{			newwin = window.open(URL,WN,F);		}	}else{		newwin = window.open(URL,WN,F);	}}// ########## Sub Window Open (幅330pxl)var urls = new Array("");var remote = null;function newwin(url) {        remote = window.open('', 'newwin', 'width=425,height=330,scrollbars=1,resizable=no');        if (newwin != null) {                remote.location.href = url;                remote.focus()        }}function closepage(n){w = window.close();}// ########## Sub Window Open (幅425pxl)var urls = new Array("");var remote = null;function newwin425(url) {        remote = window.open('', 'newwin', 'width=425,height=620,scrollbars=1,resizable=no');        if (newwin != null) {                remote.location.href = url;                remote.focus()        }}function closepage(n){w = window.close();}// ########## Sub Window Open (幅450pxl)var urls = new Array("");var remote = null;function newwin450(url) {        remote = window.open('', 'newwin', 'width=450,height=500,scrollbars=0,resizable=no');        if (newwin != null) {                remote.location.href = url;                remote.focus()        }}function closepage(n){w = window.close();}// ########## Sub Window Open (幅575pxl)var urls = new Array("");var remote = null;function newwin575(url) {        remote = window.open('', 'newwin', 'width=575,height=500,scrollbars=0,resizable=no');        if (newwin != null) {                remote.location.href = url;                remote.focus()        }}function closepage(n){w = window.close();}// ########## Sub Window Open (幅700pxl)var urls = new Array("");var remote = null;function newwin700(url) {        remote = window.open('', 'newwin', 'width=700,height=500,scrollbars=0,resizable=no');        if (newwin != null) {                remote.location.href = url;                remote.focus()        }}function closepage(n){w = window.close();}
