function tushin() {
  window.open('http://210.188.252.99/oni3/','mushatushin','scrollbars=yes,resizable=yes,width=610,height=610');
}

function report() {
  window.open('report/index.html','repo','scrollbars=yes,resizable=yes,width=680,height=450');
}

function mov_shibuya() {
  window.open('mov_shibuya.html','movie','resizable=yes,width=350,height=380');
}

function mov_tgs_j() {
  window.open('mov_tgs_j.html','movie','resizable=yes,width=350,height=380');
}

function mov_tgs_e() {
  window.open('mov_tgs_e.html','movie','resizable=yes,width=350,height=380');
}
function mov_e3j() {
  window.open('mov_e3j.html','movie','resizable=yes,width=350,height=380');
}

function mov_e3e() {
  window.open('mov_e3e.html','movie','resizable=yes,width=350,height=380');
}

function mov_burai_tgs_j() {
  window.open('mov_burai_tgs_j.html','movie','resizable=yes,width=350,height=380');
}

function mov_burai_tgs_e() {
  window.open('mov_burai_tgs_e.html','movie','resizable=yes,width=350,height=380');
}
function mov_burai_e3j() {
  window.open('mov_burai_e3j.html','movie','resizable=yes,width=350,height=380');
}

function mov_burai_e3e() {
  window.open('mov_burai_e3e.html','movie','resizable=yes,width=350,height=380');
}

function mov_sj() {
  window.open('mov_sj.html','movie','resizable=yes,width=350,height=380');
}
function mov_lj() {
  window.open('mov_lj.html','movie','resizable=yes,width=350,height=380');
}
function mov_se() {
  window.open('mov_se.html','movie','resizable=yes,width=350,height=380');
}
function mov_le() {
  window.open('mov_le.html','movie','resizable=yes,width=350,height=380');
}


//to Laod Flash Movie
function showFlash(swfName,param,width,height,fVersion,bgColor) {
var FlashVersion = fVersion;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//var ra= Math.floor(Math.random() * 10000);
if ( param ) {
	var movieName = swfName+"?"+param;
} else {
	var movieName = swfName;
}
//alert( movieName+"\n"+width+"\n"+height);
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 NowPluginVer = words[i]; 
            }
        var FlashPlay = NowPluginVer >= FlashVersion;
}
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('FlashPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & FlashVersion)))\n');
        document.write('</SCR' + 'IPT\> \n');
}

        document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
        document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
        //下行 ID,Value(PARAM),src(EMBED)でswf指定
        document.write(' ID="D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+width+'" HEIGHT="'+height+'">');
        document.write(' <PARAM NAME=movie VALUE="'+movieName+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#'+bgColor+'>  '); 
        document.write(' <EMBED src="'+movieName+'" quality=high bgcolor=#'+bgColor+'');
        document.write(' swLiveConnect=FALSE WIDTH="'+width+'" HEIGHT="'+height+'" NAME="dummy" ALIGN=""');
        document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
        document.write(' </EMBED>');
        document.write(' </OBJECT>');
}

function openHtml (urlLine) {
	
	var urlStr = urlLine.split (",");
	var scrl = 1;
	var isFull = "";
	if (urlStr[1] == "buraidenWindow") { scrl = 0; urlStr[3]="630";}
	//if (urlStr[1] == "oni3Window") { isFull = ",fullscreen=yes,channelmode=1"; }
	if (urlStr[1] == "oni3Window") { window.location.href="./waiting.html"; }
	var winParam = "WIDTH="+urlStr[2]+",HEIGHT="+urlStr[3]+",SCROLLBARS=" + scrl + ",RESIZABLE=1,TOOLBAR="+urlStr[4]+",MENUBAR="+urlStr[5]+",LOCATION=0,DIRECTORIES=0,STATUS=0"+isFull;
	window.open(urlStr[0],urlStr[1],winParam);
}


        function newpage(winname,WebURL, XSize, YSize) {
                w = window.open(WebURL,winname,"WIDTH="+XSize+",HEIGHT="+YSize+",SCROLLBARS=1,RESIZABLE=1,TOOLBAR=0,MENUBAR=0,LOCATION=0 DIRECTORIES=0,STATUS=1");

}

function checkFlash(swfName,param,width,height,fVersion,bgColor,FlashCanPlay) {
var MM_contentVersion = fVersion;

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)) {
	var MM_FlashCanPlay = FlashCanPlay;
}
if ( MM_FlashCanPlay) {
		showFlash2(swfName,param,width,height,bgColor);
	} else {
		document.write('<a href="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash?Lang=Japanese" target="_blank">最新のFlash Player</a>をインストールして本サイトをご覧ください<br>');
	}
}

function showFlash2(swfName,param,width,height,bgColor) {
if (param) {
	var MovieName = swfName+"?"+param;
} else {
	var MovieName = swfName;
}
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
document.write(' ID="D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="'+width+'" HEIGHT="'+height+'">');
document.write(' <PARAM NAME="movie" VALUE="'+MovieName+'"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#'+bgColor+'">  '); 
document.write(' <EMBED src="'+MovieName+'" quality="high" bgcolor="#'+bgColor+'"  ');
document.write(' swLiveConnect="FALSE" WIDTH="'+width+'" HEIGHT="'+height+'" NAME="'+swfName+'" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
}

