var flaCheck = 9;

var flashInst = "si";	// per animaz
var flashOK = 0;		// 1 si, 0 no
var flaVer = 0;



function getFlashVersion()	// solo ie
{ 
  // ie 
  try { 
    try { 
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
      try { axo.AllowScriptAccess = 'always'; } 
      catch(e) { return '6,0,0'; } 
    } catch(e) {} 
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
  // other browsers 
  } catch(e) { 
    try { 
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ 
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
      } 
    } catch(e) {} 
  } 
  return '0,0,0'; 
} 


if (navigator.plugins && navigator.plugins.length)	// moz
{

  var plug = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
  if (plug) {
    var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    for (var i = 0; i < words.length; ++i) {
      if (isNaN(parseInt(words[i])))
        continue;
        var flaAr = words[i].split(".");
        flaVer = flaAr[0]; 
    }
  }

}else{	// ie

  if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) 
  {
//    document.write('<SCR' + 'IPT LANGUAGE=\"VBScript\">\n on error resume next\n For ii = minCheck to maxCheck\n If Not(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & ii))) Then\n Else\n flashOK = 1\n flaVer = ii\n  End If\n Next</SCR' + 'IPT>'); 
    var flaVer = getFlashVersion().split(',').shift(); 
  }

}

if (flaVer > 0) { flashOK = 1; }
if (flaVer < flaCheck) { flashInst = "no"; }




// browser
var agt=navigator.userAgent.toLowerCase();




function cryptEmail() {
   var str1 = "maiAAAlto:";
   var str2 = "perinformazioni";
   var str3 = "vide";
   var str4 = "nn";
   var str5 = "com";
   location.href = str1.substr(0,3) + str1.substr(6,4) + str2.substr(3,4) + "@" + "da" + str3 + str4.substr(0,1) + "a" + str4 + "i." + str5;
}




function PopupPrev() {
var wPrev = 790;
var hPrev = screen.height - 40;
window.open("preventivo.php","","width=" + wPrev + ",height=" + hPrev + ",top=0,left=" + Math.floor((screen.width-wPrev-12)/2) + ",resizable=yes,menubar=no,toolbar=no,scrollbars=yes,locations=no,status=no");
}




function linkurl(url,ext) {
  if (ext != "") { ext = "." + ext; }
  window.open("http://www." + url + ext,"");
}



function full() { 
	var atz = screen.height; 
	var lgz = screen.width; 
	var stile = "top=0, left=0, width=" + lgz + ", height=" + atz + ", status=no, menubar=no, toolbar=no, scrollbars=no"; 
	window.open("http://www.siti-web-bologna.com/indexFla.html", "", stile); 
}