$(document).ready(function() {

   $("ul#nav li ul ").find("a").each(function() {
       $(this).css("opacity","0.9");
       $(this).hover(function() {
            $(this).css("opacity","1");
       }, function() {
            $(this).css("opacity","0.9");
       });           
   });
   /*
   $("ul#nav li").hover(function() {
        $(this).find("a:first").css("background-color","#fff");
        $(this).find("a:first").css("color","#014a81");
        
   },function() {
        $(this).find("a:first").css("background-color","#014a81");
        $(this).find("a:first").css("color","#fff");
   });
   */
   $("ul#nav li:has(ul)").hover(function() { 
            $(this).children("ul").css('display', 'block'); 
            
            $(this).children("a:first").css("background-color","#fff");
            $(this).children("a:first").css("color","#183057");
       }, 
       function() { 
            $(this).children("ul").css('display', 'none'); 
            $(this).children("a:first").css("background-color","#183057");
            $(this).children("a:first").css("color","#fff");
       }
   );

	$('#maps area').bt({
	  showTip: function(box){
		$(box).fadeIn(500);
	  },
	  hideTip: function(box, callback){
		$(box).animate({opacity: 0}, 500, callback);
	  },
	  
	  shrinkToFit: true,
	  hoverIntentOpts: {
		interval: 0,
		timeout: 0
	  }
	});

});
