
sfHover = function() {
	var sfEls = document.getElementById("navMenu_5EBCF14B");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(document).ready(function(){

	$('#navMenuBox li').hover(
						function() {
							$(this).css('background-position','0 -18px');
						},
						function() {
							$(this).css('background-position','0 0px');
						});
	
	/* 
	 jQuery Suckerfish Drop Downs
	
	*/

	$("#nav_top li").children('ul').children('li').each(function() {
		if (!$(this).is('.parentItemClosed') && !$(this).is('.parentItemOpen')) {
			$('a',this).css('background','none');
		}
	});				
	
    $("#nav_top li").toggle(
        function() { 
			if ($(this).children().length > 1) {
				$(this).children('ul').show("fast");
				$(this).children('ul').children('li').each(function() {
					if (!$(this).is('.parentItemClosed') && !$(this).is('.parentItemOpen')) {
						$('a',this).css('background','none');
					}
				});
				$(this).children('.parentItemClosed').show("fast");
				$(this).addClass('parentItemOpen');
				$(this).removeClass('parentItemClosed');
				return false;
			}
			else
				location.href = $(document).find('base').attr('href') + $(this).find('a').attr('href');
		}, 
        function() { 
			$(this).children('ul').hide("fast");
			$(this).addClass('parentItemClosed');
			$(this).removeClass('parentItemOpen');
			return false;
		} 
    );
	
	
	$("#menuTopHover").hover(
		function() {
			$('#menuTop').css('background-position','0 -7px');
			if ($(this).parent().find('#menuBottom').is('.menu1Bottom'))
				$('#menuBottom').css('background-position','0 -7px');
			
		},
		function() {
			$('#menuTop').css('background-position','0 0');
			if ($(this).parent().find('#menuBottom').is('.menu1Bottom'))
				$('#menuBottom').css('background-position','0 0');
		}
	);
	
	$("#menuBottomHover").hover(
		function() {
			$('#menuBottom').css('background-position','0 -7px');
		},
		function() {
			$('#menuBottom').css('background-position','0 0');
		}
	);

}); 


