title: On PageLoad show Magento Static block in ajax
body: <p>I am running on Magento 1.7 and its a fresh copy.</p>
  
  <p>What I want to achieve: 
  On pageload of the website, display the newsletter template block</p>
  
  <p><code>{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}</code></p>
  
  <p>as a pop-up window in Magento once, where the cookies will expire after a given period of time eg: 1 week.</p>
  
  <p>The answers on web are either not specific, or not detailed enough as my knowledge is not broad on scripts. </p>
  
  <p>What I tried so far:</p>
  
  <h3>attempt to add a lightbox:</h3>
  
  <p>1) Add Lightbox CSS  &amp; JS</p>
  
  <pre><code>    &lt;script type="text/javascript" src="&lt;?php echo $this-&gt;getJsUrl('lightbox/lightbox.js'); ?&gt;"&gt;&lt;/script&gt;
  
  &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo $this-&gt;getJsUrl('lightbox/lightbox.css'); ?&gt;" media="screen"/&gt;
  </code></pre>
  
  <p>2) In view.phtml I added a link</p>
  
  <pre><code>&lt;a href="&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('measurement')-&gt;toHtml() ?&gt;" rel="lightbox"&gt;Size chart&lt;/a&gt;
  </code></pre>
  
  <p>The lightbox is working but the static block is not called... still figuring out how to call a static box.. </p>