// Depricated :: forgot password dialog now in login modal window.
$(document).ready(function() {
  var change_buttons_on_submit = function() {};
  //$("#forgot_password_button").click(function() {
  $(".forgot").click(function() {
    $("#forgot_password_dialog").load( $(this).attr('rel'), 
      function() { // load remote content from its 'rel' attribute into hidden div
          $(this)
            .dialog('destroy')
            .dialog({ // and recreate it with following options
                          title: "Forgot Your Password?",
                          modal: true,
                          height: 500,  
                          width: 700,
                          bgiframe: true,
                          buttons: {
                              'Close': function() {
                                  $(this).dialog('close'); }
                          },
                          close: function() {  },
                          open: function() { $(this).hijack(change_buttons_on_submit)} /// This is where hijack() magic happens.
                  });
      });
  });
});
