$(function(){
		//menu dropdown
		var hide = false;
        $("a#property-search").hover(function(){
            if (hide) clearTimeout(hide);
            if($("div.dropdown").queue().length < 2)
			$("div.dropdown").fadeIn(100);			
        }, function() {
            hide = setTimeout(function() {
				$("div.dropdown").fadeOut(100);
				}, 500);
		});
        $("div.dropdown").hover(function(){
            if (hide) clearTimeout(hide);
					
			}, function() {
            hide = setTimeout(function() {$("div.dropdown").fadeOut(100); 
			}, 500);

		});
		
	//fade fx on home/results	
	
	if ($.browser.msie)
	{ } else {
	
	  $(".featured-link").hover(function(){
		  $(this).parent("div").stop().animate({ backgroundColor: "#777777" }, 250);
	  },function(){
		  $(this).parent("div").stop().animate({ backgroundColor: "#bbbbbb" }, 250);
	  });
	  
	  $(".callout-grey").hover(function(){
		  $(this).stop().animate({ backgroundColor: "#333333" }, 400);
	  },function(){
		  $(this).stop().animate({ backgroundColor: "#123659" }, 400);
	  });
	  
  	  $(".callout1").hover(function(){
		  $(this).stop().animate({ backgroundColor: "#333333" }, 400);
	  },function(){
		  $(this).stop().animate({ backgroundColor: "#00549f" }, 400);
	  });
	  
  	  $(".callout2").hover(function(){
		  $(this).stop().animate({ backgroundColor: "#333333" }, 400);
	  },function(){
		  $(this).stop().animate({ backgroundColor: "#123659" }, 400);
	  });
	  
      $(".callout3").hover(function(){
		  $(this).stop().animate({ backgroundColor: "#333333" }, 400);
	  },function(){
		  $(this).stop().animate({ backgroundColor: "#00749f" }, 400);
	  });  
	
	};
		  
});


