var visibleElem;var curOpacity;var fadeFuncInterval;var numBeingShown;function ps_homeTeaserOver(c){if(numBeingShown==c){return}numBeingShown=c;if(fadeFuncInterval){window.clearInterval(fadeFuncInterval)}var a;var b=1;while(a=document.getElementById("ps_homeTeaserContent"+b)){a.style.display=b==c?"":"none";if(b==c){curOpacity=0.25;if(visibleElem==a){return}visibleElem=a;visibleElem.style.opacity=0.25;visibleElem.style.filter="alpha(opacity=25)";fadeFuncInterval=window.setInterval(fadeIn,50)}++b}}function switchTeaser(b,a){document.getElementById("teaserMenu").style.backgroundImage="url(/static/img/homepage/pic_homepageContent"+b+a+".jpg)"}function fadeIn(){curOpacity+=0.25;visibleElem.style.opacity=curOpacity;visibleElem.style.filter="alpha(opacity="+(curOpacity*100)+")";if(curOpacity>=1){window.clearInterval(fadeFuncInterval)}}function ps_homeTeaserOut(a){ps_homeTeaserOver(null,1)}function defaultUsername(b,a){if(b.value==a.replace(/\s*:\s*/,"")){b.value=""}}function fakePasswordField(b,a){b.style.display="none";var a=document.getElementById(a);a.style.display="inline";a.focus()}window.onload=function(){if(!document.getElementById("ps_fakepassword")&&document.getElementById("ps_loginEmail")){document.getElementById("ps_loginEmail").focus()}visibleElem=document.getElementById("ps_homeTeaserContent1")};