Notifier=function(){var span=document.createElement("SPAN");var div=document.createElement("DIV");div.id="notifier_box";span.appendChild(div);document.body.appendChild(span);this.msgBox=div};Notifier.prototype.scrollHandler=function(){this.msgBox.style.top=this.getScrollTop()};Notifier.prototype.display=function(str){this.msgBox.style.display='block';this.msgBox.style.visibility='visible';if(this.msgBox.currentStyle&&this.msgBox.currentStyle.position=='absolute'){this.msgBox.style.top=getWindowScrollTop();window.notifier=this;window.onscroll=function(){this.notifier.msgBox.style.top=getWindowScrollTop()}};this.msgBox.innerHTML=str};Notifier.prototype.hide=function(){this.msgBox.style.display='none';this.msgBox.style.visibility='hidden';window.onscroll=null};function getWindowScrollTop(){if(document.documentElement.scrollTop)return document.documentElement.scrollTop;return document.body.scrollTop};