		sfHover = function() {
					var sfEls = document.getElementById("nav").getElementsByTagName("LI");
					for (var i=0; i<sfEls.length; i++) {
		
								sfEls[i].onmouseover=function() {
											this.className+=" sfhover";
								}
		
								sfEls[i].onmouseout=function() {
		
											this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
								}
					}
		}
		
		if (document.all) { //MS IE
		
					if (window.attachEvent)
		
								window.attachEvent("onload", sfHover);
		
					else { //IE 5.2 Mac does not support attachEvent
		
								var old = window.onload;
		
								window.onload = function() { if (old) old(); sfHover(); }
					}
		}

function zetfunctions(oLi){
						var j
						var k
						var node
							oLi.onmouseover=function() {
								this.className+=" over";
							}
							oLi.onmouseout=function() {
								this.className=this.className.replace(" over", "");
							}
							for (j=0; j<oLi.childNodes.length; j++) {
							node = oLi.childNodes[j];
							if (node.nodeName=="UL") {
								for (k=0; k<node.childNodes.length; k++) {
								node2 = node.childNodes[k];
								if (node2.nodeName=="LI") {
									zetfunctions(node2);
								}
								}
							}
							}
						
						
						}
						
function fixIEbug(oLi){
	var j
	var k
	var l
	var node


	   oLi.onclick=function(){

		for (j=0; j<this.childNodes.length; j++) {
		  node = this.childNodes[j];
		  if (node.nodeName=="A") {

		    for (l=0; l<node.attributes.length; l++) {
			if (node.attributes[l].nodeName == "href") {
				window.location.href = node.attributes[l].nodeValue;
				return true;
			}
		    }
		  }
		}
	   }


}


startList = function() {
						var i;
							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") {
										zetfunctions(node);
										fixIEbug(node);
									}
									}
						}
						}

		if (document.all) { //MS IE
		
					if (window.attachEvent)
		
								window.attachEvent("onload", startList);
		
					else { //IE 5.2 Mac does not support attachEvent
		
								var old = window.onload;
		
								window.onload = function() { startList(); }
					}
		}

