var search_buttons = {
	init : function(){
		$(".ref_search .submit").hover( 
			function() { $(this).attr({ src: "/images/homepage/go_button_over.gif"}); },
			function() { $(this).attr({ src: "/images/homepage/go_button.gif"}); } 
		);
		$("#all_search .submit").hover( 
			function() { $(this).attr({ src: "/images/homepage/all_button_over.gif"}); },
			function() { $(this).attr({ src: "/images/homepage/all_button.gif"}); } 
		);
		$("#advanced_search .submit").hover( 
			function() { $(this).attr({ src: "/images/homepage/adv_button_over.gif"}); },
			function() { $(this).attr({ src: "/images/homepage/adv_button.gif"}); } 
		);
		$("#new_listings_search .submit").hover( 
			function() { $(this).attr({ src: "/images/homepage/new_listings_over.gif"}); },
			function() { $(this).attr({ src: "/images/homepage/new_listings.gif"}); } 
		);
	}
};

var map = {
	init : function(){
		$("#map li").hover( 
			function() { $(this).children('.pop').fadeIn("slow"); },
			function() { $(this).children('.pop').fadeOut("fast"); } 
		);
		$("#map li").children('.pop').hide();
	}
};


jQuery.noConflict();
jQuery(document).ready(function($){

	// LOGO ROLLOVER
	search_buttons.init();
	// NAVIGATION
	map.init();
});