<!--
function WriteGame(filename,width,height)
{
	// get flashvars from url!
	temp=parent.location.href ;
	temp=temp.split("?");
	if(temp[1])
	{
		flashvars=temp[1].split("%26").join("&");
	}else
	{
		flashvars="noflashvars=1";
	}		
	if(!width)
	{
		window.alert("No width given");
	}else
	{
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"');
		document.write(' ID=licensed_game WIDTH="'+width+'" HEIGHT="'+height+'">');
		document.write(' <PARAM NAME=menu VALUE=false>');
		document.write(' <PARAM NAME=FlashVars VALUE="'+flashvars+'">');
		document.write(' <PARAM NAME=movie VALUE="'+filename+'">');
		document.write(' <PARAM NAME=quality VALUE=high>');
		document.write(' <PARAM NAME=wmode VALUE=transparent>');		
		document.write('<EMBED src="'+filename+'"');
		document.write(' FlashVars="'+flashvars+'" menu=false quality=high wmode=transparent');
		document.write(' WIDTH="'+width+'" HEIGHT="'+height+'" TYPE="application/x-shockwave-flash" ');
		document.write('  PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
		document.write('</EMBED>');
		document.write('</OBJECT>');
	}
}
// -->

