/*********************
//* jQuery Multi Level CSS Menu #2- By Dynamic Drive: http://www.dynamicdrive.com/
//* Last update: Nov 7th, 08': Limit # of queued animations to minmize animation stuttering
//* Menu avaiable at DD CSS Library: http://www.dynamicdrive.com/style/
*********************/

//Specify full URL to down and right arrow images (23 is padding-right to add to top level LIs with drop downs):

var jqueryslidemenu={

animateduration: {over: 200, out: 1}, //duration of slide in/ out animation, in milliseconds

buildmenu:function(menuid){
	jQuery(document).ready(function($){
		var $mainmenu=$("ul#"+menuid+"")
		var $headers=$mainmenu.find("ul").parent()
		$headers.each(function(i){
			var $curobj=$(this)
			
			$curobj.hover(
				function(e){
					var $targetul=$(this).children("ul:eq(0)")
					if ($targetul.queue().length <= 1) {
						//$targetul.show(jqueryslidemenu.animateduration.over)
						$targetul.css("display", "block")
					}
				},
				function(e){
					var $targetul=$(this).children("ul:eq(0)")
					if ($targetul.queue().length <= 1) {
						//$targetul.hide(jqueryslidemenu.animateduration.out)
						$targetul.css("display", "none")
					}
				}
			)
		}) //end $headers.each()
		$mainmenu.find("ul").css({display:'none', visibility:'visible'})
	}) //end document.ready
}
}

//build menu on page:
jqueryslidemenu.buildmenu("menu")



