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.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
	}

	bw=new checkBrowser()

	function showHide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
	if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden'
	else obj.visibility='visible'
	}

	function show(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
	obj.visibility='visible'
	}

	function hide(div,nest){
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0;
	obj.visibility='hidden'
	}

	var where = ""; // which link

	function checkwhere(e) {
	        if (document.layers){
        		xCoord = e.x;
		        yCoord = e.y;
		}
        	else if (document.all){
	        xCoord = event.clientX;
	        yCoord = event.clientY;
		}
        	else if (document.getElementById){
        	xCoord = e.clientX;
	        yCoord = e.clientY;
		}
        }

	document.onmousemove = checkwhere;
	if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}

	function setXY(name1,name2) {

	//checkwhere();
	//if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}

	document.getElementById(name1).style.left = document.getElementById(name2).style.left;
	document.getElementById(name1).style.top = document.getElementById(name2).style.top;
	//alert(xCoord+','+yCoord);
	}

