function mostra(){
	oggetto.visibility = "visible";
}
function noflash(){
	var nava = (document.layers);
	var dom = (document.getElementById);
	var iex = (document.all);
	if (nava) { oggetto = document.flas}
	else if (dom) {oggetto = document.getElementById("flash").style}
	else if (iex) {oggetto = flash.style}
	oggetto.visibility = "hidden";
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function disableRightClick(e){
  var message =" Tasto disabilitato";

  if(!document.rightClickDisabled) {
    if(document.layers) {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all)){
    if (e.which==2||e.which==3){
      alert(message);
      return false;
    }
  } else {
    alert(message);
    return false;
  }
}
disableRightClick();

function scermo(tipo){
	if (tipo==1){
		var mystr = "default_it.asp";
		}
	if (tipo==2){
		var mystr = "default_en.asp";
		}
	if (tipo==3){
		var mystr = "default_te.asp";
		}
  if(navigator.appName=="Netscape")
	finestra1(mystr);
  else
	finestra2(mystr);
}

function finestra1(mystr) {
	var width="1024", height="768";
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;
	var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=no,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
	var finestra = window.open(mystr,'nuova',styleStr); 
}
function finestra2(mystr) {
	//alert(mystrNew);
	window.open(mystr,'home','scrollbars=0,status=0,toolbar=0,directories=0,menubar=0,fullscreen=1')
}

function stampas(mystr) {
	//var mystr = "default_1.asp";
	var width="630", height="480";
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;
	var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
	var finestra = window.open(mystr,'nuova',styleStr); 
}
function start(){
   var altura=screen.height;var anchura=screen.width;
   var vent_x=400;var vent_y=120;var posx=30;var posy=30;
      open('intro_flash1.htm','juga','resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width=400,height=200,screenX='+posx+',screenY='+posy+',left='+posx+',top='+posy+'');
}
function chiudi() { //v2.0
  top.close();
}
function minimizza()     { 
    self.blur(); 
    top.moveTo(-8000,0); 
} 
function maximizza()     { 
     self.moveTo(0,0); 
}
function scriviCookie(nome, valore, durata, misura, percorso, dominio, sicurezza){
	if(arguments.length < 4)return;
	var tempo = (misura == "giorni") ? durata * 24 * 60 : durata;
	var termine = new Date();
	termine.setTime(termine.getTime() +  (tempo * 60 * 1000));
	document.cookie = nome + "!" + escape(valore) + "; expires=" + termine.toGMTString() +
	((percorso == null) ? "" : ("; path=" + percorso)) +
	((dominio == null) ? "" : ("; domain=" + dominio)) +
	((sicurezza == true) ? "; secure" : "");
}

function leggiCookie(nome){
	var IE = navigator.appName.indexOf("Microsoft") != -1;
	var filmato = IE ? window.mainMovie : window.document.mainMovie;
	var stringa = unescape(document.cookie);
	var inizio = stringa.indexOf(nome + "!");
	if(inizio == -1)return
	var fine = stringa.indexOf(";", inizio);
	fine = (fine != -1) ? fine : stringa.length;
	var valori = stringa.substring(inizio + nome.length + 1, fine).split("|");

	for(var i = 0; i < valori.length; i++){
		var temp = valori[i].split("=");
		filmato.SetVariable(temp[0], temp[1]);
	}
}