function tog(id) {
  var el=(typeof(id) != 'object')?document.getElementById(id):id;
  var courseDiv=id.getElementsByTagName("div")[0];
  var courseImg=id.getElementsByTagName("img")[0];
  if (courseDiv.className=="hideElement") {
   courseDiv.className="showElement";
   courseImg.src="/images/less-button.gif";
  } else {
    courseDiv.className="hideElement";
    courseImg.src="/images/more-button.gif";
  }
}


function initOnClicks() {
  if (document.getElementById("course3Desc")) {
    var el=document.getElementById("course3Desc");
    el.getElementsByTagName("img")[0].onclick=function() {
        tog(el);
      };
  }
}

startList = function() {
	  if (document.getElementById) {
	    navRoot = document.getElementById("menu").firstChild;
	    for (var 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", "");
	        };
	      }
	    }
	  }
	};

if (document.getElementById && document.getElementsByTagName)
  window.onload=function() {
    initOnClicks();
    startList();
  };