<!--
//************ Start Default Commands ******from Colin******
var isNS4 = 0; var isIE4 = 0; var isNS6 = 0; var isNew = 0;
var docObj, styleObj, currObj, cstyleObj;
var timeOn;
var bVer = (parseInt(navigator.appVersion));
var bName = navigator.appName;
var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));
var str_agent = navigator.userAgent.toLowerCase();
if (bName == "Netscape" && bVer >= 3) version = "js";
else if (bName == "Microsoft Internet Explorer" && bVer >= 4) version = "js";
else if (bName == "Netscape" && bVer == 2) version = "no";
else if (bName == "Microsoft Internet Explorer" && bVer >= 2) version = "no";
if (parseInt(navigator.appVersion >= 5)){isNew = 1}
else if (brow == "Netscape4") {isNS4 = 1;}
else if (brow == "Netscape5") {isNS6 = 1;}
else if (brow == "Microsoft Internet Explorer4") {isIE4 = 1;}
				
if (isNS4||isNS6||isIE4||isNew) {
  if(isNS4){ docObj = "document."; }
  else if(isNS6){ docObj = "document.getElementById('"; }
  else { docObj = "document.all."; }
  if(isNS4){ styleObj = ""; }
  else if(isNS6){ styleObj = "').style"; }
  else { styleObj = ".style"; }
  
  if(isNS4){ cstyleObj = ""; }
  else if(isNS6){ cstyleObj = "').currentStyle"; }
  else { cstyleObj = ".currentStyle"; }
}
function layerChange(l,t,v) {
  // Change layer values
  // l = layer name
  // t = style type
  // v = value
  if(isNS4||isNS6||isIE4||isNew) { eval(docObj + l + styleObj + '.' + t + ' = "' + v + '"') }
}
function getPropertyX(aid){
// Get left value of id
  var x,obj;
  if(document.getElementById){
    obj = document.getElementById(aid);
    x = obj.offsetLeft;
    return x;
  }
}
function getPropertyY(aid){
// Get top value of id
  var y,obj;
  if(document.getElementById){
    obj = document.getElementById(aid);
    y = obj.offsetTop;
    return y;
  }
}
function getPropertyW(aid){
// Get width value of id
  var w,obj;
  if(document.getElementById){
    obj = document.getElementById(aid);
    w = obj.offsetWidth;
    return w;
  }
}
function showToolTip(lid,aid){
  // Set width for main screen and Tool Tip box
  var main_width = 779;
  var box_width = 150;
  // Clear any current timer
  if(timeOn != null){ clearTimeout(timeOn); }
  // Hide all open tooltips
  if(document.getElementsByTagName){
    tmpDiv = document.getElementsByTagName('div');
  } else if(document.all){
    tmpDiv = document.all.tags("div");
  } else if(document.layers){
    tmpDiv = "";
  }
  if(tmpDiv != ""){
    for (i=0; i < tmpDiv.length; i++) {
      if(tmpDiv[i].id.indexOf('tooltip') > -1){
        tooltipOut(tmpDiv[i].id);
      }
    }
  }
  // Get Left(x) and Top(y)
  if(str_agent.indexOf("msie") > -1){
    var offValX = 178;
    var offValY = 229;
  } else {
    var offValX = 163;
    var offValY = 148;
  }
    var x = (getPropertyX(aid)+offValX) + getPropertyW(aid);
    var y = (getPropertyY(aid)+offValY) + 'px';
  // If Left value pushes tool tip off of the main window, then change x to fit tool tip.
  if(x > (main_width - box_width)){ x = ((main_width - box_width)-1); }
  x = x + "px";
  // Call layer functions
  layerChange(lid,'left',x);
  layerChange(lid,'top',y);
  layerChange(lid,'display','block');
}
function hideToolTip(lid){
  // Clear the tool tip afetr 1/2 second
  timeOn = setTimeout("tooltipOut('" + lid + "')",500)
}
function tooltipOut(lid){
  // Change display setting to none
  layerChange(lid,'display','none');
}
//-->

