var flaCheck = 7;

var flashInst = "si";
var flaVer = 0;
var maxCheck = flaCheck+16;
var minCheck = flaCheck-4;
MSDetect = "false";

if (navigator.plugins && navigator.plugins.length)
{
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		if (x.description)
		{
			y = x.description;
			flaVer = y.charAt(y.indexOf('.')-2) + y.charAt(y.indexOf('.')-1);

			if (isNaN(flaVer)) 
			{
			flaVer = y.charAt(y.indexOf('.')-1);
			}

			if (isNaN(flaVer)) 
			{
			flaVer = 0;
			}
		}
	}
	else
		flaVer = 0;


}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flaVer = flaCheck;
	else
		flaVer = 0;
}
else
	MSDetect = "true";



if (flaVer != 0 && flaVer < flaCheck)
{
flashInst = "no";
}


if (MSDetect == "true")
{

document.write('<scr' + 'ipt type="text/vbscr' + 'ipt"> \n');
document.write('on error resume next \n');
document.write('For i = minCheck to maxCheck \n');
document.write('If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then \n');
document.write('Else \n');
document.write('flaVer = i \n');
document.write('End If \n');
document.write('Next \n');
document.write('If flaVer < flaCheck Then \n');
document.write('flashInst = "no" \n');
document.write('End If \n');
document.write('</scr' + 'ipt> \n');

}



/*
function PopupCentrata(url,w,h) {
  var l = Math.floor((screen.width-w)/2);
  var t = Math.floor((screen.height-h)/2);
  window.open(url,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
*/

function PopupCentrata(URL,w,h) {
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2); 
   var stili = "top=" + t + ", left=" + l + ", width=" + w + ", height=" + h + ", status=no, menubar=no, toolbar=no scrollbar=no";
   var testo = window.open("", "", stili);

      testo.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
      testo.document.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n");
      testo.document.write("<head>\n");
      testo.document.write("<title></title>\n");
      testo.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");	  
      testo.document.write("</head>\n");
      testo.document.write("<body style=\"padding:0px; margin:0px; background-color:#eee; text-align:center;\">\n");
      testo.document.write("<scr" + "ipt type=\"text/javascript\">\n");      
      testo.document.write("if(document.all)\n");      
      testo.document.write("document.body.onmousedown=new Function(\"if (event.button==2||event.button==3)alert('Right click disabled')\")\n");	  
      testo.document.write("</scr"+ "ipt>\n");	  	  	  
      testo.document.write("<img src=" + URL + " border=\"0\" alt=\"\" />\n");
      testo.document.write("</body>\n");
      testo.document.write("</html>");

}


// popup

function dis() {
if(document.getElementById) document.getElementById("Pub1").style.visibility = "hidden";
}




// crypt

function crypt() {
   var str1 = "maiAAAlto:";
   var str2 = "info";
   var str3 = "com";
   location.href = str1.substr(0,3) + str1.substr(6,4) + str2 + "@" + "salvadori" + "bros." + str3;
}



// popup

function pop(url,w,h) {
 var l = Math.floor((screen.width-w)/2);
 var t = Math.floor((screen.height-h)/2);
 window.open(url,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ", status=no, menubar=no, toolbar=no scrollbar=yes");
}

