<!--
if (document.layers) { // Netscape
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
    document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netcsape 6
    document.onmousemove = captureMousePosition;
}
// Global variables
xMousePos = 0; // Horizontal position of the mouse on the screen
yMousePos = 0; // Vertical position of the mouse on the screen
xMousePosMax = 0; // Width of the page
yMousePosMax = 0; // Height of the page

function captureMousePosition(e) {
    if (document.layers) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
        xMousePos = window.event.x+document.body.scrollLeft + document.documentElement.scrollLeft;
        yMousePos = window.event.y+document.body.scrollTop  + document.documentElement.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft + document.documentElement.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop + document.documentElement.scrollTop;
    } else if (document.getElementById) {
        // Netscape 6 behaves the same as Netscape 4 in this regard 
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
//window.status = "xMousePos=" + xMousePos + ", yMousePos=" + yMousePos + ", xMousePosMax=" + xMousePosMax + ", yMousePosMax=" + yMousePosMax;
}

isIE = document.all;                              // IE4+
isNN = !document.all && document.getElementById;  // DOM,NS6,Gecko
isN4 = document.layers;                           // NS4 layers

function getRefToDiv(divID) {
    if( document.layers ) { //Netscape layers
        return document.layers[divID]; }
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        return document.getElementById(divID); }
    if( document.all ) { //Proprietary DOM; IE4
        return document.all[divID]; }
    if( document[divID] ) { //Netscape alternative
        return document[divID]; }
    return false;
}

function lclear(n) {
var i,p;
for (i=0; i<n ; i++) {
	p=getRefToDiv("TDL"+i);
	if (p) p.href="#";
	}
}
  
function hideMe() {
  myRef = getRefToDiv("piclayer"); if (!myRef) return false;
  if (myRef.style) myRef.style.visibility = "hidden";
  else if (myRef.visibility) myRef.visibility = "hide";
  return true;
}
 
function showMe (ccode,HNO,userid,hotelname) {
  var noPx = document.childNodes ? 'px' : 0;
  myRef = getRefToDiv("piclayer"); if (!myRef) return false;
  myStyle = myRef.style ? myRef.style : myRef;
  myStyle.left = (parseInt(xMousePos) + 20) + noPx;
  myStyle.top  = (parseInt(yMousePos) - 20) + noPx;
  if (myRef.style) myRef.style.visibility = "visible";
  else if (myRef.visibility) myRef.visibility = "show";

//var img =  "http://" + ccode + ".r24.org/" + HNO  + "/" + userid + "-main.jpg";
  var img =  "http://" + ccode + ".r24.org/getpic.php?h=" + HNO;
  if (ccode == 'XX') img =  userid;
  myRef = getRefToDiv("picimage"); if (!myRef) return false;
  myRef.src=img;

  myRef = getRefToDiv("picname"); if (!myRef) return false;
  if (document.getElementById) myRef.style.top = '1px'; // NS6 fix
  if (document.getElementById) myRef.style.top = '0px';  // NS6 fix
  myRef.innerHTML = hotelname ? hotelname + "<br>" : "";
  return true;
}
// -->