﻿function WriteFlash(Path,Width,Height,Transparent){
	//document.write('<div id="'+ Path +'"></div>');
	 var Temp,T=""
	 Temp='<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="FlashH" name="myFlash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+Width+'" height="'+Height+'">'
	 Temp+='<param name="movie" value="'+Path+'"/>'
	 Temp+='<param name="quality" value="High"/>'
	 Temp+='<param name="menu" value="false"/>'
	 Temp+='<param name="scale" value="ExactFit"/>'
	 if (Transparent) {Temp+=' <param name="wmode" value="transparent"/>';T='wmode="transparent"'}
	 Temp+='<embed src="'+Path+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="FlashH" width="'+Width+'" height="'+Height+'" quality="High"'+T+' scale="ExactFit"/>'
	 Temp+='</object>'
	//eval('document.getElementById("'+ Path +'")').innerHTML=Temp
	document.write(Temp);
}
function doPassVar(args){
	var sendText = args;
	window.document.myFlash.TPlay("nav_0"+sendText);
	window.document.myFlash.SetVariable("oldid", sendText);
}
