
// Created by A4FlashCoder. Website: http://www.a4flash.com/

// Added by Sean
var agent = navigator.userAgent;
var browserName = navigator.appName;

ie6orLower = false;

if (browserName == "Microsoft Internet Explorer") {
    if(navigator.appVersion.indexOf("MSIE 6") != -1 || navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1 || navigator.appVersion.indexOf("MSIE 4") != -1) {
       ie6orLower = true;
    }

}

// Mouse Overs - DOM3
startList = function() {
if (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() {
  if (document.all) { this.className+=" over"; }
  tmpSrc = this.childNodes[0].childNodes[0].src;
  var suffix = tmpSrc.substring(tmpSrc.lastIndexOf('.'));
  this.childNodes[0].childNodes[0].src = tmpSrc.substring(0,tmpSrc.lastIndexOf('.')) + "_over" + suffix;

  // Added by Sean
  if (ie6orLower) {
     document.getElementById('dropDownList1').style.display = "none";
     document.getElementById('dropDownList2').style.display = "none";
  }
  }
  node.onmouseout=function() {
  if (document.all) { this.className=this.className.replace(" over", "");}
  tmpSrc = this.childNodes[0].childNodes[0].src;
  var suffix = tmpSrc.substring(tmpSrc.lastIndexOf('.'));
  tmpSrc = tmpSrc.replace("_over" + suffix, suffix);
  this.childNodes[0].childNodes[0].src = tmpSrc;
  // Added by Sean
  if (ie6orLower) {
     document.getElementById('dropDownList1').style.display = "block";
     document.getElementById('dropDownList2').style.display = "block";
   }
   }
   }
  }
 }
}
window.onload=startList;

// Created by A4FlashCoder. Website: http://www.a4flash.com/

