title: Display set of products in a popup
body: <p>I would like to know how to display a set of products in a popup window activated by a link on the product page.</p>
  
  <p>Basically, I already know how to display the products in a block &amp; how to put the link, however I don't know how to position the block in a popup.</p>
  
  <p>Any help would be appreciated!</p>
  
  <p>So far I have followed this guide:
  <a href="http://magerts.com/attractive-pop-up-window-in-magento-using-window-js/" rel="nofollow">http://magerts.com/attractive-pop-up-window-in-magento-using-window-js/</a></p>
  
  <p>On my website I have created a custom block called "Blank" which is displayed on certain products only say pizzas. The custom block contains a link named "Sauces" which refers to another custom block called "Sauces" which displays a list of the sauces.</p>
  
  <p>The "Blank" static refers to blank.phtml which contains:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function showForm(id){
  win = new Window({ title: "Sauces", zIndex:3000, destroyOnClose: true, recenterAuto:false, resizable: false, width:450, height:473, minimizable: false, maximizable: false, draggable: false});
  win.setContent(id, false, false);
  win.showCenter();
  }
  &lt;/script&gt;
  &lt;a onclick="return showForm('sauce')" href="#"&gt;Pick a sauce&lt;/a&gt;
  &lt;div id="sause"&gt;
  &lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('sauces')-&gt;toHtml()?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This script makes the popup window open with the list of sauces. However, before clicking on its link the list of sauces is being displayed on the page. It disappears only when I click on the link.</p>
  
  <p>Any ideas?</p>