//NON VISUALIZZA GLI ERRORI DI UNO SCRIPT\\
function SymError()
{
  return true;
}

window.onerror = SymError;

//PROTEZIONE TESTO DA COPIA E INCOLLA\\
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}


//BLOCCA MENU TASTO DESTRO DEL MOUSE\\
document.oncontextmenu = function(){return false}

//NASCONDE I MESSAGGI DELLA STATUS BAR\\
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

//MESSAGGIO SCORREVOLE SULLA STATUS BAR\\
var scrtxt="CGsite: tutto o quasi sul mondo degli euro";
var lentxt=scrtxt.length;
var width=100;
var pos=1-width;

function scorrevole() {
  pos++;
  var scroller="";
  if (pos==lentxt) {
    pos=1-width;
  }
  if (pos<0) {
    for (var i=1; i<=Math.abs(pos); i++) {
      scroller=scroller+" ";}
    scroller=scroller+scrtxt.substring(0,width-i+1);
  }
  else {
    scroller=scroller+scrtxt.substring(pos,width+pos);
  }
  window.status = scroller;
  setTimeout("scorrevole()",170);
  }


//SETTA COME PAGINA INIZIALE\\
function paginaIniziale() {
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://cgsite.altervista.org/');
}