function lib_bwcheck(){ //Browsercheck (needed)
	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 resize fix...
	scrX= innerWidth; scrY= innerHeight;
	onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
}

/****
Variables to set 
****/
msgFont= "verdana,arial,helvetiva"	// The font for the message
msgFontSize= 11				// Set the fontSize in px
msgFontColor="#000000"		// Set the fontColor
msgWidth= "300"				// Set the width of the messageblock here for netscape 4

//Set the text you want to display on mouseclick here.
messages=new Array()
messages[0]="" //This is the default text that appears when you mouse out.
messages[1]="<div id=\"monalisa\"><img src=\"img/monalisa.jpg\" width=\"200px\" height=\"260px\" alt=\"GinaBoss\"></div><div id=\"txtmonalisa\"><code><b>GinaBoss</b><br>(Al secolo Graziella)<br><br>Volitiva, tenace ma<br>anche testarda e<br>impulsiva: &egrave; l'anima<br>del Pio Pao.<br><br>Frase ricorrente:<br>\"Gino, mi te copo!\"</code></div>"
messages[2]="<div id=\"ginaboys\"><img src=\"img/robot1.jpg\" width=\"150px\" height=\"240px\" alt=\"GinaBoys\"></div><div id=\"txtginaboys\"><code><b>GinaBoys</b><br>(Qui in divisa di gala)<br><br>Perch&egrave; fossero efficienti<br>&egrave; stato necessario un<br>duro lavoro di<br>programmazione.<br><br>Se qualche volta vi<br>capita di vederli inattivi,<br>girate pure la manovella<br> e sul display digitate<br>Password: Birra<br>Userid: Panini<br><br>Servizievoli.</code></div>"
messages[3]="<div id=\"ginocogo\"><img src=\"img/robot2.jpg\" width=\"120px\" height=\"255px\" alt=\"GinoCogo\"></div><div id=\"txtginocogo\"><code><b>GinaCogo/a</b><br>(Homo Fornellus)<br><br>E' una specie in via di<br> estinzione, solo di rado<br>osservabile in libert&agrave;<br> nei pressi di friggitrici<br>o piastre isolate.<br><br>Non cucina in branco,<br>si nutre di carni alla<br>piastra, patatine fritte,<br>panini e, di tanto in<br>tanto, di crepes alla<br>nutella.<br><br>Importante! Specie<br> protetta: segnalare gli<br>avvistamenti.</code></div>"
messages[4]="<div id=\"birra\"><img src=\"img/birra.jpg\" width=\"150px\" height=\"100px\" alt=\"Birra\"></div><div id=\"rommel\"><img src=\"img/rommel.jpg\" width=\"150px\" height=\"120px\" alt=\"Rommel\"></div><div id=\"txtrommel\"><code><b>Rommel</b><br>(La volpe del Carso)<br><br>Uno dei cani pi&ugrave;<br>rompipalle del creato:<br>abbaia a tutto e a tutti,<br>ma &egrave; tanto affettuoso.<br><br>Modalit&agrave; d'utilizzo:<br>antifurto.</div><div id=\"txtbirra\"><b>Birra</b><br>(1988 - 2005)<br><br>Pi&ugrave; unica che rara: in<br>perfetta simbiosi con il<br>Pio Pao e in armonia<br>con GinaBoss.<br><br>Indimenticabile.</code></div>"
messages[5]=""
messages[6]=""

/********************************************************************************
You don't have to change anything below this
********************************************************************************/

//ChangeText object constructor.
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]
}

//The mouoseover function. Calls the writeIt method to write the text to the div.
function changeText(num){
	if(bw.bw) oMessage.writeIt('<table width="'+msgWidth+'" border="0" cellpadding="0" cellspacing="0"><tr><td><span style="font-size:'+msgFontSize+'px; font-family:'+msgFont+'; color:'+msgFontColor+'">'+messages[num]+'</span></td></tr></table>', num)
}

//The init function. Calls the object constructor and initiates some properties.
function changeTextInit(){
	//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
	bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
	if (bw.opera5) bw.ns6 = 0
	
	oMessage = new makeChangeTextObj('divMessage')
	oLinks = new makeChangeTextObj('divLinks')
	//Setting the style properties of the text layer.
	if(bw.dom || bw.ie4){
		with(oMessage.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
	}
	//Both layers are hidden by default to prevent users from mousing over them and creating errors while the page loads.
	oMessage.css.visibility= "visible"
	oLinks.css.visibility= "visible"
}

//If the browser is ok, the init function is called on pageload. 
if (bw.bw) onload = changeTextInit
