Youtube player will not play in FF 7.0
<p>I am running into a problem on FF 7.0 when using the following code for a youtube video.  </p>

<p>Whenever the play button is pushed on the youtube video, js code will change the height, width, and animate the div's height around the video.  That part of the code works fine except the youtube video never actually starts playing.  It forces the user to push play about 5 times before it will ever start.  </p>

<p>Can someone take a peak at the code below and see if something jumps out as wrong?</p>

<pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"&gt;&lt;/script&gt;    
  &lt;div id="ytapiplayer"&gt;
    You need Flash player 8+ and JavaScript enabled to view this video.
  &lt;/div&gt;

  &lt;script type="text/javascript"&gt;

    var params = { allowScriptAccess: "always" };
    var atts = { id: "myytplayer" };
    swfobject.embedSWF("http://www.youtube.com/e/uHKbFzluF5w?enablejsapi=1&amp;playerapiid=ytplayer?version=3&amp;autohide=1&amp;showinfo=0&amp;modestbranding=1&amp;iv_load_policy=3&amp;controls=1&amp;border=0",
                       "ytapiplayer", "150", "84", "8", null, null, params, atts);

  &lt;/script&gt;

&lt;script&gt;
function onYouTubePlayerReady(playerId) {
  ytplayer = document.getElementById("myytplayer");
  ytplayer.addEventListener("onStateChange", "onytplayerStateChange");
};
function onytplayerStateChange(newState) {
 if(newState == 1){
  $("#rentals-video-section").animate({
    height: "216px"
  }, 500 );
   $('#myytplayer').attr('width', '301px');
   $('#myytplayer').attr('height', '194px');
   $('#rentals-video-section-left').hide();
   $('#rentals-video-close-btn a').show();
};
};
$('#rentals-video-close-btn').click (function() {
$("#rentals-video-section").animate({
    height: "100px"
  }, 500 );
   $('#myytplayer').attr('width', '150px');
   $('#myytplayer').attr('height', '84px');
   $('#rentals-video-section-left').show();
   $('#rentals-video-close-btn a').hide();
});

function pause() {
  if (ytplayer) {
    ytplayer.pauseVideo();
  }
};
&lt;/script&gt;
</code></pre>
