<!--

if (immagineMascotte=="") { immagineMascotte="grafiche/mascotte/mascotte1.gif"; }
function hgt(){
hg++;
return;
}

var MbName = navigator.appName;
var MbVer = parseInt(navigator.appVersion);
var MNS6 = (MbName == "Netscape" && MbVer >=5 && MbVer < 7); //alternativa check su getElementById
var MNS4= document.layers;
var MIE4=  document.all;
function ricalcola(){

 if (MNS4){  // calcolo le dimensioni INTERNE della finestra ( provato con PHOTOSHOP !!!! )
	MlarghFin = window.innerWidth;
	MaltezFin = window.innerHeight-30;
//disSinTab=(larghFin-750)/2;
//xs=disSinTab+750-350;
Mxs=MlarghFin-350;
Mys=MaltezFin-127;

}else{
	MlarghFin = document.body.clientWidth;
	MaltezFin = document.body.clientHeight;
//disSinTab=(larghFin-750)/2;
//xs=disSinTab+750-350;
Mxs=MlarghFin-350;
Mys=MaltezFin-157;
}
}
if (visMnwm==false){ ricalcola();}else{Mxs=-3; Mys=7; }


     if (MNS4) {
       MlayerStyleRef="layer.";
       MlayerRef="document.layers[";
       MstyleSwitch="]"; MlayerDoc=".document."
     }
	 else if (MIE4) {
        MlayerStyleRef="layer.style.";
        MlayerRef="document.all[";
        MstyleSwitch="].style"; MlayerDoc=".";
     }
	 else if (MNS6) { 
       layerStyleRef="style.";
       layerRef="document.getElementById(";
       styleSwitch=").style"; layerDoc=".";
     }	
     else {
		//vedi un po' tu che vuoi fare. Se uno ha un browser per conto suo?
     }
function setVariables(){
if (navigator.appName == "Netscape") {
if (parseInt(navigator.appVersion) >= 5){Mv=".top=";Mh=".left=";MdS="document.getElementById(\"";MsD="\").style";
My="window.pageYOffset";Mx="window.pageXOffset";}
else {Mv=".top=";Mh=".left=";MdS="document.";MsD="";
My="window.pageYOffset";Mx="window.pageXOffset";}
}
else {Mh=".pixelLeft=";Mv=".pixelTop=";MdS="document.all[";MsD="].style";
My="document.body.scrollTop";Mx="document.body.scrollLeft";}checkLocationA()
}
Mmovex=0,Mxdiff=0,Mystart=Mxs;
Mmovey=0,Mydiff=0,Mystart=Mys;
function checkLocation(obj){
if (NS4){object=obj;}else{object='\''+(obj)+'\'';}


if (visMnwm==false){
ricalcola();
Mxx=Mxs+eval(Mx);Mxdiff=Mxstart-Mxx;
if ((Mxdiff<(-1))||(Mxdiff>(1))) Mmovex=Math.round(Mxdiff/10),Mxstart-=Mmovex;
if (Mxstart<=Mxs){
eval(MdS+object+MsD+Mh+Mxstart);
} else {
eval(MdS+object+MsD+Mh+Mxs);
}
eval(MdS+object+MsD+Mh+Mxstart);
}

Myy=Mys+eval(My);Mydiff=Mystart-Myy;
if ((Mydiff<(-1))||(Mydiff>(1))) Mmovey=Math.round(Mydiff/10),Mystart-=Mmovey;
if (Mystart<=Mys){
eval(MdS+object+MsD+Mv+Mystart);
} else {
eval(MdS+object+MsD+Mv+Mys);
}
eval(MdS+object+MsD+Mv+Mystart);

setTimeout("checkLocation('"+obj+"')",10);
}
function checkLocationA(){Mystart=Mys+eval(My);Mxstart=Mxs+eval(Mx);}

   




