/*
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=-70;    // modify this value to change the popup position.
Yoffset= 20;    // modify this value to change the popup position.

var nav,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape"){(document.layers)?nav=true:old=true;}

if(!old){
var skn=(nav)?document.dek:dek.style;
if(nav)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mouse;
var sknw=(nav)?document.dek:dek.style;
if(nav)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mousew;
}

function popup(msg,bak){
var content="<TABLE  WIDTH=150 BORDER=1 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+
"BGCOLOR="+bak+"><TD ALIGN=center><div style='font-size: 11pt'>"+msg+"</div></TD></TABLE>";
if(old){alert(msg);return;} 
else{yyy=Yoffset;
 if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
 }
}

/* Wide popups by Felynx Cougati */
function popupwide(msg,bak){
var content="<table width=440 border=1 bordercolor=black cellpadding=2 cellspacing=0 "+ "bgcolor="+bak+"><td><div style='font-size: 11pt'>"+msg+"</div></td></table>";
if(old){alert(msg);return;} 
else{yyy=Yoffset;
 if(nav){sknw.document.write(content);sknw.document.close();sknw.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;sknw.visibility="visible"}
 }
}

/* This script has been added by Julie Peschke so that an image appears over the document. */
function popupI(imageName,bak,imageWidth,imageHeight){
var content="<TABLE BORDER=1 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+" BGCOLOR="+bak+"><TD ALIGN=center><IMG SRC=" + imageName + " WIDTH=" + imageWidth + " HEIGHT=" + imageHeight + " ALT=' ' BORDER='0'></TD></TABLE>";
if(old){alert(msg);return;} 
else{yyy=Yoffset;
 if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
 }
}

/* This script, added by Julie Peschke, allows a message and an image to appear over the document. */
function popupMI(preamble,imageName,bak,imageWidth,imageHeight){
var content="<TABLE BORDER=0 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+
"BGCOLOR="+bak+"><TR><TD ALIGN=left><FONT COLOR=black SIZE=2>"+preamble+"</FONT></TD></TR><TR><TD ALIGN=center><IMG SRC=" + imageName + " WIDTH=" + imageWidth + " HEIGHT=" + imageHeight + " ALT=' ' BORDER='0'></TD></TR></TABLE>";
if(old){alert(preamble);return;} 
else{yyy=Yoffset;
 if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
 }
}

/* This script, added by Julie Peschke, allows an image with both a preamble and a postamble to appear over the document.*/
function popupMIM(preamble,imageName,bak,imageWidth,imageHeight, postamble){
var content="<TABLE BORDER=0 BORDERCOLOR=black CELLPADDING=2 CELLSPACING=0 "+
"BGCOLOR="+bak+"><TR><TD ALIGN=left><FONT COLOR=black SIZE=2>"+preamble+"</FONT></TD></TR><TR><TD ALIGN=center><IMG SRC=" + imageName + " WIDTH=" + imageWidth + " HEIGHT=" + imageHeight + " ALT=' ' BORDER='0'></TD></TR><TR><TD ALIGN=left><FONT COLOR=black SIZE=2>"+postamble+"</FONT></TD></TR></TABLE>";
if(old){alert(preamble);return;} 
else{yyy=Yoffset;
 if(nav){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=(nav)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
var y=(nav)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;
}

function get_mousew(e){
var x=(nav)?e.pageX:event.x+document.body.scrollLeft;sknw.left=30;
var y=(nav)?e.pageY:event.y+document.body.scrollTop;sknw.top=y+yyy;
}

function kill(){
if(!old){yyy=-1000;skn.visibility="hidden";sknw.visibility="hidden";}
}
