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= "Arial, Helvetica, sans-serif"	// The font for the message
msgFontSize= 12				// 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 mouseover here.
messages=new Array()
messages[0]="&nbsp<br><br>" 
messages[100]="&nbsp" 

//2008
messages[1]="<div class='bodyMainBoldLarge'>Emmanuel Camilleri</div>Band Director"
messages[2]="<div class='bodyMainBoldLarge'>Carmen Grech</div>Director"
messages[3]="<div class='bodyMainBoldLarge'>Antoinette Agius</div>Membership Secretary"
messages[4]="<div class='bodyMainBoldLarge'>Mary Rose Aquilina</div>Treasurer"
messages[5]="<div class='bodyMainBoldLarge'>Leli Grech</div>Band Director"
messages[6]="<div class='bodyMainBoldLarge'>Virginia Church/div>Secretary<"
messages[7]="<div class='bodyMainBoldLarge'>Emanuel Gatt</div>Director"
messages[8]="<div class='bodyMainBoldLarge'>Mike Azzopardi</div>President"
messages[9]="<div class='bodyMainBoldLarge'>Fred Portelli</div>Youth Director"
messages[10]="<div class='bodyMainBoldLarge'>Tony Vella</div>Vice President"

//1971
messages[11]="<div class='bodyMainBoldLarge'>George Pulo</div>"
messages[12]="<div class='bodyMainBoldLarge'>John Sant</div>"
messages[13]="<div class='bodyMainBoldLarge'>Charlie Bonnici</div>"
messages[14]="<div class='bodyMainBoldLarge'>Paul Sammut</div>"
messages[15]="<div class='bodyMainBoldLarge'>Charlie Bonnano</div>"
messages[16]="<div class='bodyMainBoldLarge'>Carmel Bonnano</div>"
messages[17]="<div class='bodyMainBoldLarge'>Emmanuel Camilleri</div>"
messages[18]="<div class='bodyMainBoldLarge'>John Sciberras</div>"
messages[19]="<div class='bodyMainBoldLarge'>Maestro Paul Gauci</div>"
messages[20]="<div class='bodyMainBoldLarge'>Peter Schembri</div>"
messages[21]="<div class='bodyMainBoldLarge'>Joseph Gatt</div>"
messages[22]="<div class='bodyMainBoldLarge'>John Darmanin</div>"

//2009
messages[23]="<div class='bodyMainBoldLarge'>Lino Agius</div>Director"
messages[24]="<div class='bodyMainBoldLarge'>Lino Debono</div>Band Director"
messages[25]="<div class='bodyMainBoldLarge'>Fred Portelli</div>Youth Director"
messages[26]="<div class='bodyMainBoldLarge'>Carmen Grech</div>Membership Secretary"
messages[27]="<div class='bodyMainBoldLarge'>Charlie Dimech</div>Band Director"
messages[28]="<div class='bodyMainBoldLarge'>Leli Gatt</div>Director"
messages[29]="<div class='bodyMainBoldLarge'>Virginia Church</div>Secretary"
messages[30]="<div class='bodyMainBoldLarge'>Tony Vella</div>Vice President"
messages[31]="<div class='bodyMainBoldLarge'>Leli Grech</div>President"
messages[32]="<div class='bodyMainBoldLarge'>Mary Rose Aquilina</div>Treasurer"

/********************************************************************************
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 changeText1971(num)
{
	oMessage1971 = new makeChangeTextObj('divMessage1971')
	if(bw.bw) oMessage1971.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)
}
function changeText2008(num)
{
	oMessage2008 = new makeChangeTextObj('divMessage2008')
	if(bw.bw) oMessage2008.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)
}
function changeText2009(num)
{
	oMessage2009 = new makeChangeTextObj('divMessage2009')
	if(bw.bw) oMessage2009.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
	
	oMessage1971 = new makeChangeTextObj('divMessage1971')
	oMessage2008 = new makeChangeTextObj('divMessage2008')
	oMessage2009 = new makeChangeTextObj('divMessage2009')
	oLinks = new makeChangeTextObj('divLinks')

	//Setting the style properties of the text layer.
	if(bw.dom || bw.ie4){
		with(oMessage1971.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
	}
	if(bw.dom || bw.ie4){
		with(oMessage2008.writeref.style){fontFamily=msgFont; fontSize=msgFontSize+"px"; color=msgFontColor}
	}
	if(bw.dom || bw.ie4){
		with(oMessage2009.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.
	
	oMessage1971.css.visibility= "visible"
	oMessage2008.css.visibility= "visible"
	oMessage2009.css.visibility= "visible"
	
	oLinks.css.visibility= "visible"
}

//If the browser is ok, the init function is called on pageload. 
if (bw.bw) onload = changeTextInit

