/*
		-----------------------------------------
	 	SpineUniverse.com dropdown menu
 		07/29/2008
 		jpelosi
		-----------------------------------------
 		requires prototype library (prototypejs.org)
 		this script adds a class 'over' to the 'li' items containing a 'a' when rolled over.
 		also sets the x position of the dropdown (nested ul>li element).
 		use the value below to offset that value.
		-----------------------------------------
		
		
		
		
*/
var dropOffset = 0; // x offset for nested ul dropdown.
var rootUL = "mainnav"; // the id of the root ul element


// 	offset for IE browsers 
// 	(sometimes the x position is off in IE, so you can adjust the offset here), firefox will ignore this
if (document.all&&document.getElementById) {
	var dropOffset = 0;
}


<!--//--><![CDATA[//><!--
// dropdown navigation for IE
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("mainnav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					var off = $(this).positionedOffset();
					var drop = $(this).descendants();
					//alert(drop[1].identify());
					
					//alert (off.left);
					if (drop[1]){
					drop[1].setStyle({'left': off.left+"px"});
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
//--><!]]>