// JavaScript Document
$(document).ready(function(){
		//show no menus
		$("dd.show").hide();
		//show first menu
		//$("dd:not(:last)").hide();
		
		//set this so that the menus slide around
		/*$("dt a").click(function(){
			$("dd:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");

			return false;
		});*/
		
		//uncomment this so the menus all open or close
		//due to the hacks i have made i need to use this function when a category with no subs is clicked
		//with the class 'hide' this will hide the other open categories
		$('dt.hide a').click(function(){
			$(this).parent().next().siblings('dd.show:visible').slideUp('slow');
			return false;
			});
		//standard function for open and closing any category with the class 'show'
		$('dt.show a').click(function(){
			$(this).parent().next().siblings('dd.show:visible').slideUp('slow');
			$(this).parent().next().slideToggle('slow');
			return false;
			});
		
		//$("dd:visible").slideUp("slow");
		
	});