// Hover Popup Support
// 
function xgetLayer(SRC)
{
  var tDIV = document.getElementById(SRC);             

  tDIV.style.cursor     = "hand";
  tDIV.style.visibility = "visible";
}

function xfloatLayer(SRC)
{
  var e = window.event;
  var tDIV = document.getElementById(SRC);
  var Browser, posX, posY;
  var contX   = -210; // CSS container offset
  var contY   = -195;
  var offsetX =  10; // offset from image icon / etc
  var offsetY =  15;
  
  
  // General routine
  if (e.pageX || e.pageY)
  {
    posX = e.pageX;
    posY = e.pageY;
  }
  else if (e.clientX || e.clientY)
  {
    posX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
    posY = e.clientY + document.body.scrollTop  + document.documentElement.scrollTop;
  }
  
  // Browser specific
  Browser = whichBrowser();
  if (Browser == 'Internet Explorer')
  {
    posX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
    posY = e.clientY + document.body.scrollTop  + document.documentElement.scrollTop;
  }
  
  else if (Browser == 'Safari')
  {
    posX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
    posY = e.clientY + document.body.scrollTop  + document.documentElement.scrollTop;
  }
  
  // catch possible negative values in NS4
  if (posX < 0){posX = 0}
  if (posY < 0){posY = 0}  
  
  tDIV.style.top  = posY + contY + offsetY;
  tDIV.style.left = posX + contX + offsetX;
  // alert("Browser: " + Browser + "  left: " + posX + " top: " + posY);
}  

function xhideLayer(SRC)
{
  var tDIV = document.getElementById(SRC);

  tDIV.style.visibility='hidden';
}

// Browser Detection Javascript
// copyright 1 February 2003, by Stephen Chapman, Felgall Pty Ltd

// You have permission to copy and use this javascript provided that
// the content of the script is not changed in any way.

function whichBrowser() 
{
  var agt=navigator.userAgent.toLowerCase();
  if (agt.indexOf("opera") != -1) return 'Opera';
  if (agt.indexOf("staroffice") != -1) return 'Star Office';
  if (agt.indexOf("webtv") != -1) return 'WebTV';
  if (agt.indexOf("beonex") != -1) return 'Beonex';
  if (agt.indexOf("chimera") != -1) return 'Chimera';
  if (agt.indexOf("netpositive") != -1) return 'NetPositive';
  if (agt.indexOf("phoenix") != -1) return 'Phoenix';
  if (agt.indexOf("firefox") != -1) return 'Firefox';
  if (agt.indexOf("safari") != -1) return 'Safari';
  if (agt.indexOf("skipstone") != -1) return 'SkipStone';
  if (agt.indexOf("msie") != -1) return 'Internet Explorer';
  if (agt.indexOf("netscape") != -1) return 'Netscape';
  if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
  if (agt.indexOf('\/') != -1) {
  if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
  return navigator.userAgent.substr(0,agt.indexOf('\/'));}
  else return 'Netscape';} else if (agt.indexOf(' ') != -1)
  return navigator.userAgent.substr(0,agt.indexOf(' '));
  else return navigator.userAgent;
}








