// Template Script
document.write('<table style="position:absolute;top:-500px;left:0px;z-index:500;-moz-opacity:.8;" id="hover" cellspacing=0 cellpadding=0><tr><td id="cellhover"></table><input type="hidden" id="usehover" value = "0">');
    var isIE = document.all?true:false;
    if (!isIE) document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = getMousePosition;
    function getMousePosition(e) {
    if(document.getElementById("usehover").value == 1){
      var _x;
      var _y;
      if (!isIE) {
        _x = e.pageX;
        _y = e.pageY;
      }
      if (isIE) {
        _x = event.clientX - -document.documentElement.scrollLeft;
        _y = event.clientY - -document.documentElement.scrollTop;
      }
      xnum = _x - -10;
      ynum = _y - -15;

      document.getElementById("hover").style.top = ynum + "px"

      if((xnum - (-1 * document.getElementById("hover").scrollWidth) < (screen.width - 40))){
      document.getElementById("hover").style.left = xnum + "px"
      }else{
      document.getElementById("hover").style.left = (screen.width - document.getElementById("hover").scrollWidth - 40) + "px";
      }


      document.getElementById("hover").style.top = ynum + "px"

      return true;
      }
    }


    function hover(msg){
    document.getElementById("cellhover").innerHTML = msg;
    document.getElementById("usehover").value = 1;
    }

    function hoveroff(){
      document.getElementById("hover").style.left = "-500px";
      document.getElementById("hover").style.top = "-500px";
    document.getElementById("usehover").value = 0;
    }

// Javasript to make these windows show their magic.

var popUp_width 	= 485		// POPUP WIDTH
var popUp_height 	= 610		// POPUP HEIGHT
var popUp_left		= 250		// PADDING FROM LEFT
var popUp_top		= 20		// PADDING FROM TOP
var scrollbars 		= "1"		// TURN ON POPUP SCROLLBARS "1" FOR ON "0" FOR OFF
var faqscrollbarS 	= "1"		// TURN ON FAQ SCROLLBARS "1" FOR ON "0" FOR OFF

// PopUp Function

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + faqscrollbarS + ',location=0,statusbar=0,menubar=0,resizable=1,width='+popUp_width+',height='+popUp_height+',left='+popUp_left+',top='+popUp_top+'');");
}
