Pull out the first script tag and place it in the page header. Then wrap the remaining code in your p3sdk-container as shown below. Be sure to assign the OO.Player.create call to a window variable that is identical to the id of the p3sdk div and your player_id, and replace the “ooyalaplayer” argument with that same id (shown in pink).
<div class="p3sdk-container p3sdk-debug" player_id="ooyala-player-6" player_type="ooyala" >
<div id='ooyala-player-6' style='width:480px;height:360px;'></div>
window["ooyala-player-6"] = OO.Player.create(
*The Plugin SDK is sometimes referred to as "P3SDK"