

var myBrowser;
if(navigator.platform){
	myBrowser=new myBrowser((document.getElementById != null),(navigator.platform.indexOf('Win32') != -1),(navigator.appName.indexOf('Microsoft') != -1));
}
function myBrowser(version,platform,type){
	this.version=version;	//trueかfalse,DOM使用可能ブラウザ(IE4以上,NN6以上)ならtrue
	this.platform=platform;	//trueかfalse,Win32ならtrue
	this.type=type;		//trueかfalse,IEならtrue
}

var MM_contentVersion = 7;//Setting to Version 6
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i){
		if (isNaN(parseInt(words[i]))) continue;
		var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}


function openFullScr(){
	if(screen.width >= 1024 && screen.height >= 768){//モニタ解像度1024*768以上ならば実行
	if(MM_FlashCanPlay){//Flash Player Ver.7を持っていればウィンドウを開く
		if(myBrowser.type){ //IEの場合
			if(myBrowser.platform){ //WIN IEの場合
window.open("contents/full.html", "full", "fullscreen=yes, scrollbars=no");
			}else{ //Mac IEの場合
				var w = screen.width;
				var h = screen.height;
				window.open("contents/full.html","full","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + w + ",height=" + h + ",left=0,top=0");
}
		}else{
			if( navigator.userAgent.indexOf("Safari") != -1){//Safari
				var w = screen.width;
				var h = screen.height-45;
				window.open("contents/full.html","full","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=0,top=0,width=" + w + ",height=" + h);
			}else{//NS
				var w = screen.width;
				var h = screen.height;
				full = window.open("contents/full.html","full","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=0,top=0,width=" + w + ",height=" + h);
				//location.href="http://www.nmt.ne.jp/~mamiko/scripts/tip/window/fullscreen.html";
				full.moveTo(0,0);
				full.focus();
}
		}
	}else{
		window.location='noplugin.html';
	}
	
	}else{
		window.location='monitor.html';
	}
}


function openwin() {
	window.open("contents/normal.html", "normal", "width=1024,height=768");
}