/*チェックブラウザ*/
function CheckBrowser(){
		if (navigator.platform=="Win32" && navigator.appName.charAt(0)=="N") {
		 		if (navigator.appVersion.charAt(0) >= 5.0) {
				document.write('<link rel="stylesheet" href="script/general.css" type="text/css">');
				}
		 		else {
				document.write('<link rel="stylesheet" href="script/nn4.css" type="text/css">');
				}
		} else if (navigator.appName.charAt(0)=="M" && navigator.platform=="MacPPC") {
		 		if (navigator.appVersion.charAt(0) <= 3) {
				document.write('<link rel="stylesheet" href="script/nn4.css" type="text/css">');
				}
		 		else if (navigator.appVersion.indexOf("MSIE 4.5") >= 0) {
				document.write('<link rel="stylesheet" href="script/nn4.css" type="text/css">');
				}
		 		else {
				document.write('<link rel="stylesheet" href="script/general.css" type="text/css">');
				}
		 }
		 else if(navigator.appName.charAt(0)=="N" && navigator.platform=="MacPPC") {
		 		if (navigator.appVersion.charAt(0) >= 5.0) {
				document.write('<link rel="stylesheet" href="script/general.css" type="text/css">');
				}
		 		else {
				document.write('<link rel="stylesheet" href="script/nn4.css" type="text/css">');
				}
		}
		else {
		document.write('<link rel="stylesheet" href="script/general.css" type="text/css">');
		}
}


/*ロールオーバ*/
function CIWN(NAME1,URL1){
	if(navigator.appVersion.substring(0,1)>=3){
		var args = CIWN.arguments;
			for (var i = 0; i < args.length; i += 2){
				document.images[args[i]].src=args[i+1];
			}
		return true;
	}
}
		

/*Pulldown-SelfWindow*/
function goMenu(){
	Select = document.ContentsList.ContentsListPopup.selectedIndex;
	SelectLink=document.ContentsList.ContentsListPopup.options[Select].value;
if (SelectLink!="NoAccess") {
	self.location.href=SelectLink;
	}
}
		

/*Pulldown-TopWindow*/
function goMenuTop(){
	Select = document.ContentsList.ContentsListPopup.selectedIndex;
	SelectLink=document.ContentsList.ContentsListPopup.options[Select].value;
if (SelectLink!="NoAccess") {
	parent.top.location.href=SelectLink;
	}
}
		

/*Pulldown-NewWindow*/
function goMenuNew(PopupName){
	Select = document.ContentsList.elements[PopupName].selectedIndex;
	SelectLink=document.ContentsList.elements[PopupName].options[Select].value;
if (SelectLink!="NoAccess") {
	WOA(SelectLink,'',750,600);
	}
}


/*New Window*/
function WO(URL,NAME,XS,YS){
	if(navigator.appName.charAt(0)=="N"){
	var FCS;
	FCS=window.open(URL,NAME,"toolbar=no,location=no,directries=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,"+"width="+XS+","+"height="+YS)
	FCS.focus();
	}else{
	S1="toolbar=no,location=no,directries=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,"+"width="+XS+","+"height="+YS;
	window.open(URL,NAME,S1);
	}
}


/*New Window (Window Tools Actived)*/
function WOA(URL,NAME,XS,YS){
	if(navigator.appName.charAt(0)=="N"){
		var FCS;
		FCS=window.open(URL,NAME,"toolbar=yes,location=yes,directries=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,"+"width="+XS+","+"height="+YS)
		FCS.focus();
	}else{
		S1="toolbar=yes,location=yes,directries=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,"+"width="+XS+","+"height="+YS;
		window.open(URL,NAME,S1);
	}
}


/*Close Window*/

function Close(){
	window.close();
}


/*flash*/

function WrightFlashTag(swfname,fname,fwidth,fheight,fbgcolor) {
SFscript="";
SFscript+="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='";
SFscript+=fwidth;
SFscript+="' HEIGHT='";
SFscript+=fheight;
SFscript+="' id='";
SFscript+=fname;
SFscript+="' ALIGN=''><PARAM NAME=movie VALUE='";
SFscript+=swfname;
SFscript+="'><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=";
SFscript+=fbgcolor;
SFscript+="><EMBED src='";
SFscript+=swfname;
SFscript+="' quality=high bgcolor=";
SFscript+=fbgcolor;
SFscript+=" WIDTH='";
SFscript+=fwidth;
SFscript+="' HEIGHT='";
SFscript+=fheight;
SFscript+="' NAME='";
SFscript+=fname;
SFscript+="' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>";
SFscript+="</EMBED></OBJECT>";
document.write(SFscript);
}