//############################################################
//############################################################
//    browserVer4Detect()
//    BrowserInfo()
//    platformDetect()
//    
//############################################################
//############################################################

function browserVer4Detect()
{
  if(navigator.appVersion.substring(0,1) < 4)
    URLStr = "1.html";
  else
    URLStr = "2.html";
  window.location = URLStr;
}


// Example:
// var b = new BrowserInfo();
// alert(b.version); 
function BrowserInfo()
{
  this.name = navigator.appName;
  this.codename = navigator.appCodeName;
  this.version = navigator.appVersion.substring(0,4);
  this.platform = navigator.platform;
  this.javaEnabled = navigator.javaEnabled();
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}

function platformDetect()
{
  if(navigator.appVersion.indexOf("Win") != -1)
  {
    alert("Windows");
  }
  else if(navigator.appVersion.indexOf("Mac") != -1)
  {
    alert("Macintosh");
  }
  else alert("Other");
}

var ie4 = document.all;
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all; 
var ie6 = document.getElementById && document.all;
var dom = (document.getElementById) ? true : false; 
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false; 
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false; 
var ns4 = (document.layers && !dom) ? true : false; 
var ie4 = (document.all && !dom) ? true : false; 
offsetX = 0;
offsetY = 20;
var toolTipSTYLE="";
function initToolTips()
{
  
  if(ns4||ns6||ie4 || ie5)
  {
    if(ns4) {
		toolTipSTYLE = document.toolTipLayer; 
	} else if(ns6){
		toolTipSTYLE = document.getElementById("toolTipLayer").style;
	} else if(ie4) {
		toolTipSTYLE = document.all.toolTipLayer.style;
	} else if(ie5) {
		toolTipSTYLE = document.getElementById("toolTipLayer").style;
    }
    if(ns4) document.captureEvents(Event.MOUSEMOVE);
    else
    {
       toolTipSTYLE.visibility = "visible";
	   toolTipSTYLE.display = "none";
    }
    document.onmousemove = moveToMouseLoc;
  }
}

function GetObj(id) 
{ 
  if (dom) return document.getElementById(id);
  return (ns4) ? document.layers[id] : (ie4) ? document.all[id] : (ie5||ns5) ? document.getElementById(id) : null; 
}
				


