"); $("#slideshow").append("
"); $("#slideshow").append("
"); $("#slideshow").append("
"); $("#slideshow").append("
"); $('.slide').hide(); playSlide(); } function playVideo(vidId){ $( "#playerwrap" ).css("display", "block"); $( "#player" ).position({ my: "bottom", at: "center", of: "#playerwrap" }); player.loadVideoById(vidId); } // 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script'); tag.src = "http://www.youtube.com/player_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // 3. This function creates an