function creaMascotte(){
hg=0;
if (MNS4){
apertura1='<LAYER name="mascotte" pagex="'+Mxs+'" pagey="'+Mys+'" width="300" height="137" z-index="50" visibility="hidden">';
chiusura='</LAYER>';
} else {
apertura1='<div id="mascotte" style="position:absolute; left:'+Mxs+'px; top:'+Mys+'px; width:200px; height:137px; z-index:50; visibility:hidden;">';
chiusura='</div>';
}
if (fumettoTesto==''){ fumettoTesto=TXT_noArg; }

document.write(apertura1);
document.write('<table width="296" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" background="grafiche/spaziatore.gif"> <table width="176" border="0" cellspacing="0" cellpadding="0"><tr> <td width="10" height="9" colspan="2" rowspan="2" valign="top" background="grafiche/spaziatore.gif"><img src="grafiche/fumetto_fSX_a.gif" width="10" height="9"></td><td height="1" colspan="2" background="grafiche/spaziatore.gif" bgcolor="#000000"><img src="grafiche/spaziatore.gif" width="1" height="1"></td><td width="19" height="9" colspan="3" rowspan="2" align="left" valign="top" background="grafiche/spaziatore.gif"><img src="grafiche/fumetto_fDX_a.gif" width="10" height="9"></td></tr><tr><td height="8" colspan="2" valign="bottom" background="grafiche/spaziatore.gif" bgcolor="#FDF5E2"><img src="grafiche/spaziatore.gif" width="1" height="1"></td></tr><tr><td height="50" valign="top" background="grafiche/spaziatore.gif" bgcolor="#000000"><img src="grafiche/spaziatore.gif" width="1" height="1"></td><td width="9" valign="top" background="grafiche/spaziatore.gif" bgcolor="#FDF5E2"><img src="grafiche/spaziatore.gif" width="1" height="1"></td><td height="50" colspan="2" valign="top" background="grafiche/spaziatore.gif" bgcolor="#FDF5E2" class="dida">');

document.write('<span class="dida">'+fumettoTesto+'</span>');
	
document.write('</td><td width="9" valign="top" background="grafiche/spaziatore.gif" bgcolor="#FDF5E2"><img src="grafiche/spaziatore.gif" width="9" height="1"></td><td width="1" valign="top" bgcolor="#000000"><img src="grafiche/spaziatore.gif" width="1" height="1"></td><td width="19" valign="top" background="grafiche/spaziatore.gif"><img src="grafiche/fumetto_freccina.gif" width="9" height="26"></td></tr><tr> <td width="10" height="9" colspan="2" rowspan="2" valign="bottom"><img src="grafiche/fumetto_fSX_b.gif" width="10" height="9"></td><td width="47" height="8" background="grafiche/spaziatore.gif" bgcolor="#FDF5E2"><img src="grafiche/spaziatore.gif" width="47" height="7"></td><td rowspan="3" valign="top" background="grafiche/spaziatore.gif" bgcolor="#000000"> ');

	document.write('<table width="100" border="0" cellspacing="1" cellpadding="2" height="15"><tr> <td align="center" valign="middle" background="grafiche/spaziatore.gif" bgcolor="'+FND_barra+'" class="dida">');
	document.write('<span class="dida"><a href="javascript:nascondiM(\'mascotte\');"><font color="#FFFFCC">'+TXT_chiudi+'</font></a></span>');
	document.write('</td>');
	if (visMascotte==false){ 
	document.write('<td bgcolor="'+FND_barra+'" valign="middle" align="center" background="grafiche/spaziatore.gif">');
	document.write('<span class="dida"><a href="javascript:apriMascotte(\'mascotte\');"><font color="#FFFFCC">'+TXT_abilita+'</font></a></span>');
	document.write('</td>');
	}else{
	document.write('<td bgcolor="'+FND_barra+'" valign="middle" align="center" background="grafiche/spaziatore.gif">');
	document.write('<span class="dida"><a href="javascript:mascotteDisabilita();"><font color="#FFFFCC">'+TXT_disabilita+'</font></a></span>');
	document.write('</td>');
	}
	document.write('</tr></table>');

document.write('</td><td width="19" height="9" colspan="3" rowspan="2" align="left" valign="top" background="grafiche/spaziatore.gif"><img src="grafiche/fumetto_fDX_b.gif" width="10" height="9"></td></tr><tr> <td height="1" background="grafiche/spaziatore.gif" bgcolor="#000000"><img src="grafiche/spaziatore.gif" width="1" height="1"></td></tr><tr> <td colspan="2" background="grafiche/spaziatore.gif"><img src="grafiche/spaziatore.gif" width="1" height="1"></td><td background="grafiche/spaziatore.gif"><img src="grafiche/spaziatore.gif" width="1" height="1"></td><td colspan="3" background="grafiche/spaziatore.gif"><img src="grafiche/spaziatore.gif" width="1" height="8"></td></tr></table></td><td width="120" height="137" background="grafiche/spaziatore.gif"><img src="'+immagineMascotte+'" width="120" height="137" onLoad="hgt();"></td></tr></table>');
document.write(chiusura);
}// function creaMascotte
creaMascotte();

// funzioni per la mascotte ...

function apriMascotte(cosa4){
if (caricato && hg==1){
if(visMascotte==false){  
window.open('_scripts/contr_mascotte.asp?action=abilita','contr_mascotte','width=10,height=10,toolbar=0,menubar=0,resizable=0,scrollbars=0,location=0');
}
visMascotte=true;
nascondiM(cosa4);
}}

function mascotteDisabilita(){
if(confirm(TXT_msg_disabilita)){ 
nascondiM('mascotte'); 
visMascotte=false;
window.open('_scripts/contr_mascotte.asp?action=disabilita','contr_mascotte','width=10,height=10,toolbar=0,menubar=0,resizable=0,scrollbars=0,location=0');
}}

function mostraM(cosa2){
txt=cosa2;
if (caricato){
	desc_no=(NS4)? document.layers[txt] : (document.all)? document.all[txt] : document.getElementById(txt);
	if(NS4){desc_no.visibility="visible";}else{desc_no.style.visibility="visible";}
	setTimeout("nascondiM('"+cosa2+"');", 20000);
setVariables();
checkLocation(cosa2);	
	}}
	
function nascondiM(cosa3){
txt=cosa3;
if (caricato){
	desc_no=(NS4)? document.layers[txt] : (document.all)? document.all[txt] : document.getElementById(txt);
	if(NS4){desc_no.visibility="hidden";}else{desc_no.style.visibility="hidden";}
	//setTimeout("mostraM();", 40000);
	
	}}
function mascotte(cosa){
setTimeout("mostraM('"+cosa+"');", 10);
} 


if (visMascotte){ 
	mascotte('mascotte'); 
}

if (visMnwm){ 
Mxs=-3;
Mys=7;
setVariables();
checkLocation('mnwm');	
}
caricato=true; 

//-->
