scrollStep=1
timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollTop+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollTop-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}


function apriDiv() {
document.getElementById("servizi").style.visibility="visible"
}

function chiudiDiv() {
document.getElementById("servizi").style.visibility="hidden"
}


function previous1(){
  if (document.images){
     if (pictureNumber1 > 1) pictureNumber1--
     else             
     pictureNumber1 = totalNumber1
     document.images.slides1.src  = galleriaImg1[pictureNumber1-1]
   }
}
 function next1(){
  if (document.images){
     if (pictureNumber1 < totalNumber1)  pictureNumber1++
     else                    
     pictureNumber1 = 1
     document.images.slides1.src  = galleriaImg1[pictureNumber1-1]
   }
}

function avvio(){  
if (document.images){
	if (totalNumber1==1) {
		document.getElementById("divSposta").style.visibility="hidden";
	    document.images.slides1.id  = pictureNumber1;
		document.images.slides1.src  = galleriaImg1[pictureNumber1];
  	}
  	else
  	{
		next1();
  	}
}
}

function avvioPartecipazioni(){  
if (document.images){
	if (totalNumber1==1) {
		document.getElementById("divSposta").style.visibility="hidden";
	    document.images.slides1.id  = pictureNumber1;
		document.images.slides1.src  = galleriaImg1[pictureNumber1];
  	}
  	else
  	{
		next1();
  	}
}
myUrl ="PopUpPartecipazioni.html";
W =800;
H =600;
LeftPosition =0; 
TopPosition =0; 
msg=open(myUrl,'','toolbar=no,directories=no,menubar=no,width=' + W + ',height=' + H + ',resizable=yes,scrollbars=yes,top=' + TopPosition + ',left=' + LeftPosition ); 
}

function avvioPartecipazioni(){  
if (document.images){
	if (totalNumber1==1) {
		document.getElementById("divSposta").style.visibility="hidden";
	    document.images.slides1.id  = pictureNumber1;
		document.images.slides1.src  = galleriaImg1[pictureNumber1];
  	}
  	else
  	{
		next1();
  	}
}
myUrl ="PopUpPartecipazioni.html";
W =800;
H =600;
LeftPosition =0; 
TopPosition =0; 
msg=open(myUrl,'','toolbar=no,directories=no,menubar=no,width=' + W + ',height=' + H + ',resizable=yes,scrollbars=no,top=' + TopPosition + ',left=' + LeftPosition ); 
}


document.oncontextmenu=function(){return false;} 


/*
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Il tasto destro del tuo Mouse è disabilitato");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
http://www.webalice.it/callister/webmaster.htm
*/




