/*
ie_dropdown_fix.js
Jason Sisk (jasonmsisk@gmail.com)
Adds "over" class elements to items in a particular list

(Stolen from http://www.alistapart.com/articles/dropdowns/ and modified by JMS)

*/

function addOverClass(list,nodeCN) {
	regex = '/^' + nodeCN + '/'
//	if (document.all && document.getElementById) { // check for IE
		navRoot = document.getElementById(list);
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.className == 'category') {
				node.onmouseover=function() {
					node.className = "category over";
				}
				node.onmouseout=function() {
					node.className = "category";
				}
			}
		}
//	}
}
//window.onload=addOverClass('navMain','category');