title: colorbox - close parent iframe and open new iframe lightbox
body: <p>Im using jquery and colorbox lightbox plugin to open iframes in a ligthbox.</p>
  
  <p>The problem is:</p>
  
  <ol>
  <li>I click on button it opens my main iframe lightbox</li>
  <li>inside the main iframe lightbox - there is button with class .flash_shareable</li>
  <li>When you click, it should close the parent (i.e. main iframe) and then open a new iframe that it is linking to</li>
  </ol>
  
  <p>It is closing the parent iframe, but its not opening the new iframe.</p>
  
  <p>my code:</p>
  
  <pre><code>$(document).ready(function(){
          var y = $(document.body).height();
          var x = $(document).width();
          parent.$.colorbox.resize({innerWidth:x, innerHeight:y});
  
          $('.iframe').colorbox({iframe:true}); //ligthbox
  
          $(".flash_shareable").click(function() {
          parent.$.colorbox.close();
          $.colorbox({href:"faq.html", iframe:true, width:800 + "px", height:600 + "px", open:true});
      })
  });
  </code></pre>
  
  <p><strong>HTML of iframe</strong>, from which im trying to open another ligthbox:</p>
  
  <pre><code>&lt;button class="flash_shareable" type="button"&gt;open flash&lt;/button&gt;
  </code></pre>