// JavaScript Document
<!-- Begin
var isNetscape = navigator.appName=="Netscape";
// Global variables
var xMousePos = 0; // Horizontal position of the mouse on the screen
var yMousePos = 0; // Vertical position of the mouse on the screen
var xMousePosMax = 2000; // Width of the page
var yMousePosMax = 1000; // Height of the page

// Global object to hold drag information.
var dragObj = new Object();
dragObj.zIndex = 0;

function getwinmax() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  xMousePosMax = myWidth;
  yMousePosMax = myHeight;
}

getwinmax();

function getRefToDiv(divID) {
	if( document.layers ) { return document.layers[divID+'C'].document.layers[divID]; };
	if( document.getElementById ) {return document.getElementById(divID); };
	if( document.all ) { return document.all[divID]; };
	if( document[divID+'C'] ) { return document[divID+'C'].document[divID]; };
	return false;
}

function tonum1 (num) {
 return (parseFloat('0'+num.toString().replace(/\D/g, '')));  
};

function captureMousePosition(e) {
	//getwinmax()
	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;
        yMousePos = window.event.y+document.body.scrollTop;
        //xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        //yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    }  else if (document.getElementById) {
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        //xMousePosMax = window.innerWidth+window.pageXOffset;
        //yMousePosMax = window.innerHeight+window.pageYOffset;
    }
}

function hideballoon (txt) {
 var balloonid = getRefToDiv('InfoBalloon');
 balloonid.style.visibility="hidden";
}

// End -->
