// JavaScript Document
function showSwf (fileName, name, wid, hei, vers, variabili) {			
						//alert(fileName +" - "+variabili);
						var oeTagsA = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
						+ 'width="'+wid+'" height="'+hei+'" '
						//+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+vers+',0,0,0" title="'+name+'">'
						+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+vers+',0,0,0" title="">'
						+ '<param name="movie" value="'+fileName+'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" />';
						//alert(variabili.toString().length>0);
						//alert(variabili);
						if (variabili.toString().length>0) {
							var oeTagsVars = '<param name="flashVars" value="'+variabili+'" />';
						} else {
							var oeTagsVars ='';
						}
						
						var oeTagsB = '<embed src="'+fileName+'.swf" quality="high" '
									//+ 'width="'+wid+'" height="'+hei+'" name="'+name+'"'
									+ 'width="'+wid+'" height="'+hei+'" name=""'
									+ 'play="true"'
									+ 'quality="high"  wmode="transparent"';
									
						//variabili ? var oeTagsVars2 = ' flashVars="'+variabili+'"' : var oeTagsVars2 ='';
						
						if (variabili.toString().length>0) {
							var oeTagsVars2 = ' flashVars="'+variabili+'"';
						} else {
							var oeTagsVars2 ='';
						};

						var oeTagsC = 'type="application/x-shockwave-flash"'
						+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
						+ '<\/embed>'
						+ '<\/object>';
						//document.write(oeTags);   // embed the flash movie	
						document.write(oeTagsA + oeTagsVars+ oeTagsB+ oeTagsVars2 + oeTagsC);   // embed the flash movie	
}

// script per controllare il plugin
/*
function controllaFlash(versione,nome,ww,hh,altro,altCont) {
	okSwf=0;
	MM_FlashCanPlay=0;
	MM_contentVersion = versione;  // versione del Player Flash
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i) {
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i]; 
		}
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
		okSwf=MM_FlashCanPlay;
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		MM_contentVersion ++; // aumento di uno per sistemare l'errore con IE
		document.write('<SCR' + 'IPT  type="text/vbscript"\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion))) \n');
		document.write('okSwf = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion))) \n');
		document.write('<'+'/SCR' + 'IPT\> \n');
		//document.write("fake: "+MM_contentVersion +" - real: "+versione+ "<br>");
		//document.write(okSwf);
	}
	if ( okSwf ) { 		showSwf (nome,nome,ww,hh,versione,altro);
	} else{ 		document.write(altCont);	}
}*/
caricaAll=1;

