/***********************************************
* Changes Menu link to class "selected" for current URL
***********************************************/

function changeClass(){
	var myurl=window.location.href;
	var menuLinks = document.getElementById("menu").getElementsByTagName("a");
	for (var i=0;i<menuLinks.length;i++){
		if (menuLinks[i].href == myurl){
			menuLinks[i].parentNode.setAttribute("class", "selected");
			menuLinks[i].parentNode.setAttribute("className", "selected");
		}
	}
}

/********************************************************
* Makes Drop-Down menu work for IE6
* In CSS document style class .over the same as li:hover
*********************************************************/

function startList () {
	if (document.all&&document.getElementById) {
		var theul = document.getElementById("menuul"); 
		var node = theul.getElementsByTagName("li"); 
		for (var i = 0; i < node.length; i++) { 
			node[i].onmouseover=function() {this.className+=" over";}
  			node[i].onmouseout=function() {this.className=this.className.replace(" over", "");}
    	}
  	}
}

function init(){
	changeClass();
	startList();
	}