
      function openNav() {
          // Hide any that might be forced open
          $('.open').next().hide();
          $(this).next().show(); 
          $(this).css("background","white");
          $(this).css("color","#4074CF");
          $(this).css('padding-bottom', '1em');
      }
      function closeNav() {
          $(this).next().hide(); 
          $(this).css("background","#4074CF");
          $(this).css("color","white");
          $(this).css('padding-bottom', '0');
          $('.open').next().show(); 

      }

      jQuery(document).ready(function(){
	$(".navlink").hover(openNav, closeNav);

	$(".subnav").hover(function() {
          $(this).show(); 
          $(this).prev().trigger('mouseenter'); 
          
	},
        function() {
          $(this).hide(); 
          $(this).prev().trigger('mouseleave'); 
        }
        );
        $('.open').each(openNav);
        $('.open').unbind('mouseleave', closeNav);
        $('.open').next().unbind();


      });
