var text  = new Array (
        "Benvenuti nel nuovo blog di oltre",
        "Aperiodico/Apolitico di informazione",
        "Internet, Sicurezza, Programmazione",
        "e tutto quello che mi passa per la testa",
        "dedicato a Pestiferina :)",
        "Buona Navigazione e grazie di essere passato"
);
var x = 0;
var j = 0;

function commenti(id) 
{
   var wpost = document.getElementById(id); 
   
   if (wpost.className=="visualcomm") { 
      wpost.className="nascondicomm"; 
   } 
   else { 
      wpost.className="visualcomm"; 
   } 
} 

function apriwin(cosa,x,y) 
{
    if(y > 400) {
    window.open(cosa,"sec"+y,"scrollbars=yes,width="+x+", height="+y);
    } else { 
    window.open(cosa,"sec"+y,"scrollbars=no,width="+x+", height="+y);
    }     
}

function msover1(suono) 
{
 var thissound=document.getElementById(suono);
 thissound.Play();
}


function preferiti(tit,url){
      if(document.all)
          window.external.AddFavorite(url, tit);  // NON FUNZIONA SU EXPLORER 7
	else if (window.sidebar) {
          var res = confirm("Firefox Alert: Il bookmark che verrà creato si aprirà nella sidebar di firefox\ne non nella finestra principale!\nPer evitare ciò devi cliccare col tasto destro del mouse il collegamento, scegliere\n'proprietà' e deselezionare la casella 'load in the sidebar' in basso.\n\nSpiacente ma ciò è inevitabile a causa di un bug su Firefox\n\nOppure Annulla e premi 'Ctrl+D'"); 
         if(res == true)
		window.sidebar.addPanel(tit, url, "");
  	} else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',tit);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
}

function copia(dest) {
  var tag = document.getElementById(dest);
  if (tag.createTextRange) {
    var range = tag.createTextRange();
    if (range)
      range.execCommand('Copy');
  } else {
    var flashco = 'flashcopier';
    if(!document.getElementById(flashco)) {
      var divh = document.createElement('div');
      divh.id = flashco;
      document.body.appendChild(divh);
    }
    document.getElementById(flashco).innerHTML = '';
    var divinfo = '<embed src="clipboard.swf" FlashVars="clipboard='+encodeURIComponent(tag.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
    document.getElementById(flashco).innerHTML = divinfo;
  }
  alert("Codice Inserito negli appunti. Adesso puoi incollare nel tuo codice");
}

function scr() {
   document.title = text[j].substring(0,x) + text[j].substring(x,x+1).toUpperCase() + text[j].substring(x+1,text[j].length)
   if (x == text[j].length) { 
         x = 0; 
         j=(j + 1) % text.length;
   }  
   else { x++ }
   setTimeout("scr()",75);
}

function right(e) {
if (!e) var e = window.event;
if ((navigator.appName == 'Netscape' || navigator.appName == 'Mozilla') && e.which == 3) return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2) {
   alert("(C) 2007 by oltre");
   return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
document.onmousemove=right;
document.onmouseclick=right;
if (document.layers) window.captureEvents(Event.MOUSECLICK);
window.onclick=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEMOVE);
window.onmousemove=right;

scr();


