BVer=navigator.appVersion.charAt(0);
BName=navigator.appName.charAt(0);



// HTML内から下記のフォーマットで呼び出す
// RunFooEx("XXX.swf","幅","高さ","ID","背景色");

function RunFooEx(fFile,fW,fH,fID,fBg) {
	document.write('<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='+fW+' height='+fH+' id='+fID+'>');
	document.write('<param name=movie value='+fFile+'>');
	document.write('<param name=quality value=high>');
	document.write('<param name=bgcolor value='+fBg+'>');
	document.write('<embed src='+fFile+' quality=high bgcolor='+fBg+' width='+fW+' height='+fH+' name='+fID+' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>\n</object>');
}




// Style Select ---------------------- START ------------------------

var stylesheet ="";

if (navigator.platform=="MacPPC" || navigator.platform=="MacIntel") {
	stylesheet = "mac";
} else {
	stylesheet = "win";
}


function styleSetL0() {
	if(stylesheet != ""){
		document.write('<link rel="stylesheet" type="text/css" href="css/textsets_'+stylesheet+'.css">');
		thislevel=0;
		bugkicker();
	}
}

function styleSetL1() {
	if(stylesheet != ""){
		document.write('<link rel="stylesheet" type="text/css" href="../css/textsets_'+stylesheet+'.css">');
		thislevel=1;
		bugkicker();
	}
}

function styleSetL2() {
	if(stylesheet != ""){
		document.write('<link rel="stylesheet" type="text/css" href="../../css/textsets_'+stylesheet+'.css">');
		thislevel=2;
		bugkicker();
	}
}

//Mac版 IE用 バグ処理
function bugkicker() {
	if(stylesheet=="mac" && navigator.userAgent.lastIndexOf("MSIE")>=0) {
		if(thislevel==0) {
			document.write('<link rel="stylesheet" type="text/css" href="css/iemac.css">');
		} else if(thislevel==1) {
			document.write('<link rel="stylesheet" type="text/css" href="../css/iemac.css">');
		} else if(thislevel==1) {
			document.write('<link rel="stylesheet" type="text/css" href="../../css/iemac.css">');
		}
	}

	//Win版 IE用 バグ処理
	if(stylesheet=="win" && navigator.userAgent.lastIndexOf("MSIE")>=0) {
		if(thislevel==0) {
			document.write('<link rel="stylesheet" type="text/css" href="css/iewin.css">');
		} else if(thislevel==1) {
			document.write('<link rel="stylesheet" type="text/css" href="../css/iewin.css">');
		} else if(thislevel==1) {
			document.write('<link rel="stylesheet" type="text/css" href="../../css/iewin.css">');
		}
	}
}

// Style Select ---------------------- END ------------------------




