Xoffset=15;
Yoffset=15;

var old,skn,iex=(document.all),yyy=-1000;
var mouseX;var mouseY; 

var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all

if (ns4) { skn=document.dek;}
else if (ns6) { skn=document.getElementById("dek").style;}
else if (ie4) { skn=document.all.dek.style;}

if(ns4) document.captureEvents(Event.MOUSEMOVE);
else {

	skn.visibility="visible"
	skn.display="none"

}

document.onmousemove=get_mouse;

function popup(msg){
	var content="<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=1 "+
	"BGCOLOR=#777777><TD bgcolor=#c8e8fe><FONT COLOR=black SIZE=1 face=\"Verdana, Arial, Helvetica, sans-serif\">"+msg+"</FONT></TD></TABLE>";
	yyy=Yoffset;
	if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"}
	if(ns6){document.getElementById("dek").innerHTML=content;skn.display=""}
	if(ie4){document.all("dek").innerHTML=content;skn.display=""}
}


function getScrollPosition() {
	if (document.documentElement && document.documentElement.scrollTop)
		return document.documentElement.scrollTop; // IE6 +4.01
	if (document.body && document.body.scrollTop)
		return document.body.scrollTop; // IE5 or DTD 3.2
	return 0;
}

function get_mouse(e){
	var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
	skn.left=(x+Xoffset)+"px";
	mouseX = (x+Xoffset)+"px";
	var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
	skn.top=(y+yyy)+"px";
	mouseY=y+"px";
}

function kill(){
yyy=-1000;
if(ns4){skn.visibility="hidden";}
else if (ns6||ie4)
skn.display="none"
}

function n_window(theurl,w,h)
{
 // set the width and height
 var the_width=w;
 var the_height=h;
 // set window position
 var from_top=200;
 var from_left=200;
 // set other attributes
 var has_toolbar='no';
 var has_location='no';
 var has_directories='no';
 var has_status='no';
 var has_menubar='no';
 var has_scrollbars='yes';
 var is_resizable='yes';
 // attributes put together
 var the_atts='width='+the_width+'show,height='+the_height+',top='+from_top+',screenY='+from_top+',left='+from_left+',screenX='+from_left;
 the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status='+has_status;
 the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
 // open window
 window.open(theurl,'',the_atts);
}

