Easy jQuery / Javascript / Youtube Frames API Issue
<p>Site here:</p>

<p><a href="http://goo.gl/5o8RE" rel="nofollow">http://goo.gl/5o8RE</a></p>

<p>-> Look at the source code there.</p>

<p>-> Click the rotating cycle thumbnails with the video "play" button on it, you will notice the video starts playing. </p>

<p>What I am trying to do is the following:</p>

<p>-> Use Youtube's API to STOP the video for playing after someone clicks on the link "Click Here After the video is Finished".</p>

<p>The problem is that the sound continues with that video on some browsers AFTER you click the blue link. It should be silenced.</p>

<p>On Mac Firefox, the sound stops, but I need it to stop on IE 7, IE 6, Safari, Chrome, etc. and it does not.</p>

<p>So I have found this:</p>

<p><a href="http://stackoverflow.com/questions/8948403/youtube-api-target-multiple-existing-iframes">YouTube API Target (multiple) existing iframe(s)</a></p>

<p>I have tried to implement it in the code, but I cannot do it.</p>

<p>You'll see I have this function:</p>

<pre><code>jQuery( function($) {
    $('#video-1 a').click( function(e){
      e.preventDefault;
      $('#video').hide();
      $('#video-1').hide();
      $('#slideshow').show();
      return false;
    });
</code></pre>

<p>What also should be in there essentially is player.stopVideo(); so that the youtube player STOPS before the slideshow resumes.</p>

<p>Also, I understand I may need to use <a href="https://github.com/douglascrockford/JSON-js" rel="nofollow">https://github.com/douglascrockford/JSON-js</a> so that it works on IE 6 and IE 7 as mentioned here:</p>

<p><a href="http://stackoverflow.com/questions/5297200/youtube-iframe-api-example-error-json-is-undefined">Youtube iFrame Api Example - Error : &quot;JSON is undefined&quot;?</a></p>

<p>and here:</p>

<p><a href="http://stackoverflow.com/questions/1787020/json-object-in-ie6-how">JSON object in IE6 - How?</a></p>

<p>Just trying to figure out the right order for the code! Any help at all on how to put this together would be greatly appreciated.</p>

<p>Thanks!</p>
