$(window).resize(function(){$('#content .wrapper').css('min-height',$('body').height()-435)});$(document).ready(function(){$("html").removeClass("no-js").addClass("js");$('#content .wrapper').css('min-height',$('body').height()-435);$(".teaserBoxB").hover(function(){if($('.linkBox a:first',this).attr('href'))$(this).addClass('teaserBoxB-hover')},function(){$(this).removeClass('teaserBoxB-hover')});$(".teaserBoxB").click(function(){if($('.linkBox a:first',this).attr('href'))location.href=$('.linkBox a:first',this).attr('href')});$('.slideshowBox').parent().prev().find('h1').html($('.slideItem:first h1').html());$('.slideshowBox').next().html($('.slideItem:first .textBox').html());$('.slideshowBox').each(function(){var textHeight=0;$('.slideItem .textBox',this).each(function(){if($(this).height()>textHeight)textHeight=$(this).height()});$('.slideshowBox').next().height(textHeight);var scrollable=$(this).scrollable({easing:'easeOutQuart',speed:400,items:'.wrap',item:'.slideItem',prev:'.prev',next:'.next',circular:true,onBeforeSeek:function(event,i){$('.slideshowBox').parent().prev().find('h1').html($('.slideItem').eq(i+1).find('h1').html());$('.slideshowBox').next().html($('.slideItem').eq(i+1).find('.textBox').html())}}).autoscroll({autoplay:true,interval:7e3}),scrollableAPI=$(".slideshowBox",this).scrollable({api:true})});$('.selectBox').hoverIntent({sensitivity:3,interval:100,over:nothing,timeout:300,out:closeQuickBox}).click(function(){$(this).toggleClass('selectBoxActive')}).find('.option span').click(function(){var $thisClicked=$(this),$thisSelectBox=$(this).parent().parent().parent();$thisSelectBox.find('.selectedBox span').text($thisClicked.text());$thisSelectBox.find('input').attr('value',$(this).attr('class'))})
function closeQuickBox(){$(this).removeClass('selectBoxActive')}
function nothing(){return true};$('.mapError .closeButton').click(function(){$(this).parent().hide()});$('textarea').elastic();$('.boxCol1 .searchBox input').focus(function(){if($(this).attr('value')==='PLZ oder Ort eingeben')$(this).attr('value','')});$('.boxCol1 .searchBox input').blur(function(){if($(this).attr('value')==='')$(this).attr('value','PLZ oder Ort eingeben')});$('.containerKeyArea .searchBox input').focus(function(){if($(this).attr('value')==='PLZ oder Ort eingeben')$(this).attr('value','')});$('.containerKeyArea .searchBox input').blur(function(){if($(this).attr('value')==='')$(this).attr('value','PLZ oder Ort eingeben')});$('.searchBox button').click(function(){$(this).parent().parent().parent().find('.searchItem').hide();$(this).parent().parent().parent().find('.spinner').show()});$('.radioItem label').click(function(){var $radioGroup=$(this).prev().attr('name');$('input[name="'+$radioGroup+'"]').next().removeClass('checked').addClass('unchecked');$(this).removeClass('unchecked').addClass('checked')});$('.radioItem input[checked]:radio').parent().find('label').addClass('checked');$('.checkboxItem label').click(function(){if($(this).hasClass('checked')){$(this).removeClass('checked').addClass('unchecked')}else $(this).removeClass('unchecked').addClass('checked')});$('.checkboxItem input[checked]:checkbox').parent().find('label').addClass('checked');$('#openInfo').toggle(function(){$('#infoText').slideDown();return false},function(){$('#infoText').slideUp();return false})});
