// JavaScript Document


function switchTag(tag,softanother)
{
//       alert(tag);
//       alert(content);
       for(i=1; i <5; i++)
       {
              if ("tag"+i==tag)
              {
                     document.getElementById(tag).getElementsByTagName("a")[0].className="select"+i;
                     document.getElementById(tag).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="selectspan"+i;
              }else{
                     document.getElementById("tag"+i).getElementsByTagName("a")[0].className="";
                     document.getElementById("tag"+i).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="";
              }
              if ("softanother"+i==softanother)
              {
                     document.getElementById(softanother).className="";
              }else{
                     document.getElementById("softanother"+i).className="hidesoftanother";
              }
              document.getElementById("softanother").className=softanother;
       }
}


startList = 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", "");
                }
            }
        }
    }
}
window.onload=startList;

//-->