function locatorSearchHook(){

	// Logic for header search
	// Get the initial value of the search bar.
		var searchValue = $('#header-locator input[name="locator"]').attr('value');
	
	$('#header-locator input[name="locator"]').focusin(function() {
		if($(this).attr('value') == searchValue){
			$(this).attr('value','');
		}
	});
	
	$('#header-locator input[name="locator"]').focusout(function() {
		if($(this).attr('value') == ''){
			$(this).attr('value',searchValue);
		}
	});
	
	
	// Logic for retrieving the search query.
	if($.getUrlVar('locator')){
		$('input#addressInput').attr('value', $.getUrlVar('locator'));
		searchLocations(); return false;
	}
	
	

}
