  $(document).ready(function(){
 /*   $(".programm .description").hide();
    $(".programm .withdesc h3").contents().wrap("<a href='#'></a>");
    
    $(".programm .withdesc h3 a").click(function(event){
      desc = $(this).parents("td").find(".description");
	  desc.slideToggle();
	  desc.attr("tabindex","-1");
	  desc.focus();
      return false;
    });*/

	
	// FOR Automatic “Awesompersands”
	// SOURCE: http://patrickhaney.com/thinktank/2008/08/19/automatic-awesompersands
	
	$("p:contains('&'), h1:contains('&'), h2:contains('&')", document.body)
        .contents()
        .each(
            function() {
                if( this.nodeType == 3 ) {
                    $(this)
                        .replaceWith( this
                            .nodeValue
                            .replace( /&/g, "<span class='amp'>&</span>" )
                        );
                }
            }
        );
  
		$("p:contains(' - ')", document.body)
	        .contents()
	        .each(
	            function() {
	                if( this.nodeType == 3 ) {
	                    $(this)
	                        .replaceWith( this
	                            .nodeValue
	                            .replace( / - /g, " – " )
	                        );
	                }
	            }
	        );

  });



// When the page is ready...
$(document).ready(
   function()
   {

	   	// Easy Pullquotes by Mike Jolley
                // Go through each span element with a classname of "pullquote"
		$('span.pullquote').each(function() {
                        // Get the text of the span
			text = $(this).text();
                        // Get rid of unwanted charactors
			text=text.replace( /\((.*)\)/gi, " " );
                        // Check if this is to be a right or left pull quote and output it
				$(this).parent().before('<blockquote class="' + $(this).attr('class') + '"><p><span>'+ text.substr(0, 1).toUpperCase() + text.substr(1) +'</span></p></blockquote>');
		});
                // End pull quote code
   }
);
	
/*
pullquote function by Roger Johansson, http://www.456bereastreet.com/
*//*
var pullquote = {
	init : function() {
	// Check that the browser supports the methods used
		if (!document.getElementById || !document.createElement || !document.appendChild) return false;
		var oElement, oPullquote, oPullquoteP, oQuoteContent, i, j;
	// Find all span elements with a class name of pullquote
		var arrElements = document.getElementsByTagName('span');
		var oRegExp = new RegExp("(^|\\s)pullquote(\\s|$)");
		for (i=0; i<arrElements.length; i++) {
	// Save the current element
			oElement = arrElements[i];
			if (oRegExp.test(oElement.className)) {
	// Create the blockquote and p elements
				oPullquote = document.createElement('blockquote');
				oPullquote.className = oElement.className;
				oPullquoteP = document.createElement('p');
	// Insert the pullquote text
				for(j=0;j<=oElement.childNodes.length;j++) {
					oPullquoteP.appendChild(oElement.childNodes[j].cloneNode(true));
				}
				oPullquote.appendChild(oPullquoteP);
	// Insert the blockquote element before the span elements parent element
				oElement.parentNode.parentNode.insertBefore(oPullquote,oElement.parentNode);
			}
		}
	}
};
// addEvent function from http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html
function addEvent(obj, type, fn) {
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); };
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
}
addEvent(window, 'load', pullquote.init);*/

YAHOO.mediaplayer.DisplayStrings = 
	{
	    ui:
	    {
			PLAYLIST_TAB: "Alle Stücke",
	        PLAYLIST_LOADING: "Lade Abspielliste…",
			BUFFERING: "Laden…",
			HDR_MAIN: "Yahoo! Medien-Player",			// H2 tag for Player
			HDR_CONTROLS: "Abspiel-Kontrollinstrumente",			// H3 tag for playback controls
			HDR_PLAYLIST: "Abspielliste des Medien-Players"		// H3 tag for playlist tray
	    },
	    tooltips:
	    {
			PREVIOUS: "Vorheriges Stück (Shift+Pfeil nach links)",
			PLAY: "Abspielen (Shift+Leertaste)",
			PAUSE: "Pause (Shift+Leertaste)",
			NEXT: "Nächstes Stück (Shift+Pfeil nach rechts)",
			VOLUME: "Lautstärke %1% (Shift+Pfeil nach oben/unten)",
			NOWPLAYING_TRACK: "%1",
			NOWPLAYING_ARTIST: "%1",
			NOWPLAYING_ALBUM: "%1",
			BUY: "Dieses Lied kaufen",
			OPENPLAYLIST: "Abspielliste öffnen (Ctrl+Shift+P)",
			CLOSEPLAYLIST: "Abspielliste schließen (Ctrl+Shift+P)",
			MINIMIZE: "Medien-Player minimieren",
			MAXIMIZE: "Medien-Player maximieren",
			CLOSE: "Medien-Player schließen",
			FINDONPAGE: "Stücke auf der Seite finden"
			/*,
			INPAGEPLAY: "Play track in the Yahoo! Media Player",
			INPAGEPAUSE: "Pause track in the Yahoo! Media Player"
			*/
	    },
	    errors:
	    {
	        "1": "Entschuldigen Sie, wir konnten das von Ihnen angeforderte Stück nicht finden.",
	        "2": "Wir können im Moment keine Medien auf dieser Seite abspielen. Bitte laden Sie die Seite neu und versuchen Sie es noch einmal.",
	        "3": "Es tut uns Leid, es gab einen Fehler beim Abspielen.",
	        "4": "Es tut uns Leid, wir konnten die Abspielliste nicht abrufen.",
	        "5": "Es tut uns Leid, wir konnten keine Medien finden, die wir abspielen können.",
	        "6": "Es tut uns Leid, es gab einen Fehler beim Herunterladen der Datei, Versuchen Sie es später noch einmal.",
	        "7": "Es tut uns Leid, es gab einen Fehler beim Versuch uns mit dem Server zu verbinden. Versuchen Sie es später noch einmal.",
	        "8": "DRM-Fehler Platzhalter",
	        "9": "Diese Datei benötigt das Windows Media Player Plugin für Firefox. <a target='_top' href='http://port25.technet.com/pages/windows-media-player-firefox-plugin-download.aspx'>Beachten Sie die Anleitung zur Installation des Plugins.</a>",
	        "10": "Metadaten der Rhapsodie nicht verfügbar. %1",
	        "11": "Es tut uns Leid, es gab eine Zeitüberschreitung beim Abspielen.",
	        "12": "Es tut uns Leid, das Stück konnte nicht erkannt werden. %1",
	        "13": "Es tut uns Leid, die Kombination aus Benutzername und Passwort für diesen Service ist nicht korrekt.",
	        "14": "Es tut uns Leid, das Abspiel-System ist nicht vorbereitet, bitte versuchen Sie es später noch einmal.",
	        "15": "Es tut uns Leid, das User-Token ist ungültig, bitte melden Sie sich noch einmal an.",
	        "16": "Zugriff verboten.",
	        "17": "Es tut uns Leid, die Anfrage an den Server war ungültig.",	
	        "18": "Es tut uns Leid, eine Benutzer-Eigenschaft wird verlangt, die nicht vorhanden ist.",
	        "19": "Es tut uns Leid, Benutzer können nur von einem Ort aus eingeloggt sein und unseren Service nutzen.",	
	        "20": "Es tut uns Leid, dieser Service ist nur in den USA verfügbar.",
	        "21": "Es tut uns Leid, dieses Stück hat keine Streaming-Rechte."
	    }
	};