// vc_id = "$Id: inner_page.js 13421 2011-01-18 21:35:57Z jgiven $"
$(document).ready(function() {
	// Start - Bind functions for inner page search box
	$("#ip_search_box").bind("focus",function() {
		if ($("#ip_search_box").val() == "Enter any state, city, neighborhood, zip code, or address") {
			$("#ip_search_box").val("");
		}
	});
	$("#ip_search_box").bind("blur",function() {
		if ($("#ip_search_box").val() == "") {
			$("#ip_search_box").val("Enter any state, city, neighborhood, zip code, or address");
		}
	});
        // END - Bind functions for inner page search box
});

function triggerSearch( form ) {
    if ( form.location.value != '' ) {
	LOCATION_GATEWAY.findLocation( form.location.value );
    } else {
	window.location = 'index.cfm?fuseaction=listing.SearchLanding';
    }
}

function getSearchDefault() {
    if ( getCookie("searchType") == 'list' ) {
	LOCATION_GATEWAY.setDisplay('list');
    }
}

function getDisambiguationMessage( ) {
    return '<table width="100%" height="100%"><tr><td class="pageTitle" valign="top">We\'re sorry. Either we could not find your location or it falls outside of our service area.  Please <a href="javascript:closeResultDialogue();">try your search again</a>.<br /><br /><span style="color: #660000;">Tips:<br><br> Try to be more specific or start by clicking on a state name below.</span></td></tr><tr><td valign="bottom" align="right"><a href="javascript:closeResultDialogue();">Close</a></td></tr></table>';
}

function getAdditionalSearchConstraints( ) {
  return null;
}
