title: open link out of iframe
body: <p>I'll try and keep this short. I have a page with various section. One section has an iframe with a google map in it. On the infowindows i have a link which when clicked i would like it to open in a fancybox over the page(not in the iframe...i can do that). For example if i had a link saying "google", id like it to open <a href="http://www.google.co.uk/" rel="nofollow">http://www.google.co.uk/</a> over the whole page in a fancybox.</p>
  
  <p>I have 2 different pages and 2 javascripts, 1 for the map(iframe) and another for the main page. The function is in the main page script.</p>
  
  <p>Where i think im going wrong is a) the right call to open the page b) attaching a class to the javascript i.e class="fancybox".</p>
  
  <p>My map info window has this link in it(map.js):</p>
  
  <pre><code>&lt;a href="javascript:parent.openSomething();"&gt;some content&lt;/a&gt;
  </code></pre>
  
  <p>In my main.js:</p>
  
  <pre><code>function openSomething() {
  
  //this is where i think im going wrong
  //ive tried window. and top. etc
  
  var url = "http://www.google.co.uk/";
  
  document.location.href = url
  
  };
  </code></pre>
  
  <p>My call to the fancy box is in the main page.</p>
  
  <p>Any help would be much appreciated.</p>