/*


//old function without jQuery syntax


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("dropMenu");
		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;

*/



// DropDown Menu function only for ie6
jQuery.dropDownMenu = function() {
	if (!jQuery.browser.msie || (jQuery.browser.version >= 7)) { return false; }

	var menuRoot = jQuery("#dropMenu");
	if (menuRoot.size() < 1) { return false; }
	
	var menuItems = jQuery("> li",menuRoot);
	if (menuItems.size() < 1) { return false; }
	
	return menuItems.each(function(i){
		var currentItem = jQuery(menuItems[i]);
		currentItem.hover(function(){
			currentItem.addClass("over");
		}, function(){
			currentItem.removeClass("over");		
		});
	});
};


jQuery(document).ready( function() {
	var menu = jQuery.dropDownMenu();
});
