function fixAllFlash()
{
	var allObjects = document.getElementsByTagName("object");
	for (var i = 0; i < allObjects.length; i++)
	{
		if (allObjects[i].className != "testpooh")
		{
			allObjects[i].outerHTML = allObjects[i].outerHTML;
		}
	}
}

function doflash(sitepath,nextpage,mymovie,mywidth,myheight,extraparams,bgcolor,wmode,objstyle,FlashVars)
{
	if (!objstyle)
	{
		objstyle = "";
	}
	if (!FlashVars)
	{
		FlashVars = "";
	}
	document.write('<object class="testpooh" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="'+mywidth+'" height="'+myheight+'" style="'+objstyle+'"> \n');
	document.write('<param name="movie" value="'+sitepath+mymovie+'?nextPageURL='+nextpage+'&nextPage='+nextpage+extraparams+'"> \n');
	document.write('<param name="quality" value="high"> \n');
	document.write('<param name="wmode" value="'+wmode+'"> \n');
	document.write('<param name="allowScriptAccess" value="always"> \n');
	document.write('<param name="menu" value="false"> \n');
	document.write('<param name="bgcolor" value="'+bgcolor+'"> \n');
	document.write('<param name="FlashVars" value="'+FlashVars+'"> \n');
	document.write('<embed src="'+sitepath+mymovie+'?nextPageURL='+nextpage+'&nextPage='+nextpage+extraparams+'" bgcolor="'+bgcolor+'" quality="high" wmode="'+wmode+'" allowScriptAccess="always" menu="false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+mywidth+'" height="'+myheight+'" FlashVars="'+FlashVars+'"> \n');
	document.write('</embed> \n'); 
	document.write('</object>');
}
