function presentSearchHideMaxPriceDiv(){

	if(presentSearchHideMaxPriceDiv.view){
		// hide it
		presentSearchHideMaxPrice()
		presentSearchHideMaxPriceDiv.view=false;
	}else{
		// view it
		presentSearchShowMaxPrice();
		presentSearchHideMaxPriceDiv.view=true;
	}
}
presentSearchHideMaxPriceDiv.view=false;

function presentSearchCheckSelectedAmazonCategory(enableText, disabledText){
	if((JQ(".presentSearchSelectBoxAmazonCategory").val() != 'Blended') && (JQ(".presentSearchSelectBoxAmazonCategory").val() != 'Watches')){
		// it is not one of these who doesn't support max price so enable checkbox and set original text
		JQ('.presentSearchMaxPriceCheckBox').attr("disabled", "");
		JQ('.presentSearchMaxPriceCheckBoxText').text(enableText);
		if(presentSearchCheckSelectedAmazonCategory.toggledMaxPriceDiv){
			presentSearchShowMaxPrice();
			presentSearchCheckSelectedAmazonCategory.toggledMaxPriceDiv = false;
		}

	}else{
		// Selected item is one who doesn't support max price so disable checkbox and change text
		JQ('.presentSearchMaxPriceCheckBox').attr("disabled", "true");
		JQ('.presentSearchMaxPriceCheckBoxText').text(disabledText);
		if(presentSearchHideMaxPriceDiv.view){
			presentSearchCheckSelectedAmazonCategory.toggledMaxPriceDiv = true;
			presentSearchHideMaxPrice();
		}
	}
}
presentSearchCheckSelectedAmazonCategory.toggledMaxPriceDiv = false;

function presentSearchHideMaxPrice(){
	JQ("#presentSearchMaxPriceDiv").fadeOut("slow");
//	JQ("#presentSearchFormInput").animate({height: '65px'}, "slow");
}

function presentSearchShowMaxPrice(){
	JQ("#presentSearchMaxPriceDiv").fadeIn("slow");
//	JQ("#presentSearchFormInput").animate({height: '95px'}, "slow");
}
