title: jQuery UI 1.10: dialog and zIndex option
body: <p>I have to make an dialog to apear when an image onclick. The problem is that I have some realy big z-index there (500 for example) and the ui dialog is on the back of that elements. </p>
  
  <p>Here is the page, you need to log in, user: "raducup" and pass:"1". Another problem is that when I click close ont the dialog, the object desapears.</p>
  
  <p>This is the function I call when a image is click:</p>
  
  <pre><code>function openItem(obiect){
      $( obiect ).css('zIndex',9999);
      $( obiect ).dialog({
          dialogClass: "no-close",
          modal: true,
          draggable: true,
          overlay: "background-color: red; opacity: 0.5",
          buttons: [
              {
                  text: "OK",
                  click: function() {
                      $( this ).dialog( "close" );
                  }
              }
          ]
      });
      reparaZindex();
  }
  </code></pre>