//var videoID = "$tube_id"; function _run(options) { var showRelated; if ( options.related == true ) { showRelated = '&rel=0'; } var width = 480; var height = 295; if ( options.width ) { width = options.width; height = width / 1.62711; } // Lets Flash from another domain call JavaScript var params = { allowScriptAccess: "always" }; // The element id of the Flash embed var atts = { id: "ytPlayer" }; // All of the magic handled by SWFObject (http://code.google.com/p/swfobject/) swfobject.embedSWF("http://www.youtube.com/v/" + videoID + "&enablejsapi=1&playerapiid=ytplayer" + showRelated, "ytapiplayer", width, height, "8", null, null, params, atts); } //Callback-Funktionen function onYouTubePlayerReady(playerId) { //ytplayer = document.getElementById("ytplayer"); //ytplayer.addEventListener("onStateChange", "onytplayerStateChange"); } //Normale Funktionen function play() { if (ytapiplayer) { ytapiplayer.playVideo(); } } function LoadVideoBar(query) { var videoBar; var options = { largeResultSet : !true, vertical : true, autoExecuteList : { cycleTime : GSvideoBar.CYCLE_TIME_MEDIUM, cycleMode : GSvideoBar.CYCLE_MODE_LINEAR, executeList : query } } videoBar = new GSvideoBar(document.getElementById("videoBar-bar"), GSvideoBar.PLAYER_ROOT_FLOATING, options); }