// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
jQuery.ajaxSetup({
    'beforeSend': function(xhr) {
        xhr.setRequestHeader("Accept", "text/javascript")
    }
})

$(document).ready(function() {

   // $("input#save-search").change(function () {
   // 	
   //     if ($(this).attr("checked")) {
   //         // do the stuff that you would do when 'checked'
   // 		 $('div#save-search-form').slideDown('slow', function() {
   // 		    // Animation complete.
   // 		  });
   //         return;
   //     }
   //     
   // 	// Here do the stuff you want to do when 'unchecked'
   // 	$('div#save-search-form').slideUp('slow', function() {
   // 	    // Animation complete.
   // 	});
   // });

	// Reset form defaults based on pt onload
	// StickyForm gets in the way of this solution to Rental search default price
	// var selected_pt = $('select#pt>option:selected').val()
	// reset_form_defaults(selected_pt);

});
