text: $(function() {
      $("#accordion").accordion();
      $("#buttons > button").button();
      $("#datepicker").datepicker();
      $("#from").datepicker({
          defaultDate: "+1w",
          changeMonth: true,
          numberOfMonths: 3,
          onClose: function(selectedDate) {
              $("#to").datepicker("option", "minDate", selectedDate);
          }
      });
      $("#to").datepicker({
          defaultDate: "+1w",
          changeMonth: true,
          numberOfMonths: 3,
          onClose: function(selectedDate) {
              $("#from").datepicker("option", "maxDate", selectedDate);
          }
      });
      $("#dialog").dialog({
          autoOpen: false,
          show: {
              effect: "blind",
              duration: 1000
          },
          hide: {
              effect: "explode",
              duration: 1000
          }
      });
      $("#opener").click(function() {
          $("#dialog").dialog("open");
      });
  });
  