<!--
// statistica
statit = new Image(1,1);
statit.src = "stat.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer);
// Variabili delle Tendine
var Ll,Ln,x0,posiz,IdTimer,Frame,Step,Start,End,flagMotore,skipped,livelloAperto,jump;
logo=new Image(1,1);
Ll="";
Ln="";
x0=0;
x1=0;
posiz=0;
flagMotore="off";
livelloAperto="";
skipped="";
Frame=90;
Step=10;
Start=0;
End=150;
jump=(End/Step);
IdLoop=true;

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function startslidemenu(){
		document.getElementById("logo").src="immagini/logoqeq.gif";
		MM_preloadImages('immagini/bggotico_on.jpg','immagini/bgfossili_on.jpg','immagini/bgnajf_on.jpg','immagini/bgvetri_on.jpg','immagini/bgchi_on.jpg','immagini/bgcollezioni_on.jpg','immagini/bgguestbook_on.jpg','immagini/bgcontatti_on.jpg');
		x1=0;

		MM_controlSound('play','document.getElementById("CS1055059605551")',sound_on[1]);

		Id1Timer=setInterval('slidemenu()',1000/(Frame));
		//Id2Timer=setTimeout('hidesito()',10000);
}

function vuoto(){
clearInterval(Idx);
//
}

function slidemenu(){

rate=10;
	if(x1<150) {
		if (x1>10) {rate=10-(((x1-10)/10)/14*(10-1))}
		x1+=rate;
		document.getElementById("menusx").style.left=(x1-150);
	}else{
	clearInterval(Id1Timer);
	}
}

function ClearLoop(){
		clearTimeout(IdLoop);
		IdLoop=false;
		}

function main(Lx){
		IdLoop=setTimeout('GoMain("'+Lx+'")',2000);
		}

function GoMain(Lx){
	loadSource("images/dot_hidden.gif");
	hideall(); //aggiunto
	if ((Lx!=livelloAperto) && flagMotore=="off"){
		flagMotore="on";
		Ll=Lx; Ln=Lx;
		Motore();
	}else {
	if (Ln!=Lx){
		skipped=Lx;}
	}
}


function Motore(){
	if (IdLoop){
		if (livelloAperto){
			x0=0;
			IdTimer=setInterval('closelevel(livelloAperto)',1000/Frame);
		}else{
			x0=0;
			IdTimer=setInterval('openlevel()',1000/Frame);
			}
		}
}


function openlevel(){
	if(x0<jump) {
		x0++;
		pre='document.getElementById("'+Ln+'").style.width='+(x0*Step);
		eval(pre);
		pre='document.getElementById("'+Ln+'a").style.width='+(x0*Step);
		eval(pre);
	}else{
	clearInterval(IdTimer);
	pre='document.getElementById("'+Ln+'Text").style.visibility="visible"';
	eval(pre);
	livelloAperto=Ln;
	flagMotore="off";
	if (skipped>""){
	Ln=skipped; Lx=skipped; skipped="";
	flagMotore="on"; Motore();
	}
	}
}

function closelevel(Lx){
	if(x0<jump) {
		x0++;
		pre='document.getElementById("'+Lx+'").style.width='+(End-(x0*Step));
		eval(pre);
		pre='document.getElementById("'+Lx+'a").style.width='+(End-(x0*Step));
		eval(pre);
	}else{
		clearInterval(IdTimer);
		pre='document.getElementById("'+Lx+'Text").style.visibility="hidden"';
		eval(pre);
		x0=0;
		IdTimer=setInterval('openlevel()',1000/Frame);
		}
}

function hideall(){
document.getElementById("scrollWindow").style.visibility="hidden";
//loadSource(scrollFirstPage);
document.getElementById("Zoom").style.visibility="hidden";
//self.focus();
}

function showall(){
hideall();
//scrollTextFrame.document.location = scrollFirstPage
document.getElementById("scrollWindow").style.visibility="visible";
//scrollWindow.focus();
}

//-->

