title: While using the YouTube api, the loadvideo function wont work unless I alert the video id first
body: <pre><code>function playPlaylist(trackstemp) {
      trackstemp = trackstemp.split(' ');
      for (i=0; i &lt; trackstemp.length; i++){
          tracks[i] = trackstemp[i];
      }
      numoftracks = tracks.length - 1;
      currenttrack = 0;
      loadNewVideo(tracks[currenttrack])
  }
  
  function loadNewVideo(id) {
  ytplayerid.loadVideoById(id, 0);
  }
  </code></pre>
  
  <p>I have a prev() and next() function that work just fine by calling loadNewVideo(tracks[currenttrack]), but the initial video only works if I alert(id) within the loadNewVideo() function.</p>
  
  <p>Any clue to why this is happening?</p>