function changeHotspotInfo(number) {
 var ref = "";
 var aref = "";
 for(var i=1; i < 11; i++) {
  ref = "#demoHotspotInfo" + i;
  aref = "#clickMe" + i + " a";
  if (i == number) {
   $(ref).slideDown("slow");
   $(aref).addClass("highlightedHotspot");
  }
  else {
   $(ref).slideUp("slow");
   $(aref).removeClass("highlightedHotspot");
  }
 }
 return true;
}

function slider(idName) {
 var ref = "#dNav ul";
 $(ref).slideUp("slow");
 var ref = "#" + idName + " ul";
 slideElementById(ref);
 return true;
}

function slideTwo(idName) {
 var ref = "#" + idName + " ul";
 slideElementById(ref);
 return true;
}

function slideElementById(ref) {
 if( $(ref).is(":hidden") ) {
  $(ref).slideDown("slow");
 }
 else {
  $(ref).slideUp("slow");
 }
}

$(document).ready(function(){
 jQuery("img").removeAttr("title", "");
 jQuery('a[@href^="http://"]').each(function(i){
  var link = "" + this.href;
  var currentSite = "" + window.location;
  var cutOff = 0 + currentSite.indexOf( "/", 10 );
  if(link.substring(0, cutOff) != currentSite.substring(0,cutOff)) {
   this.target= "_blank";
   jQuery(this).addClass("externalLink");
  }
 });
});



$(window).load(
 function () {
  if (document.all&&document.getElementById) {
   navRoot = document.getElementById("nav");
   for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes[i];
    if (node.nodeName=="LI") {
     node.onmouseover=function() {
      this.className+=" over";
     }
     node.onmouseout=function() {
      this.className=this.className.replace (" over", "");
     }
    }
   }
  }
 }
);