<!--
//************ Start Default Commands ************
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)));
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 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,tot){
  // Set width for main screen and Tool Tip box
  var main_width = 779;
  var box_width = 200;
  var tmpDiv = "";
  // 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('div_country_') > -1){
        tooltipOut(tmpDiv[i].id);
      }
    }
  }
  // Get Left(x) and Top(y) values
  var x = ((getPropertyX(aid) + getPropertyW(aid)) + 154);
  var y = (getPropertyY(aid) + 135 + getPropertyY('access_container')) + 'px';
  if(navigator.appVersion.indexOf('MSIE') > -1){
    if(navigator.appVersion.indexOf('MSIE 8') > -1){
    } else if(navigator.appVersion.indexOf('MSIE 7') > -1){
      x = ((getPropertyX(aid) + getPropertyW(aid)));
      y = (getPropertyY(aid) + 135 + getPropertyY('access_container') + (getPropertyY('ncp_left_panel')-120)) + 'px';
    } else {
      x = ((getPropertyX(aid) + getPropertyW(aid)));
      y = (getPropertyY(aid) + 135 + getPropertyY('access_container') + (getPropertyY('ncp_left_panel')-120)-33) + '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");
  var tmpKey = lid.substring(12,lid.length);
  var tmpHtml = document.getElementById(lid).innerHTML;
  if( (tmpHtml.indexOf('&nbsp;') == -1) ){
    var tmpNewHtml = "";
    tmpHtmlAry = tmpHtml.split(",");
  
    for(i=0; i < tmpHtmlAry.length; i++){
      if(i == 0){
        tmpNewHtml += "<h1>" + tmpHtmlAry[0].substring(1,(tmpHtmlAry[0].length-1)) + "&nbsp;</h1><ul>";
      } else {
        tmpNewHtml += "<li><a href=\"javascript:countryCategoryClick('" + tmpKey + "." + i + "');\">" + tmpHtmlAry[i].substring(1,(tmpHtmlAry[i].length-1)) + "</a></li>";
      }
      if(i == (tmpHtmlAry.length-1)){ tmpNewHtml += "</ul>"; }
    }
    if(tmpNewHtml != ""){
      document.getElementById(lid).innerHTML = "";
      document.getElementById(lid).innerHTML = tmpNewHtml;
    }
  }
  if(document.getElementById){
    document.getElementById(lid).style.left = x;
    document.getElementById(lid).style.top = y;
    document.getElementById(lid).style.display = 'block';
  } else {
    eval(docObj + lid + styleObj + '.left = "' + x + '"');
    eval(docObj + lid + styleObj + '.top = "' + y + '"');
    eval(docObj + lid + styleObj + '.display = "block"');
  }
}
function hideToolTip(lid){
  // Clear the tool tip afetr 1/2 second
  timeOn = setTimeout("tooltipOut('" + lid + "')",500)
}
function tooltipOut(lid){
  if(document.getElementById){
    document.getElementById(lid).style.display = 'none';
  } else {
    eval(docObj + lid + styleObj + '.display = "none"');
  }
}
//-->

