function extLinks() {
    if (!document.getElementsByTagName) return false;
    var links = document.getElementsByTagName("a");
    for (var i=0; i < links.length; i++) {
      if (links[i].className.match("externalLink")) {
        links[i].onclick = function() {
          window.open(this.href);
          return false;
        }
      }
    }
  }


function rolloverAllInit() { 
  var idInd = 0;
  if (document.getElementsByTagName) {
    var allDIVs = document.getElementsByTagName('div');
    for (var i=0;i<allDIVs.length;i++) {
      if (allDIVs[i].className == "odd" || allDIVs[i].className == "even") {
        allDIVs[i].setAttribute("id","container"+idInd);
        var alink;
        var allChilds = allDIVs[i].childNodes;
        for (var j=0;j<allChilds.length;j++) {
            alink = null;
          if (allChilds[j].tagName && allChilds[j].tagName.toLowerCase() == "a") {
            alink = allChilds[j];
            if (alink.parentNode.id) {
              if (navigator.userAgent.indexOf("MSIE")!=-1) { 
                alink.setAttribute("onmouseover",function() {rolloverAll(this.parentNode.id,'over')});
                alink.setAttribute("onmouseout",function() {rolloverAll(this.parentNode.id,'out')});
              } else {
                alink.setAttribute("onmouseover","rolloverAll('"+allDIVs[i].id+"','over')");
                alink.setAttribute("onmouseout","rolloverAll('"+allDIVs[i].id+"','out')");
              }
            }
          } else if (allChilds[j].tagName && allChilds[j].tagName.toLowerCase() == "h3" && allChilds[j].firstChild.tagName.toLowerCase() == "a") {
            alink = allChilds[j].firstChild;
            if (alink.parentNode.parentNode.id) {
              if (navigator.userAgent.indexOf("MSIE")!=-1) { 
                alink.setAttribute("onmouseover",function() {rolloverAll(this.parentNode.parentNode.id,'over')});
                alink.setAttribute("onmouseout",function() {rolloverAll(this.parentNode.parentNode.id,'out')});
              } else {
                alink.setAttribute("onmouseover","rolloverAll('"+allDIVs[i].id+"','over')");
                alink.setAttribute("onmouseout","rolloverAll('"+allDIVs[i].id+"','out')");
              }
            }
          }
        }
        idInd++;
      }
    }
  }
}

function rolloverAll(id,e) {
  if (document.getElementById&&document.getElementById(id)) {
    var allChilds = document.getElementById(id).childNodes;
    for (var i=0;i<allChilds.length;i++) {
      var alink;
      if (allChilds[i].tagName && allChilds[i].tagName.toLowerCase() == "a") {
        alink = allChilds[i];
      } else if (allChilds[i].tagName && allChilds[i].tagName.toLowerCase() == "h3" && allChilds[i].firstChild.tagName.toLowerCase() == "a") {
        alink = allChilds[i].firstChild;
      }
      if (alink && e) {
        if (e=="over") alink.style.textDecoration = "underline";
          else alink.style.textDecoration = "none";
      }
    }
  }
}


function AntiSpam_Slicer(n, d, c){location.href="mailto:" + n + "@" + d + "." + c;}

function popUpNoScroll(URL, winwidth, winheight) {
	var extwin = window.open(URL,'newWin','toolbar=1,location=1,menubar=1,status=1,resizable=1,scrollbars=0,width='+winwidth+',height='+winheight);
	extwin.focus();
 }

window.onload=function(){
	rolloverAllInit();
	extLinks(); 
	enableTooltips(); // You'll find this function in OnOffTooltips.js
//REMOVED	allLinks(); // You'll find this function in pleaseRegister.js	
};


