function scrollBottom(){window.scrollTo(0,document.body.scrollHeight)}
window.addEvent('domready',function(){var blink=setInterval(function(){$$('#content_box_text')[0].fade('toggle');},500);$$('.form_submit').addEvent('click',function(){$('page_submit').submit();return false;});var all_questions=$$('.questionblock');$('min_number').set('text','1');$('max_number').set('text',all_questions.length);all_questions.each(function(element,index){element.setProperty('id','question_'+ index);if(index!=0){element.fade('hide');element.addClass('hidden');}
$$('#question_'+ index+' a').each(function(link){link.addEvent('click',function(){show_next_question(index);scrollBottom();});});});});var show_next_question=function(index){var all_questions=$$('.questionblock');var pointer='';if(index<all_questions.length- 1){fadeing($('question_'+ index),$('question_'+(index+ 1)));fadeing($('question_headline'),$('question_headline'));$('min_number').set('text',index+ 2);}else{fadeing($('questions'),$('page_prozess'));setTimeout(function(){setTimeout(function(){fadeing($('prozess_status_1'),$('prozess_status_2'));setTimeout(function(){fadeing($('prozess_status_2'),$('prozess_status_3'));setTimeout(function(){window.location=$('target_link').get('href');},1800);},1800);},1800);},1800);}};var fadeing=function(object_out,object_in){object_in.fade('hide');object_out.fade('out');object_out.addClass('hidden');setTimeout(function(){object_in.removeClass('hidden');object_in.fade('in');},100);};var offer="";setInterval('countdown()',1000);function countdown(){var mins=parseInt(document.getElementById("mins").innerHTML);var secs=parseInt(document.getElementById("hsecs").innerHTML);if(secs==59){nmins=mins+ 1;nsecs=1;}
else if(secs!=59){nmins=mins;nsecs=secs+ 1;}
else if(secs==0){nmins=mins;nsecs=secs+ 1;}
document.getElementById("mins").innerHTML=nmins;document.getElementById("hsecs").innerHTML=nsecs;}
(function smoothscroll(){var currentScroll=document.documentElement.scrollTop||document.body.scrollTop;if(currentScroll>0){window.requestAnimationFrame(smoothscroll);window.scrollTo(0,currentScroll-(currentScroll/5));}})();var delayedScrollToBottom=function(){setTimeout(function(){scrollBottom();},4000);};window.innerWidth<768?delayedScrollToBottom():"";