//theObjects = document.getElementsByTagName("OBJECT");
//for (var i = 0; i < theObjects.length; i++) 
//{ 
//	theObjects[i].outerHTML = theObjects[i].outerHTML; 
//}

function writeMovie(objectText)
{
	document.write(objectText);
}
function writeGameListMovie(authToken, webServiceURL)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="670" VIEWASTEXT>');
	document.write('<param name="movie" value="/profile/images/thumbGamePage/gamePagev1.swf?stringpath=/profile/res/it/stringres/GamePageStrings.xml&enable=0&gamemode=allreal&auth=' + authToken + '&baseurl=' + webServiceURL + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="/profile/images/thumbGamePage/gamePagev1.swf?stringpath=/profile/res/it/stringRes/GamePageStrings.xml&enable=0&gamemode=allreal&auth='  + authToken + '&baseurl=' + webServiceURL + '" width="500" height="670" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>');
} 

// style-common/FlashGamesPreview.swf
function writeGamePreviewMovie()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="791" height="199" align="top" VIEWASTEXT>');
    document.write('<param name="movie" value="style-common/FlashGamesPreview.swf" />');
    document.write('<param name="quality" value="high" />');
    document.write(' <param name="wmode" value="transparent" />');
    document.write('<embed src="style-common/FlashGamesPreview.swf" width="791" height="199" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
    document.write('</object>');
}
// end function ----------------------

// marquee.swf
function writeMarqueeMovie()
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="780" height="20" align="middle" VIEWASTEXT>');
    document.write('<param name="movie" value="marquee.swf" />');
    document.write('<param name="quality" value="high" />');
    document.write(' <param name="wmode" value="transparent" />');
    document.write('<embed src="marquee.swf" width="780" height="20" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
    document.write('</object>');
}
// end function ----------------------

// style-common/FlashPrizesPreview.swf
function writePrizesPreviewMovie()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="519" height="150" align="top" VIEWASTEXT>');
    document.write('<param name="movie" value="style-common/FlashPrizesPreview.swf" />');
    document.write('<param name="quality" value="high" />');
    document.write(' <param name="wmode" value="transparent" />');
    document.write('<embed src="style-common/FlashPrizesPreview.swf" width="519" height="150" align="top" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
    document.write('</object>');
}
// end function ----------------------




