function IntroFader(){this.autoFadeDelay=4E3;this.faderStarted=false;this.cookieName="firstTime";this.storedCookieValue=getCookie(this.cookieName);this.elem1=document.getElementById("homePane");this.elem2=document.getElementById("introImage");if(this.storedCookieValue=="false"){this.elem1.style.display="block";this.elem2.style.display="none"}else{var a=this;this.timer=setTimeout(function(){a.fader(a)},this.autoFadeDelay);setCookie(this.cookieName,"false")}}
IntroFader.prototype.forceFader=function(){if(!this.faderStarted){clearTimeout(this.timer);this.fader(this)}};IntroFader.prototype.fader=function(a){a.faderStarted=true;var c=100/30,b=30;a.elem1.style.display="block";var d=window.setInterval(function(){b--;if(b<0){window.clearInterval(d);a.elem2.style.display="none"}else{a.elem2.style.filter="Alpha(Opacity="+b*c+")";a.elem2.style.opacity=b/30}},50)};
function writeEmail(a,c,b){a||(a="millingertheetuin.eu");b||(b=c+"@"+a);document.write('<a href="mailto:'+c+"@"+a+'">'+b+"</a>")}function setCookie(a,c,b){document.cookie=a+"="+escape(c)+(b==null?"":"; expires="+b.toUTCString())}
function getCookie(a){a=a+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(a);if(offset!=-1){offset+=a.length;end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(offset,end))}else return""}};
