// JavaScript Document
$(document).ready(function(){
    
    //Minimize Refine Box
	$(".refine-container-toggle").css({ "cursor":"pointer" }); // Give the h3 in Content Box Header a different cursor
	$(".refine-container-open").css({ "cursor":"pointer" }); // Give the h3 in Content Box Header a different cursor
	
	$(".refine-container-toggle").click( 
		function () {
		  
		  $("#refine-container-content").slideToggle("normal");
		  //$(this).parent().last().slideToggle("fast"); // Toggle the Content Box
		}
	);

	$(".refine-container-open").click( 
		function () {
		  
		  $("#refine-container-content").slideDown("normal");
		  //$(this).parent().last().slideToggle("fast"); // Toggle the Content Box
		}
	);

});
  

function dynamic_Select(dataSource, id, selected, destination_id)
{
$.ajax({
type: "GET",
url: dataSource,
data: "id=" + id + "&selected=" + selected,
dataType: "text/html",
success: function(html){ $(destination_id).html(html); }
}); }



function selectDevelopmentAny(){
  document.getElementById('development_id').value='%';
}
function selectLocationAny(){
  document.getElementById('location_id').value='%';
}

jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

function hideDevelopmentSelect(){
 	$('#development_select').slideToggle();
}

function hideBedroomSelect(){
 	$('#bedroom_select').slideToggle();
}

function showSizeSelect(){
 	$('#size_select').slideToggle();
}

