// JavaScript Document

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 findObj(n) {
        var p, i, x;
        d=document;
        if ( (p=n.indexOf("?")) >0 && parent.frames.length ) {
                d=parent.frames[n.substring(p+1)].document;
                n=n.substring(0,p);
        }

        if  (!(x=d[n]) && d.all)  x=d.all[n];
        for (i=0;!x&&i<d.forms.length;i++)  x=d.forms[i][n];
        for(i=0;!x&&d.layers&&i<d.layers.length;i++)  x=findObj(n,d.layers[i].document);
        if (!x && d.getElementById)  x=d.getElementById(n);
        return x;
}

function ShowHideObj(id) {
		x = findObj(id);
        if (x != null) {
                if (x.style.display=="none")
                        x.style.display = "block";
                else
                        x.style.display = "none";
        }
 }
function ShowHideObjNam(id) {
        x = findObj(id);
        if (x != null) {
                if (x.style.display=="none")
                        x.style.display = "block";
                else
                        x.style.display = "none";

                ids=id + '_img';
                y = findObj(ids);
                if( x.style.display=="none")
                    y.src="icons/expand.png";
                else
                    y.src="icons/collapse.png";
        }
 }
