
//Created by Jesse Yang on 4/24/2006, modified on 3/23/2009

function RunLoStart(xmlfile, flashfile)
{
	
	var str ='';
	
	str += '<OBJECT id="eCardTest" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="100%" width="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>';
	str += '<PARAM NAME="_cx" VALUE="26220">';
	str += '<PARAM NAME="_cy" VALUE="13494">';
	str += '<PARAM NAME="FlashVars" VALUE="xmldoc='+ xmlfile +'">';
	str += '<PARAM NAME="Movie" VALUE="' + flashfile + '">';
	str += '<PARAM NAME="Src" VALUE="' + flashfile + '">';
	str += '<PARAM NAME="WMode" VALUE="Window">';
	str += '<PARAM NAME="Play" VALUE="-1">';
	str += '<PARAM NAME="Loop" VALUE="0">';
	str += '<PARAM NAME="Quality" VALUE="High">';
	str += '<PARAM NAME="SAlign" VALUE="">';
	str += '<PARAM NAME="Menu" VALUE="0">';
	str += '<PARAM NAME="Base" VALUE="">';
	str += '<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">';
	str += '<PARAM NAME="Scale" VALUE="ShowAll">';
	str += '<PARAM NAME="DeviceFont" VALUE="0">';
	str += '<PARAM NAME="EmbedMovie" VALUE="0">';
	str += '<PARAM NAME="BGColor" VALUE="">';
	str += '<PARAM NAME="SWRemote" VALUE="">';
	str += '<PARAM NAME="MovieData" VALUE="">';
	str += '<PARAM NAME="SeamlessTabbing" VALUE="1">';
	str += '<PARAM NAME="Profile" VALUE="0">';
	str += '<PARAM NAME="ProfileAddress" VALUE="">';
	str += '<PARAM NAME="ProfilePort" VALUE="0">';
	str += '<EMBED  FlashVars="xmldoc=' + xmlfile +'"  src="'+ flashfile +'" loop=false menu=false 	quality=best bgcolor=#FFFFFF  WIDTH="100%" HEIGHT="100%" NAME="eCardTest" ALIGN="middle" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>'; 
	str += '</OBJECT>';	
	
	//alert(str)
	
	document.write(str);
}
	
	
	
	
/*
theObjects = document.getElementsByTagName("OBJECT"); 
for (var i = 0; i < theObjects.length; i++) 
{ 
theObjects[i].outerHTML = theObjects[i].outerHTML; 
alert(theObjects[i].outerHTML);

}
	document.write('<OBJECT id="Textforlogo" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="420" width="640" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>\n');
	document.write('<PARAM NAME="_cx" VALUE="16933">\n');
	document.write('<PARAM NAME="_cy" VALUE="11113">\n');
	document.write('<PARAM NAME="FlashVars" VALUE="'+ xmlstring +'">\n');
	document.write('<PARAM NAME="Movie" VALUE="../flash/textLogo.swf">\n');
	document.write('<PARAM NAME="Src" VALUE="../flash/textLogo.swf">\n');
	document.write('<PARAM NAME="WMode" VALUE="Window">\n');
	document.write('<PARAM NAME="Play" VALUE="-1">\n');
	document.write('<PARAM NAME="Loop" VALUE="-1">\n');
	document.write('<PARAM NAME="Quality" VALUE="High">\n');
	document.write('<PARAM NAME="SAlign" VALUE="">\n');
	document.write('<PARAM NAME="Menu" VALUE="-1">\n');
	document.write('<PARAM NAME="Base" VALUE="">\n');
	document.write('<PARAM NAME="AllowScriptAccess" VALUE="sameDomain">\n');
	document.write('<PARAM NAME="Scale" VALUE="ShowAll">\n');
	document.write('<PARAM NAME="DeviceFont" VALUE="0">\n');
	document.write('<PARAM NAME="EmbedMovie" VALUE="0">\n');
	document.write('<PARAM NAME="BGColor" VALUE="">\n');
	document.write('<PARAM NAME="SWRemote" VALUE="">\n');
	document.write('<PARAM NAME="MovieData" VALUE="">\n');
	document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">\n');
	document.write('<PARAM NAME="Profile" VALUE="0">\n');
	document.write('<PARAM NAME="ProfileAddress" VALUE="">\n');
	document.write('<PARAM NAME="ProfilePort" VALUE="0">\n');
	document.write('<EMBED  FlashVars="xmldoc=' + xmlstring +'"  src="../flash/textLogo.swf" loop=false menu=false quality=best 	bgcolor=#FFFFFF  WIDTH="100%"  NAME="eCardTest" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n'); 
	document.write('</OBJECT>\n');
	
		
}

*/


