
function prelo(){
 
setTimeout('$("#module01").fadeIn("slow")',1500)
setTimeout('$("#module02").fadeOut("slow")',1200)
}


function dati(par1,par2,par3,par4,par5,par6,par7,par8)
	{
		this.par1=par1;
		this.par2=par2;
		this.par3=par3;
		this.par4=par4;
		this.par5=par5;
		this.par6=par6;
		this.par7=par7;
		this.par8=par8;
	}	

	
function cnghThumb(sId,sWhich,sPar){
		if(sPar == 1){

			document.getElementById(sId).src="img/opere/thumbs/"+sWhich.substring(0,sWhich.length-4)+"_.jpg"
		}
		else{
			document.getElementById(sId).src="img/opere/thumbs/"+sWhich+""
		}
	}
	
	
function f_label(sPar,sId)
{
			if(sPar == 1){
				document.getElementById("label"+sId).style.display="inline"
				document.getElementById("eti"+sId).style.display="inline"
			}
			else{
				document.getElementById("label"+sId).style.display="none"
				document.getElementById("eti"+sId).style.display="none"
			}
		
	}
	
	
	function fR_label(sPar,sId,sez)
{
			if(sPar == 1){
				
				document.getElementById(""+sez+"label"+sId).style.visibility="visible"
				document.getElementById(""+sez+"eti"+sId).style.visibility="visible"
				//alert(""+sez+"eti"+sId)
			}
			else{
				document.getElementById(""+sez+"label"+sId).style.visibility="hidden"
				document.getElementById(""+sez+"eti"+sId).style.visibility="hidden"
			}
		
	}
	
	
	sStep=145
	var conta = 3 ;
	function up(ss){
		sH=parseInt(document.getElementById("cont").style.top)
		ssH=parseInt(document.getElementById("cont").scrollHeight);
		sPasso = Math.ceil(ssH/450)
  
		if(conta < Math.ceil(lA/ss))
		{
			conta=conta + 1
			
			t1A = new Tween(document.getElementById('cont').style,'top',Tween.regularEaseOut,sH,sH-sStep,1,'px');
			t1A.start();
			//document.getElementById("arrowS").style.display="inline";
					
		}
		else{
			
			
		}
	}
	
	function down(ss)
	{
		sH=parseInt(document.getElementById("cont").style.top)
		ssH=parseInt(document.getElementById("cont").scrollHeight);
		sPasso = Math.ceil(ssH/450)

		if(conta > ss-1 )
			{
				conta = conta - 1;
				sH=parseInt(document.getElementById("cont").style.top);
				t1A = new Tween(document.getElementById('cont').style,'top',Tween.regularEaseOut,sH,(sH+sStep),1,'px');
				t1A.start();
			}
	}
	
	
	
sStepp =  145
 	var cc = 2 ;
	function upIR(ss){
		sH=parseInt(document.getElementById("cont").style.top)
		ssH=parseInt(document.getElementById("cont").scrollHeight);
		sPasso = Math.ceil(ssH/300)
 	
		if(cc < Math.ceil(lA/ss))
		{
			cc=cc + 1
			
			t1A = new Tween(document.getElementById('cont').style,'top',Tween.regularEaseOut,sH,sH-sStepp,1,'px');
			t1A.start();
			//document.getElementById("arrowS").style.display="inline";
					
		}
		else{
			
			
		}
	}
	
	function downIR(ss)
	{
		sH=parseInt(document.getElementById("cont").style.top)
		ssH=parseInt(document.getElementById("cont").scrollHeight);
		sPasso = Math.ceil(ssH/300)
 
		if(cc >  ss-2 )
			{
				cc = cc - 1;
				sH=parseInt(document.getElementById("cont").style.top);
				t1A = new Tween(document.getElementById('cont').style,'top',Tween.regularEaseOut,sH,(sH+sStepp),1,'px');
				t1A.start();
			}
	}