(function(n){n.googlemap={}})(window.bluc=window.bluc||{},jQuery),function(n,t){function f(){r||yepnope({load:{mapsApi:"http://maps.google.com/maps/api/js?sensor=false&callback=bluc.googlemap.MapsApiLoaded"}})}function o(){t("body").delegate(".googleMap","mouseover",function(){r||f()})}function e(){var i,n;r=!0;for(i in u)u.hasOwnProperty(i)&&(n=u[i],t("#googleMap_"+i).gMap({address:n.address,zoom:n.zoom,markers:[{address:n.address}]}))}var u=[],r=!1;t(document).ready(function(){o()}),n.MapsApiLoaded=function(){r||yepnope({load:{gmap:"/scripts/lib/gmap/jquery.gmap.js"},complete:function(){e()}})},n.RegisterMap=function(n){u[n.id]=n},n.LoadMaps=function(){f()}}(window.bluc.googlemap=window.bluc.googlemap||{},jQuery),function(n){n.fancybox={}}(window.bluc=window.bluc||{},jQuery),function(n,t){function u(){yepnope({load:["/scripts/lib/fancybox/jquery.fancybox.js","/scripts/lib/fancybox/jquery.fancybox.css"],complete:r})}function r(){t("a:has(.thumbnail)").fancybox({padding:0,aspectRatio:!0,closeClick:!0,openEffect:"elastic",openSpeed:200,closeEffect:"elastic",closeSpeed:100,helpers:null})}t(document).ready(u)}(window.bluc.fancybox=window.bluc.fancybox||{},jQuery),function(n){n.navigation={}}(window.macla=window.macla||{},jQuery),function(n,t){"use strict";function s(){var i=t('<div id="expandCollapseHandle" title="Menu verstecken">«</div>').appendTo(r);return i.click(function(){n.IsCollapsed?n.Expand(!0):n.Collapse(!0)}),i}function o(){r=t("#navigationContainer"),f=t("#navigation"),u=t("#slogan, #address"),e=s(),r.mouseenter(function(){n.Expand(!0)})}var r=null,f=null,e=null,u=null;n.IsCollapsed=!1,t(document).ready(o),n.Collapse=function(n){n?(r.animate({width:"45px"},"fast"),f.fadeOut("fast"),u.fadeOut("fast")):(r.width(45),f.hide(),u.hide()),e.text("»"),IsCollapsed=!0},n.Expand=function(){r.animate({width:"220px"},"fast"),f.fadeIn("fast"),u.fadeIn("fast"),e.text("«"),n.IsCollapsed=!1}}(window.macla.navigation=window.macla.navigation||{},jQuery),function(n){n.background={}}(window.macla=window.macla||{},jQuery),function(n,t){"use strict";function o(){for(var i=[],n=0;n<f.length;n++)i.push({image:f[n]});t.supersized({slide_interval:5e3,slides:i})}function c(){var i=t('<div id="slideshowControls"/>');n.IsCollapsed?i.css("right",80):i.css("right",380),t('<a id="prev" class="slideshowControl" title="Bild zurück">‹</a>').click(n.PreviousImage).appendTo(i),t('<a id="next" class="slideshowControl" title="Bild vorwärts">›</a>').click(n.NextImage).appendTo(i),t("body").append(i)}function e(){u=!0,o(),s.fadeOut(750,function(){t(this).remove()})}function h(){s=t("#backgroundVideoContainer"),r=t("#backgroundVideo"),r.jmeEmbed({jwPlayer:{vars:{stretching:"fill"},path:"/scripts/lib/jmediaelement/player.swf"}}),f.length>0?(c(),r.length>0?(r.bind("loadedmeta",function(){}),r.bind("ended",function(){e()})):(u=!0,o())):r.attr("loop",!0)}var f=[],r=null,s=null,u=!1;t(document).ready(h),n.SetImages=function(n){f=n},n.NextImage=function(){u||e(),vars.is_paused||api.playToggle(),api.nextSlide()},n.PreviousImage=function(){u||e(),vars.is_paused||api.playToggle(),api.prevSlide()}}(window.macla.background=window.macla.background||{},jQuery),function(n){n.content={}}(window.macla=window.macla||{},jQuery),function(n,t){"use strict";function c(){var i=t('<div id="expandCollapseHandle" title="Inhalt verstecken">»</div>').appendTo(r);return i.click(function(){n.IsCollapsed?n.Expand(!0):n.Collapse(!0)}),i}function l(){r.css("height",e.height()-180)}function s(){r.position().left<0?(r.css("left",260),r.css("right","auto")):(r.css("left","auto"),r.css("right",30),r.position().left<260&&(r.css("right","auto"),r.css("left",260)))}function h(){e=t("#contentAnimationContainer"),r=t("#contentContainer"),f=t("#secondaryNavigationContainer"),u=t("#columnContainer"),o=c(),n.Columnize(),n.Collapse(!1),t("body").hasClass("dontCollapseContent")&&n.Expand(!0),r.hoverIntent(function(){n.Expand(!0)},function(){}),f.hoverIntent(function(){n.Expand(!0)},function(){}),t(window).resize(function(){r.data("timeout")&&clearTimeout(r.data("timeout")),r.data("timeout",setTimeout(n.ColumnizeOnResize,250))})}var e=null,r=null,u=null,f=null,o=null;n.IsCollapsed=!0,t(document).ready(h),n.Expand=function(){e.animate({left:0},"fast");var i=Math.max(t(window).width()-u.outerWidth(!0)-60,260);r.animate({left:i,right:30},"fast",function(){e.css("overflow","visible")}),f.animate({right:30},"fast"),t("#slideshowControls").animate({right:380},"fast"),o.fadeIn("fast"),this.IsCollapsed=!1},n.Collapse=function(n,i){e.css("overflow","hidden"),n?(e.animate({left:t(window).width()-60},"fast",function(){t(this).css("overflow","hidden"),typeof i=="function"&&i()}),r.animate({left:0,right:r.outerWidth(!0)*-1+60},"fast"),f.animate({right:f.outerWidth(!0)*-1+60},"fast"),t("#slideshowControls").animate({right:80},"fast"),o.fadeOut("fast")):(e.css("left",t(window).width()-60),r.css({left:0,right:r.outerWidth(!0)*-1+60}),f.css("right",f.outerWidth(!0)*-1+60),t("#slideshowControls").css({right:80}),o.hide()),this.IsCollapsed=!0},n.Columnize=function(){var r,n,i;for(t(".column *").unwrap(),l(),u.columnize({columns:1,dontsplit:"form",height:t("#contentContainer").height()-t("#contentContainer h1::first-child").height()}),r=u.children().last(),r.text()==""&&r.remove(),n=0,i=0;i<u.children().length;i++)n+=u.children(i).outerWidth(!0);for(u.width(n),u.parent().width(n),n=0,i=0;i<u.children().length;i++)n+=u.children(i).outerWidth(!0);u.width(n),u.parent().width(n),u.parent().parent().width(n),t("p").addClass("hyphenate"),Hyphenator.run()},n.ColumnizeOnResize=function(){t(".column *").unwrap(),n.Columnize(),n.IsCollapsed?n.Collapse(!1):s()}}(window.macla.content=window.macla.content||{},jQuery)
