// JavaScript Document

var JQ = $;  // for compatibility with prototype

JQ(document).ready( setupExpands );

function setupExpands(){
	JQ('#nav ul li.inactive').hover(
		function() {
			// make the child menu appear
			//$( this ).children( 'ul' ).css("top","34px");
			JQ( this ).children( 'ul' ).show();
			
			// make the sub under the active node disappear
			//$( '#nav ul li.active').children( 'ul' ).css("top","-999em");
			JQ( '#nav ul li.active').children( 'ul' ).hide();
		},
		function(){
			// make the current sub menu disappear
			//$( this ).children( 'ul' ).css("top","-999em");
			JQ( this ).children( 'ul' ).hide();
			
			// put the active menu back
			//$( '#nav ul li.active').children( 'ul' ).css("top","34px");
			JQ( '#nav ul li.active').children( 'ul' ).show();
		}
	)
}