$(document).ready(function(){screen.width>480&&$.getScript("/js/carousel.js",function(){$.get("/slides/slides.php",function(a){$(".slides").append(a).wrapInner('<div class="slidewrap"><div class="slider"></div></div>').find(".slidewrap").carousel({slide:".slide",slideHed:"figcaption",speed:250})})});var g=new L.TileLayer("http://{s}.tile.cloudmade.com/aec7cb5f0a5a4e778deb5fedeb56a805/997/256/{z}/{x}/{y}.png",{maxZoom:18,attribution:"CloudMade",scrollWheelZoom:false}),h=new L.Map("map");h.setView(new L.LatLng(47.99682509433302,
16.24950885772705),13).addLayer(g);g=new L.LatLng(47.99682509433302,16.24950885772705);g=new L.Marker(g);h.scrollWheelZoom.disable();h.dragging.disable();h.addLayer(g);$(".module-intro").delegate("a","click",function(a){a.preventDefault();var a=$(this).text().toLowerCase().replace("-",""),e=$(this).attr("href");$(".modules").load(e+" #"+a)});Hyphenator.run();(function(){window.adjustViewport=function(a,e){for(var f=$("meta[name=viewport]"),b=f.attr("content").split(/\s,\s?/),d=[],c=b.length,i=false;c--;)b[c]=
b[c].split(/\s?=\s?/),b[c][0]==a?(e!==false&&(b[c][1]=e,d.push(b[c].join("="))),i=true):d.push(b[c].join("="));i||d.push(a+"="+e);d=d.join(",");f.attr("content",d)}})(window);(function(a){var e=$(a);$(document);var f=$(".module-intro nav > *"),a=f.find("a"),b,d;showing="old";trigger=630;timer=null;if(f.length&&a.length){b=$("<select></select>");d=$("<option>-- Modulauswahl --</option>").appendTo(b);$("<optgroup></optgroup>");a.each(function(){var a=$(this);d.clone().attr("value",a.attr("href")).text(a.text()).appendTo(b)});
b=b.wrap('<div id="mobile-nav"/>').parent().delegate("select","change",function(){var a=$(this);a.val().indexOf("#")!=-1?scrollToArticle(a.val().replace(/(#)\/(.*)/,"$1$2")):window.location=a.val()});var c=function(){var a=e.width();showing=="old"&&a<=trigger?(f.replaceWith(b),showing="new",adjustViewport("user-scalable","no")):showing=="new"&&a>trigger&&(b.replaceWith(f),showing="old",adjustViewport("user-scalable",false))};c();e.resize(function(){timer&&clearTimeout(timer);timer=setTimeout(c,50)})}})(window)});
