var titleWrite = "";

if ( hasProductInstall && !hasReqestedVersion ) {

	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
	document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	var MMdoctitle = document.title;

	insFlash(
		
		"src", src_ei,
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"&l=" + lingua,
		"width", width_ei,
		"height", height_ei,
		"align", align_ei,
		"id", "detectSWF",
		"quality", "high",
		"bgcolor", bgcolor_ei,
		"wmode", "transparent",
		"name", "detectSWF",
		"allowScriptAccess","sameDomain",
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
		
	);
	
	
} else if (hasReqestedVersion) {
	insFlash(
			
			"src", src,
			"width", width,
			"FlashVars", FlashVars ,
			"height", height,
			"align", align,
			"id", "mainClip",
			"quality", "high",
			"bgcolor", bgcolor,
			"name", "mainClip",
			"wmode", "transparent",
			"allowScriptAccess","sameDomain",
			"type", "application/x-shockwave-flash",
			'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
			
	);
	

} else {  // flash is too old or we can't detect the plugin

//	risultato = "<div style=\"margin:50px;\" align=\"left\">"
//	risultato += "<img src=\"" + logoSito + "\" border=\"0\" /><br />"
//	risultato += "<p><b>" + eval("titolo_" + lingua) + "</b>"
//	risultato += "<br>" + eval("testo_" + lingua) + "<br></p><br>"
//	risultato += "<a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW\" target=\"_blank\">"
//	risultato += "<img src=\""+ logoFlash +"\" border=\"0\" />"
//	risultato += "</a></div>"

//se flah non c'è ci metto una immagine
	risultato = "<a href=\"/\"><img src=\"images/testa-noflash.jpg\" width=\"800\" height=\"171\" border=\"0\" /></a>"
	
	document.getElementById(tagFlash).innerHTML = risultato
	
}
