

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 apriPopUp(nomepage, altezza,larghezza) { 
myUrl = "popup.aspx?id=" + nomepage;
W =screen.width/2 // altezza;
H =screen.height/2 //larghezza;
LeftPosition = 0 //(screen.width) ? (screen.width-W)/2 : 0;
TopPosition = 0 //(screen.height) ? (screen.height-H)/2 : 0;

H = altezza + 45
W = larghezza + 45

msg=open(myUrl,'','toolbar=no,directories=no,menubar=no,width=' + W + ',height=' + H + ',resizable=yes,scrollbars=yes,top=' + TopPosition + ',left=' + LeftPosition ); 
}

function apriPaintingArt() { 
myUrl ="PopUpPaintingArt.aspx";
W =567
H =425
LeftPosition =0; //(screen.width) ? (screen.width-W)/2 : 0;
TopPosition =0; // (screen.height) ? (screen.height-H)/2 : 0; 
msg=open(myUrl,'','toolbar=no,directories=no,menubar=no,width=' + W + ',height=' + H + ',resizable=yes,scrollbars=yes,top=' + TopPosition + ',left=' + LeftPosition ); 
//msg=open(myUrl,'','toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,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("I contenuti e le foto di questo sito sono coperte da Copyright ARKAREA e non possono essere salvate o scaricate.");
//return false;
//}
//return true;
//}
//document.onmousedown=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//window.onmousedown=right;
