/*startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navdropdown");
		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;*/

startList = function() {}

jQuery(document).ready(function($) {
	var navRoot = $('#navdropdown');
	
	// switch classes on hover for ie7 persistence
	$('li',navRoot).hover(function(){
		$(this).addClass('over')
			.children('ul').css('z-index', '9999');
	},function() {
		$(this).removeClass('over')
			.children('ul').css('z-index', 'auto');
	});
	
	// force the child "li" tags' width to be equal to the parent in ie7 and add border-bottom
	$('ul li',navRoot).each(function() {
		var listItem = $(this);
		var targetWidth = listItem.parent('ul').width();
		listItem.width(targetWidth).css('border-bottom','1px solid #FFF');
		if (listItem.is(':last-child')) {
			listItem.css('border-bottom','none');
		}
	});	
});
