
	$(function(){
		var slide_handlers = $('.navCont li a');
		slide_handlers.each(function(){
		  var curRel = $(this).attr('rel').substring(1,6);
			$(this).hover(
				function(){
				  /* Hover on: Fold all other subnav items */
          $('.subNav[id!=' + curRel + ']').slideUp();
          if ($('.subNav[id=' + curRel + ']').css('display') != 'block') {
					  $( $(this).attr('rel') ).css({ 'width': $(this).width()+50+'px' , 'left': $(this).offset().left-$('.subNavWrapper').offset().left }).slideDown(200);
					}
					return false;
				},
				function(){
          /* Hover off: Empty to prevent the subnav items from folding again */
          /* Folding is triggered by a Hover of a next navcont item or by the mouse out fix below */
				}
			)
		});
		
		/* BEGIN FIX FOR MOUSE OUT */
		$(document).ready(function () {
			$('#nav').hover(function () {
			$( $('.subNav').slideUp(200));
		});
		});

		$(document).ready(function () {
			$('#top_meta').hover(function () {
			$( $('.subNav').slideUp(200));
		});
		});

		$(document).ready(function () {
			$('#content').hover(function () {
			$( $('.subNav').slideUp(200));
		});
		});
		/* END FIX FOR MOUSE OUT */
	});


