// JavaScript Document


var MM_contentVersion = 6;
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;
	}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<scr' + 'ipt language=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('</scr' + 'ipt\> \n');
}

function insertFlash (filmato) {
	if(MM_FlashCanPlay){
		if(filmato == "luilei"){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="429" height="102">');
document.write('<param name="movie" value="luilei.swf">');
document.write('<param name="quality" value="high">');
document.write('<embed src="luilei.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="429" height="102"></embed>');
document.write('</object>');
		}

		else if(filmato == "sms"){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="390" height="38">');
  document.write('<param name="movie" value="sms.swf">');
  document.write('<param name="quality" value="high">');
  document.write('<PARAM NAME="wmode" VALUE="transparent">');
  document.write('<embed src="sms.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="390" height="38"></embed>');
document.write('</object>');
		}

		else if(filmato == "gallery"){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="406" height="190" class="imgright">');
	document.write('<param name="movie" value="gallery.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="gallery.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="406" height="190" class="imgright"></embed>');
	document.write('</object>');
		}
		
		else if(filmato == "indovina_int"){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="170" height="103" >');
	document.write('<param name="movie" value="img/indovina_int.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="img/indovina_int.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="103" ></embed>');
	document.write('</object>');
		}		

		else if(filmato == "inserisci"){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="170" height="103" >');
	document.write('<param name="movie" value="img/inserisci.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="img/inserisci.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="103" ></embed>');
	document.write('</object>');
		}	
		
			else if(filmato == "giococoppie"){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0" width="280" height="82" title="gioco delle coppie">');
	document.write('<param name="movie" value="img/gioco_delle_coppie.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<embed src="img/gioco_delle_coppie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="280" height="82"></embed>');
	document.write('</object>');
		}

	}
	else {
		if(filmato == "luilei"){
			document.write('<table width="429" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.elianamonti.it/cercalei/index.html"><img src="images/annunciperlui.gif" border="0"></a></td><td><a href="http://www.elianamonti.it/cercalui/index.htm"><img src="images/annunciperlei.gif" border="0"></a></td></tr></table>');
		}
		else if(filmato == "sms"){
			document.write('<a href="javascript:window.open(\'sms.html\',\'nName\',\'scrollbars=yes, status=0, menubar=0, toolbar=0 width=320,height=480,top=50,left=50\'); void ;"><img src="images/sms_definitivo.gif" border="0"></a>');
		}
		else if(filmato == "gallery"){
			document.write('<img src="img/immagine grande.jpg" width="317" height="239" border="0" class="imgright">');
		}
		
				else if(filmato == "indovina_int"){
			document.write('<img src="img/imdovina_int.jpg" width="170" height="103" border="0" >');
		}
		
				else if(filmato == "inserisci"){
			document.write('<a href="http://www.elianamonti.it/annuncio/annuncio.aspx"><img src="img/inserisci.gif" border="0"></a>');
		}		
		
		else if(filmato == "giococoppie"){
			document.write('<img src="img/gioco_delle_coppie.gif" " border="0" >');
		}
		
		
	}
}