<!--

function writeFlash(filename,width,height,flashvars,wmode)
{
	// get flashvars from url!
	/*temp=location.href.split("?");
	if(temp[1])
	{
		flashvars=temp[1].split("%26").join("&");
	}else
	{
		flashvars="";
	}*/
	if (!flashvars) {
	    flashvars="";
	}
	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=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>');
		if (wmode='transparent') {
		    document.write(' <PARAM NAME=wmode VALUE=transparent>');
		}
	    else {
	        document.write(' <PARAM NAME=wmode VALUE=opaque>');
	    }
		document.write(' <PARAM NAME=bgcolor VALUE=#ffffff>');
		document.write('<EMBED src="'+filename+'"');
		document.write(' Flashvars="'+flashvars+'" menu=false quality=high wmode=transparent bgcolor=#ffffff');
		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>');
	}

}

function writeFlashVars(filename,width,height,flashvars)
{
	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=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=bgcolor VALUE=#ffffff>');
	document.write('<EMBED src="'+filename+'"');
	document.write(' Flashvars="'+flashvars+'" menu=false quality=high bgcolor=#ffffff');
	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>');
}
// -->


