title: pushing the button of cancel the value must return the initial value but it dosn't work
body: <pre><code>$('#mdialog').dialog({
      autoOpen: false,
      width: 320,
      buttons: {
          Apply: function() {
              &lt;!--alert($('#slider').slider('option', 'value'));--&gt;
              try{
                  SendCommandToAO($('#slider').slider('option', 'value'), 'AO=a1c1p1', 0, 65535, 0, 65535, -1);
              } catch(e) {
                  //Fool
              }
              //$(this).dialog("close"); 
          }, 
          Cancel: function() { 
              $(this).dialog("close"); 
          } 
      }
  });
  </code></pre>