//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="images/thumbGamePage/gamePagev1.swf?enable=0&gamemode=real&auth=' + authToken + '&baseurl=' + webServiceURL + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="images/thumbGamePage/gamePagev1.swf?enable=0&gamemode=real&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>');
} 
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>');
}