	$j(document).ready(function(){
			searchBox.UseFreshCountryData = true;
			searchBox.SubmitURL = '/property/search/';
			
			searchBox.AutoPriceIndexSelect = true;
			Init();
			
			$j(searchBox.KeywordsTextBox).hide();
			$j(searchBox.MinBedDropDown).show();
			$j(searchBox.MaxBedDropDown).show();
			$j(searchBox.RegionDropDown).hide();
			$j('#searchPropertyID').show();
			$j('#searchPropertyName').hide();
			$j(searchBox.MinBedDropDown).hide();
			$j(searchBox.MaxBedDropDown).hide();
			
		
			
			
			$j(searchBox.CurrencyDropDown).after(searchBox.CountryDropDown);
			$j(searchBox.MinPriceDropDown).after(searchBox.AutoCompleteTextBox);
			$j(searchBox.MaxPriceDropDown).after($j('#searchPropertyID'));
			
			$j('#searchForm').show();
			
			Utils.DropDownSelect(searchBox.CurrencyDropDown,'USD');
			$j(searchBox.CurrencyDropDown).click();
			
			searchBox.SelectedCurrencyCode = $j("option:selected",searchBox.CurrencyDropDown).val();
			//alert(searchBox.SelectedCurrencyCode);
			searchBox.UpdateSubmitButton();
			if(searchBox.SelectedCurrencyCode=='GBP'||searchBox.SelectedCurrencyCode=='EUR'||searchBox.SelectedCurrencyCode=='USD'){
				//alert(searchBox.SelectedCurrencyCode);
				searchBox.ExchangeRate = Utils.getCurrencyRateByCurrency(searchBox.SelectedCurrencyCode);
				searchBox.CurrencyCode = searchBox.SelectedCurrencyCode;
			}else{
				searchBox.ExchangeRate = parseInt(Utils.getCurrencyRate($j("option:selected",searchBox.CountryDropDown).text()));
				//alert(this.ExchangeRate);
				searchBox.CurrencyCode = $j("option:selected",searchBox.CurrencyDropDown).val();
			}
			
			if(searchBox.ExchangeRate==0){ExchangeRate=1;}
			searchBox.FillMinPriceDropDown();
			if($j(searchBox.MinPriceDropDown).is(":disabled")){searchBox.MinPriceDropDown.disabled=false;}
			searchBox.MaxPriceDropDown.disabled=true;
			searchBox.SelectedMixPrice = 0;
			searchBox.SelectedMaxPrice = 0;
			
			if($j(searchBox.MinBedDropDown).is(":disabled")){searchBox.MinBedDropDown.disabled=false;}
			searchBox.FillMinBedsDropDown();	
			
			
			/* change controls background color to white */
			$j('.DatoGenerico input.LargeJ').css("background-image","none");
			$j('.DatoGenerico input.LargeJ').css("background-color","white");
			
			//-- country searcn box fix end --//
			//showVideo();
			 $j(".translateable").editable("/savetranslation.asp?language=" + language_code, {
                 submit:"<img src='http://services.themovechannel.com/images/confirm.gif'>",
                 cancel:"<img src='http://services.themovechannel.com/images/deny.gif'>",
                 width:"200px",
                 style:"width:240px; z-index:2;position:absolute;background:#dddddd;padding:5px;",
                 onblur:"ignore",
				 charset: 'application/x-www-form-urlencoded;charset=windows-1252'
                 });
		});
