/*
Pop up information box II (Mike McGrath (mike_mcgrath@lineone.net,  http://website.lineone.net/~mike_mcgrath))
Permission granted to Dynamicdrive.com to include script in archive
For this and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

Xoffset=-34;    // modify these values to ...
Yoffset= 20;    // change the popup position.

var nav1,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape"){(document.layers)?nav1=true:old=true;}

if(!old){
var skn=(nav1)?document.dek:dek.style;
if(nav1)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mouse;
}

function popup(msg,bak){
var content="<TABLE  WIDTH=70 BORDER=1 BORDERCOLOR=#00FF00 BGCOLOR=#0D3000><TD ALIGN=center><FONT COLOR=white SIZE=2>"+msg+"</FONT></TD></TABLE>";
if(old){alert(msg);return;} 
else{yyy=Yoffset;
 if(nav1){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
 }
}

function get_mouse(e){
var x=(nav1)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
var y=(nav1)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;
}

function kill(){
if(!old){yyy=-1000;skn.visibility="hidden";}
}
