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;



function ShowHide(id) {
    obj = document.getElementsByTagName("ul");
    if (obj[id].style.display == 'block'){
    obj[id].style.display = 'none';
    }
    else {
		obj[id].style.display = 'block';
    }
}

var cur_lyr;	
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var txt = getElemRefs(id);
  if (txt && txt.css) txt.css.display = "block";
}

function hideLayer(id) {
  var txt = getElemRefs(id);
  if (txt && txt.css) txt.css.display = "none";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}
