

subHover = function() {
  var subEls = document.getElementById("nav").getElementsByTagName("li");
  for (var i=0; i<subEls.length; i++) {
    subEls[i].onmouseover=function() {
      this.className+=" subhover";
    }
    subEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp("subhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", subHover);



function Uberlink(cl,d){
	var i,ob,tA,h=document.location.href;
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	if(tA[i].href==h){
	tA[i].className=cl;
}}}}}