     $(document).ready(function(){
	 $('.content').load('serien');
        $('#menu a').click(function() {
		 				$(".content").hide("fast");
						 var content_show = $(this).attr("title");
							$.ajax({
							url: content_show,
							success: function(html){ //so, if data is retrieved, store it in html
							$(".content").show("slow"); //animation
							$(".content").html(html);
							Shadowbox.init({ skipSetup: true }); Shadowbox.setup();
					 }
				 });
         });
	 });
	 $('a.media').media();
	 
	 
var Stil = "de";

// Style Switcher

function switchStyle(s) {
  if (!document.getElementsByTagName) return;
  var el = document.getElementsByTagName("link");
  for (var i = 0; i < el.length; i++ ) {
    if (el[i].getAttribute("rel").indexOf("style") != -1 && el[i].getAttribute("title")) {
      el[i].disabled = true;
      if (el[i].getAttribute("title") == s) el[i].disabled = false;
    }
  }
}

function loadStyle() {
  var c = getStyleCookie();
  if (c && c != Stil) {
    switchStyle(c);
    Stil = c;
  }
}

function setStyle(s) {
  if (s != Stil) {
    switchStyle(s);
    Stil = s;
  }
}

window.onload = loadStyle;

