function detectBrowser() {
	var b="";

	if(document.layers)
        	b="NN4";
    	if(document.all)
             b="ie"
    	if(!document.all && document.getElementById)
             b="NN6";

	return b;
}
/*
<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="857" height="560">
      <param name="movie" value="swf/main_centre.swf">
      <param name="quality" value="high">
	  <param name="wmode" value="transparent">
      <embed src="swf/main_centre.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="857" height="560"></embed>
    </object>
*/

function writeFlash(url,width,height) {
	var b = detectBrowser();
	
	var fg= 
		"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\""+width+"\" height=\""+height+"\" >"
		+ "<param name=\"AllowScriptAccess\" value=\"sameDomain\" />"
		+ "<param name=\"movie\" value=\""+url+"\" />"
		+ "<param name=\"quality\" value=\"high\" />"
		+ "<param name=\"wmode\" value=\"transparent\" />"
		+ "<embed src=\""+url+"\" quality=\"high\" width=\""+width+"\" wmode=\"transparent\" height=\""+height+"\" name=\"flash\" AllowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"
		+ "</object>";
		
	if(b=="ie")
		document.getElementById("flash").innerHTML = fg;
	else if(b=="NN6")
		document.getElementById("flash").innerHTML = fg;
	else if(b=="NN4")
	{
		document.flash.document.open();
		document.flash.document.write(fg);
		document.flash.document.close();
	}
}