/* The following code comes from Patrick Griffiths <http://www.alistapart.com/articles/dropdowns/>.
   This is the code that enables dropdown list for Internet Explorer.
*/
function openFeatureFlex(URL,title,winWidth,winHeight,resizable,scrollbars,location,toolbar,status,menubar){
	var winY,winX = 0;
	var winOptions = "";
	if (resizable){
		winOptions += ",resizable";
	}
	if (scrollbars){
		winOptions += ",scrollbars";
	}
	if (location){
		winOptions += ",location";
	}
	if (toolbar){
		winOptions += ",toolbar";
	}
	if (status){
		winOptions += ",status";
	}
	if (menubar){
		winOptions += ",menubar";
	}
	if (winOptions.charAt(0) == ","){
		winOptions = winOptions.substr(1);
	}
	
	winOptions  += ',top='+winY+',left='+winX + ',screenX=10,screenY=10,width='+winWidth+',height='+winHeight;
	var popupWin2 = window.open(URL, title, winOptions);
	window.top.name='opener';
	if (popupWin2) {
		popupWin2.focus();
	}
}

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;