﻿function setFlashObj(Src,Width,Height,Quality){
var Target = Src;
document.write(
"<object id='obj' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + Width + "' height='" + Height + "' >"
+ "<param name='movie' value='" + Target + "'>"
+ "<param name='quality' value='" + Quality + "'>"
+ "<param name='menu' value='false'>"
+ "<param name='wmode' value='transparent'>"
+ "<embed id='obj' name='obj' swLiveConnect=true src='" + Target + "' quality='" + Height + "' width='" + Width + "' height='" + Height + "' menu='false' wmode='transparent' pluginspage='//www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
);
}
//
function setBaseText(str){
//alert(str);
//var swfbaseMovie = (navigator.appName.indexOf("Microsoft") != -1) ? obj : document.obj;
//var mc = isIE ? window["obj"] : window.document["obj"];
document.obj.SetVariable("_level0.strBase",str);
//swfbaseMovie.SetVariable("_level0.strBase",str);
//document.getElementById("obj").SetVariable("_level0.strBase",str);
//document.getElementById("obj").SetVariable("_level0.strBase", "ieあああ");
};

function setFlashTextObj(Src,Width,Height,Quality){
var Target = Src;
document.write(
"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='" + Width + "' height='" + Height + "' codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'>"
+ "<param name='movie' value='" + Target + "'>"
+ "<param name='quality' value='" + Quality + "'>"
+ "<param name='menu' value='false'>"
+ "<embed src='" + Target + "' quality='" + Height + "' width='" + Width + "' height='" + Height + "' menu='false' pluginspage='//www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
);
}
//
function tag_wrapper_open(){document.getElementById("tag_wrapper").className = "block";}
function tag_wrapper_close(){document.getElementById("tag_wrapper").className = "none";}
//
//
function popUp(Src,Width,Height,Quality,ind,baturank){
	msg=new Array();
msg[0]="";
msg[1]="<object id='popp' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='" + Width + "' height='" + Height + "' codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'>"
+ "<param name='movie' value='" + Src + "'>"
+ "<param name='quality' value='" + Quality + "'>"
+ "<param name='menu' value='false'>"
+ "<param name='wmode' value='transparent'>"
+ "<embed swLiveConnect=true id='popp' name='popp' src='" + Src + "' quality='" + Height + "' width='" + Width + "' height='" + Height + "' menu='false' wmode='transparent' pluginspage='//www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>";

//
			if(document.all||document.getElementsByTagName('*')){
				//alert(ind);
									document.getElementById("box").innerHTML =msg[ind];
			}else if(document.layers){
       		document.getElementById("box").document.open();
         document.getElementById("box").document.write(msg[ind]);
         document.getElementById("box").document.close();
   }
//
if(typeof(baturank)=='number'){
	BK=baturank;
}else{
	OUBO=baturank;
}

}
//
function foundBatuRank(){
	//alert(BK);
	//var swfpopMovie = (navigator.appName.indexOf("Microsoft") != -1) ? popp : document.popp;
	document.popp.SetVariable("_level0.strCookie", BK);
}
function foundOubo(){
	//alert(BK);
	//var swfpopMovie = (navigator.appName.indexOf("Microsoft") != -1) ? popp : document.popp;
	document.popp.SetVariable("_level0.ouboCookie", OUBO);
}

/*
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"id="movie" width="480" height="360">
<param name=movie value="movie.swf">
<param name="flashvars" value="P=3">
<param name=quality value=high>
<param name=bgcolor value=#FFFFFF>
<embed src="movie.swf" quality=high bgcolor=#FFFFFF width="480" height="360"swLiveConnect=true id="movie" name="movie"type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>*/

function normalFlashObj(Src,Width,Height,Quality){
var Target = Src;
document.write(
"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + Width + "' height='" + Height + "' >"
+ "<param name='movie' value='" + Target + "'>"
+ "<param name='quality' value='" + Quality + "'>"
+ "<param name='menu' value='false'>"
+ "<embed src='" + Target + "' quality='" + Height + "' width='" + Width + "' height='" + Height + "' menu='false' pluginspage='//www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>"
);
}

