Dialog only opens once
<p>How do I set the 'autoOpen' and 'open' for this Dialog. Please help!</p>

<pre><code>&lt;body&gt;
&lt;img class="image" src="css/images/0101-s.png"&gt;
&lt;img src="css/images/0101.png" style="display: none;"class="dialog"&gt;

&lt;img class="image" src="css/images/0102-s.png"&gt;
&lt;img src="css/images/0102.png" style="display: none;"class="dialog"&gt;

&lt;script&gt;
$('.image').click  (function(){
        $(this).next('.dialog').dialog({ show: 'slide', minWidth: 400 });
    });
&lt;/script&gt;
</code></pre>
