function receiveMessage(n){var f,i;try{var r=n.data.split(":"),t=r[0],u=["https://www.etermin.net"];t.indexOf("scrollto")!==-1&&(i=document.getElementById("etifr").getBoundingClientRect(),f=i.top+parseInt(t.substr(8,t.length-8))+window.pageYOffset-50,window.scrollTo(0,f));-1!==u.indexOf(n.origin)&&"resize"===t&&(i=document.getElementById("etifr"),i.style.height=r[1]*1+20+"px");-1!==u.indexOf(n.origin)&&"scroll"===t&&null!==document.getElementById("etifr")&&document.getElementById("etifr").scrollIntoView(!0);t=="showfooter"&&(window.scrollTo(window.scrollX,window.scrollY-1),window.scrollTo(window.scrollX,window.scrollY+1))}catch(e){}}function scrolled(){try{var n=document.getElementById("etifr"),i=window.pageYOffset+topOffset(n),t=parseInt(window.innerHeight+window.pageYOffset-i-110);t>n.getBoundingClientRect().height&&(t=-1);n.contentWindow.postMessage(t,"*")}catch(r){}}function topOffset(n){var t=null,i;for(t=document.all&&!window.opera?window.document.compatMode=="CSS1Compat"?window.document.documentElement:window.document.body||null:document.documentElement,window.pageYOffset?intOffsetY=window.pageYOffset:typeof t.scrollTop=="number"&&(intOffsetY=t.scrollTop),i=n.offsetTop,n=n.offsetParent;n;)i+=n.offsetTop,n=n.offsetParent;return i-intOffsetY}window.addEventListener?window.addEventListener("message",receiveMessage,!1):window.attachEvent&&window.attachEvent("onmessage",receiveMessage);window.addEventListener?window.addEventListener("scroll",scrolled,!1):window.attachEvent&&window.attachEvent("onscroll",scrolled);