<!-- Begin




//   ##############  SIMPLE  BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}
//alert(window.event.clientX);
//MenuWidth = 150;


//  #########  popup text 
/*
descarray = new Array(
"This site has some of the greatest scripts around!sss",
"These popups can have varying width. It is dependant upon the text message.",
"You can have <b>two</b> lines <br>and HTML content.",
"You can also have images in here like this:<br><img src=http://msdn.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif width=100>",
"You can put in a really long <br>description if it is nessary to <br>explain something in detail, <br>like a warning about content <br>or privacy.",
"</center>Lastly, you can have links like these:<br><a href='http://javascript.internet.com/'>JavaScript Source</a><br><a href='http://javascript.internet.com/'>JavaScript Source</a><br><a href='http://javascript.internet.com/'>JavaScript Source</a><br>With a change in the onmouseout event handler."
);
*/

overdiv="0";
//  #########  CREATES POP UP BOXES 
function popLayer(a){

Image_Path = "https://secure.idphonecard.com/idreg/images/en";

if(!descarray[a]){descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";}
if (navigator.family == "gecko") {pad="0"; bord="1 bordercolor=black";}
else {pad="1"; bord="0";}
/*
desc = 	  "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=000000><tr><td>\n"
	+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=ffffdd><center><font size=-1>\n"
	+descarray[a]
	+"\n</td></tr></table>\n"
	+"</td></tr></table>";
*/

desc = "<table border=0 cellpadding=0 cellspacing=0 width=200>"
+"    <tr>"
+"      <td width=100%>"
+"      <img border=0 src="+Image_Path+"/corner-top.gif width=200 height=13></td>"
+"    </tr>"
+"    <tr>"
+"      <td width=100%>"
+"      <table border=0 cellpadding=0 cellspacing=0 width=100%>"
+"        <tr>"
+"          <td width=10 background="+Image_Path+"/corner-left.gif>&nbsp;</td>"
+"          <td bgcolor=#FFFCCE>"
+"          <p><font face=Tahoma size=1>"
+descarray[a]
+"			</font></td>"
+"          <td width=10 background="+Image_Path+"/corner-right.gif>&nbsp;</td>"
+"        </tr>"
+"      </table>"
+"      </td>"
+"    </tr>"
+"    <tr>"
+"      <td width=100%>"
+"      <img border=0 src="+Image_Path+"/corner-bot.gif width=200 height=13></td>"
+"    </tr>"
+"  </table>";

if(navigator.family =="nn4") {
	document.object1.document.write(desc);
	document.object1.document.close();
	document.object1.left=x+15;
	document.object1.top=y-5;
	}
else if(navigator.family =="ie4"){
	object1.innerHTML=desc;
	object1.style.pixelLeft=x+15;
	object1.style.pixelTop=y-5;
	}
else if(navigator.family =="gecko"){
	document.getElementById("object1").innerHTML=desc;
	document.getElementById("object1").style.left=x+15;
	document.getElementById("object1").style.top=y-5;
	}
}
function hideLayer(){
if (overdiv == "0") {
	if(navigator.family =="nn4") {eval(document.object1.top="-500");}
	else if(navigator.family =="ie4"){object1.innerHTML="";}
	else if(navigator.family =="gecko") {document.getElementById("object1").style.top="-500";}
	}
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e){
x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
x = x+20;
//if(window.event.clientX < 478) {
//	diff = 478 - window.event.clientX;
//	x = window.event.clientX + diff + 20 ;
//}else{
//	diff = window.event.clientX - 478;
//	x = window.event.clientX - diff + 20 ;
//}

//alert(x);
//x = MenuWidth;
y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
//y = window.event.clientY  ;
}
if (isNav){document.captureEvents(Event.MOUSEMOVE);}
document.onmousemove = handlerMM;
//  End -->

