	$j(document).ready(function(){
			
			if (siteRootLocation.toLowerCase()=="uk")
			{
				countries = UKCountries;
				searchBox.UseFreshCountryData = false;
			}
			
			searchBox.UseFreshCountryData = false;
			searchBox.SubmitURL = '/property/search/';
			
			Init();
			
			if (siteIsSubdomain && siteIsCountrySubDomain)
			{
				if (siteRootLocation.toLowerCase() != "uk")
				{
					$j(searchBox.AutoCompleteTextBox).setOptions({
						cacheLength : 1,
						matchSubset : false,
						max:25,
						extraParams : { country:siteRootLocation, countryID:"0",GetLocationsByPrefix:"a"}
					}).flushCache();
				}else{
					$j(searchBox.AutoCompleteTextBox).setOptions({
						cacheLength : 1,
						matchSubset : false,
						max:25,
						extraParams : { country:"UK", countryID:"0",GetLocationsByPrefix:"a"}
					}).flushCache();
				}
			}
			else
			{
				if (siteIsSubdomain && siteIsCategorySubDomain)
				{
					if (siteRootLocation.toLowerCase() != "uk")
					{
						$j(searchBox.AutoCompleteTextBox).setOptions({
							cacheLength : 1,
							matchSubset : false,
							max:25,
							extraParams : { country:siteRootLocation, countryID:"0",GetLocationsByPrefix:"a"}
						}).flushCache();
					}
				}else{
					/* .com site */
					$j(searchBox.AutoCompleteTextBox).setOptions({
						cacheLength : 1,
						matchSubset : false,
						max:25,
						extraParams : { country:siteRootLocation, countryID:"0",GetLocationsByPrefix:"a"}
					}).flushCache();
				}
			}
		});
