function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
	this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1
	this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0; 
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie5mac)
	return this
}
bw=new checkBrowser()

messages=new Array()
messages[0]=m1
messages[1]=m2
messages[2]=m3

function makeObj(obj){ //Makes crossbrowser object		
   	this.css=bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?document.layers[obj]:0;	
   	this.wref=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj].document:0;		
	this.writeIt=b_writeIt;																
	return this
}
function b_writeIt(text){if(bw.ns4){this.wref.write(text);this.wref.close()}
else this.wref.innerHTML=text}

var xpos,ypos; //Capturing mousemove
function popmousemove(e){xpos=bw.ns4?e.pageX:(event.x-5); ypos=bw.ns4?e.pageY:event.y}

var isLoaded; //Initiates page
function popupInit(){
    oDesc=new makeObj('divDescription')
    if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove=popmousemove;
    isLoaded=true;
}	

function popup(num){ //Shows the messages
    if(isLoaded){
	oDesc.writeIt(messages[num])
	//oDesc.writeIt('<span class="clDescription">'+messages[num]+'</span>')
	if(bw.ie5) ypos=ypos+document.body.scrollTop
	oDesc.css.left=((winW/2)-320+PixelsRight); oDesc.css.top=820-PixelsUp; //where the message appears 820 450
	//oDesc.css.left=xpos+fromX; oDesc.css.top=ypos+fromY //to follow the mouse
	oDesc.css.visibility='visible'
    }
}

function popout(num){ //Hides the messages
	if(isLoaded) oDesc.css.visibility='hidden'
}

setTimeout('popupInit()', 5);