// Update a particular HTML element with a new value
      			function updateHTML(elmId, value) {
        			document.getElementById(elmId).innerHTML = value;
      			}
      
      			/*function updateTwitter(timestring){
      				document.getElementById("twitterbutton").data-text = "Hör schon seit " + timestring + " die Cantina Band. http://cantina-band.com #cantinaband #ichhöregerade";
      			}*/
      			// This function is called when an error is thrown by the player
      			function onPlayerError(errorCode) {
        			alert("An error occured of type:" + errorCode);
     	 		}
      
      			// This function is called when the player changes state
      			function onPlayerStateChange(newState) {
        			//updateHTML("playerState", newState);
        			if(newState == 0){
        				if(pcounter == 1){
        					ltime = ltime + ytplayer.getDuration();
        				}else{
        					ltime = (ltime-7) + ytplayer.getDuration();
        				}
        				ytplayer.seekTo(7,true);
        				playVideo();
        				pcounter++;
        			}
      			}
      
      			// Display information about the current state of the player
      			function updatePlayerInfo() {
      				if(ytplayer && ytplayer.getDuration) {
      					if(pcounter == 1){
      						updateHTML("videoCurrentTime", formatTime((ltime+ytplayer.getCurrentTime())));
      					}else{
      						updateHTML("videoCurrentTime", formatTime(((ltime-7)+ytplayer.getCurrentTime())));
      					}
      					//updateTwitter(formatTime((ltime+ytplayer.getCurrentTime())));
      				}
     	 		}
     	 		
     	 		function formatTime(seconds){
     	 			var h = new Number(0);
     	 			var m = new Number(0);
     	 			var s = new Number(seconds);
     	 			var rstring = new String();
     	 			if(seconds > 3600){
     	 				h = Math.floor(seconds/3600);
     	 				m = Math.floor((seconds - h*3600)/60);
     	 				s = Math.floor(seconds - m*60 - h*3600);
     	 				rstring = h.toString() + " Stunde(n), " + m.toString() + " Minute(n) und " + s.toString() + " Sekunden";
     	 			}else{
     	 				if(seconds > 60){
     	 					m = Math.floor(seconds/60);
     	 					s = Math.floor(seconds - m*60);
     	 					rstring = m.toString() + " Minute(n) und " + s.toString() + " Sekunden";
     	 				}else{
     	 					rstring = Math.floor(s).toString() + " Sekunden";
     	 				}
     	 			}
     	 			return rstring;
     	 		}
      
      			function playVideo() {
        			if (ytplayer) {
          				ytplayer.playVideo();
        			}
      			}
      
      			function pauseVideo() {
        			if (ytplayer) {
          				ytplayer.pauseVideo();
        			}
      			}
      
      			// This function is automatically called by the player once it loads
      			function onYouTubePlayerReady(playerId) {
        			ytplayer = document.getElementById("ytPlayer");
        			ltime = new Number(0.0);
        			pcounter = new Number(1);
        			if (ytplayer){
        				setInterval(updatePlayerInfo, 250);
        				updatePlayerInfo();
        				ytplayer.addEventListener("onStateChange", "onPlayerStateChange");
        				ytplayer.addEventListener("onError", "onPlayerError");
        				//Load an initial video into the player
        				ytplayer.loadVideoById("zTjfrUxbUfs");
        				playVideo();
        			}
      			}
      
      			// The "main method" of this sample. Called when someone clicks "Run".
      			function loadPlayer() {
        			// 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/apiplayer?" +
                           "version=3&enablejsapi=1&playerapiid=player1&autoplay=1&loop=1", 
                           "videoDiv", "640", "480", "9", null, null, params, atts);
        			onYouTubePlayerReady("player1");
      			}
      			function _run() {
        			loadPlayer();
      			}
      			google.setOnLoadCallback(_run);
