// JavaScript Document
function populateSWF(filmato, w, h, contenitore){
	var shtml = '';
	var larg
	var flashok = false;
	flashVersion = GetSwfVer()
	flashVersion = flashVersion.replace(",", ".")
	flashVersion = flashVersion.substr(0, flashVersion.indexOf("."))
	//if (flashVersion>=9) {
	if (flashVersion>=9) {
		flashok = true;
	}
	
	if (flashok) {
		shtml = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
		shtml += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"";
		shtml += "  width=\""+w+"\" height=\""+h+"\" id=\"f_"+contenitore+"\" align=\"\">";
		shtml += " <param name=movie value=\""+filmato+"\">";
		shtml += " <param name=quality value=high>";
		shtml += " <param name=menu value=false>";
		shtml += " <param name=wmode value=transparent>";
		shtml += " <embed src=\""+filmato+"\" quality=high menu=false ";
		shtml += "wmode=\"transparent\""
		shtml += "width=\""+w+"\" height=\""+h+"\" name=\"home\" align=\"\"";
		shtml += "  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
		shtml += "     </object>"	
	} else {
		larg = w-2;
		shtml = '<div style="width:'+larg+'px; height:'+h+'px; border:1px dashed #EAEAEA"><table width="100%" height="100%"><tr><td style="text-align:center;">'
		shtml += '<a href="http://get.adobe.com/it/flashplayer/" target="_blank"><img src="/img/requisiti/flash.png" alt="Flash Player" border="0" /></a>';
		shtml += '</td></tr></table></div>';
	}
	document.getElementById(contenitore).innerHTML = shtml;
}