
//funzione per la gestione del flash ed impedire il click addizionale
function addFlash (objId, flashSrc, w, h, bgcolor, flashVars) {

    //alert(flashVars);

	obj = document.getElementById(objId);

    htmlCode =  ''+
		'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" id="banner_home" align="middle">'+
		'<param name="allowScriptAccess" value="sameDomain" />'+
		'<param name="movie" value="'+flashSrc+'" />'+
		'<param name="wmode" value="transparent">'+
		'<param name="quality" value="high" />'+
		'<param name="flashVars" value="'+flashVars+'" />'+
		'<embed src="'+flashSrc+'" flashVars="'+flashVars+'" wmode="transparent" quality="high" width="'+w+'" height="'+h+'" name="banner_home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
		'</object>';

   //alert(htmlCode);

   obj.innerHTML = htmlCode;
}


function showHide (objId) {
   obj = document.getElementById(objId);

   if (obj.style.display == 'none') {
      obj.style.display = 'block';
   }
   else {
      obj.style.display = 'none';
   }
}

//funzione per la gestione delle autotendine
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//funzione per il preload delle immagini
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//funzione per fare la stampa
function printDoc() {
	window.print(); 
	}

