//riconoscimento browser e plugin


	
//    roll over menu


// browser test:
agent = navigator.userAgent

function DetectBrowser()
{
  var version = 0;

  if (navigator.userAgent.indexOf("Mozilla/4.5") != -1) version = 4;
  else if (navigator.userAgent.indexOf("Mozilla/4") != -1) version = 4;
  else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) version = 3;
  else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) version = 2;
  else if (navigator.userAgent.indexOf("MSIE") != -1) version = 1;
  else version = 0;

  return version;
}

browserVer = DetectBrowser();

// preload universal images:
if (browserVer >= 3) {

		tit1 = new Image();
        tit1.src = "img/m_strane.gif";
        tit1_on = new Image();
        tit1_on.src = "img/m_strane_on.gif";
		
		
		tit2 = new Image();
        tit2.src = "img/m_api.gif";
        tit2_on = new Image();
        tit2_on.src = "img/m_api_on.gif";
		
		
		tit3 = new Image();
        tit3.src = "img/m_mosche.gif";
        tit3_on = new Image();
        tit3_on.src = "img/m_mosche_on.gif";
		
		
		tit4 = new Image();
        tit4.src = "img/m_immagini.gif";
        tit4_on = new Image();
        tit4_on.src = "img/m_immagini_on.gif";
		
		tit5 = new Image();
        tit5.src = "img/m_modi.gif";
        tit5_on = new Image();
        tit5_on.src = "img/m_modi_on.gif";
		
		tit6 = new Image();
        tit6.src = "img/m_maibuk.gif";
        tit6_on = new Image();
        tit6_on.src = "img/m_maibuk_on.gif";
		
		tit7 = new Image();
        tit7.src = "img/m_colla.gif";
        tit7_on = new Image();
        tit7_on.src = "img/m_colla_on.gif";
		
		tit8 = new Image();
        tit8.src = "img/m_trasforma.gif";
        tit8_on = new Image();
        tit8_on.src = "img/m_trasforma_on.gif";

		tit9 = new Image();
        tit9.src = "img/m_dimmi.gif";
        tit9_on = new Image();
        tit9_on.src = "img/m_dimmi_on.gif";

}




function PutImg(imgDocID,imgObjName) {
//   imgDocID - the name or number of the document image to be replaced
//   imgObjName - the name of the image object to be swapped in

 if (browserVer >= 3) {
  document.images[imgDocID].src = eval(imgObjName + ".src")
 }
}

//    fine roll over menu




// pop up 




function winOp0(link) {
	window.open(link, "", 'menubar=no,toolbar=no,scrollbars=auto,resizable=no,height=400,width=600');
}

function winOp1(link) {
	window.open(link, "", 'menubar=no,toolbar=no,scrollbars=auto,resizable=no,height=450,width=650');
}


//fine pop up







