function lib_bwcheck(){ // Controllo browser (necessario)
this.ver = navigator.appVersion;
this.agent = navigator.userAgent;
this.dom = document.getElementById? 1: 0;
this.opera5 = (navigator.userAgent.indexOf("Opera") > -1 && document.getElementById)? 1: 0;
this.ie5 = (this.ver.indexOf("MSIE 5") > -1 && this.dom && !this.opera5)? 1: 0;
this.ie6 = (this.ver.indexOf("MSIE 6") > -1 && this.dom && !this.opera5)? 1: 0;
this.ie4 = (document.all && !this.dom && !this.opera5)? 1: 0;
this.ie = this.ie4 || this.ie5 || this.ie6;
this.mac = this.agent.indexOf("Mac") > -1
this.ns6 = (this.dom && parseInt(this.ver) >= 5) ? 1: 0;
this.ns4 = (document.layers && !this.dom)? 1: 0;
this.bw = (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);
return this;
}
var bw = lib_bwcheck()
if(document.layers){ //NS4 fissare il ridimensionamento...
scrX = innerWidth; scrY = innerHeight;
onresize = function() {if(scrX != innerWidth || scrY != innerHeight){history.go(0)} }
}
/****
Variabili da impostare
****/
msgFont = "arial,helvetiva"; // Il font per il messaggio
msgFontSize = 12; // Imposta la dimensione del testo in px
msgFontColor = "#000000"; // Imposta il colore del testo
msgWidth = "539"; // Imposta la larghezza del messaggio per Netscape 4
// Imposta il testo che vuoi visualizzare al passaggio del mouse
messages = new Array();
messages[0] = ""; // Questo è il testo di default che appare al verificarsi dell'evento mouse out.
messages[1] = "";
/********************************************************************************
Non devi cambiare niente qui sotto
********************************************************************************/
// Costruttore dell'oggetto ChangeText
function makeChangeTextObj(obj){
this.css = bw.dom? document.getElementById(obj).style: bw.ie4? document.all[obj].style: bw.ns4? document.layers[obj]: 0;
this.writeref = bw.dom? document.getElementById(obj): bw.ie4? document.all[obj]: bw.ns4? document.layers[obj].document: 0;
this.writeIt = b_writeIt;
}
function b_writeIt(text,num){
if (bw.ns4){
this.writeref.write(text);
this.writeref.close();
}
else this.writeref.innerHTML = messages[num];
}
// La funzione mouoseover. Chiama il metodo writeIt per scrivere il testo nel div.
function changeText(num){
if(bw.bw) oMessage.writeIt('
| '+messages[num]+' |