/* 
 * jQuery function to have greyed out 'Search Property...' in the Top Search Bar
 * that clears the text on focus and changes the font to black. Also resets them
 * on blur
 */
		
	$(document).ready(function(){
		if ($('#search_box_top_input').attr('value') != 'Search Property...') {
			$('#search_box_top_input').css('color', '#000000');
		}
		$('#search_box_top_input').focus(
			function () {
				if ($(this).attr('value') == 'Search Property...') {
					$(this).attr('value', '');
				}
			}
		);
		$('#search_box_top_input').focus(
			function () {
				$(this).css('color', '#000000');
			}
		);
		
		$('#search_box_top_input').blur(
			function () {
				if ($(this).attr('value') == '') {
					$(this).attr('value', 'Search Property...');
				}
			}
		);
		$('#search_box_top_input').blur(
			function () {
				if ($(this).attr('value') == 'Search Property...') {
					$(this).css('color', '#C0C0C0');
				}
			}
		);
		$('#search_disclaimer_close').click(
			function () {
				$('#search_disclaimer').hide();
				$.cookie('display_search_disclaimer', 'no', {expires: 7, path: '/'});
			}
		);
		$('#search_disclaimer_close').mouseover(
			function () {
				$(this).css('cursor', 'pointer');
			}
		);
	});