var WindowBanner=Class.create();
WindowBanner.prototype={initialize:function(){this.relCatch="showBanner";this.loadingEffect=new AjaxLoadingEffect({containerId:"banner-cnt-overlay"})},setCatcher:function(){var a=$$('a[rel="'+this.relCatch+'"]');if(a){a.each(function(b){b.onclick=function(){return false}});a.invoke("observe","click",this.showWindow.bindAsEventListener(this))}},showWindow:function(a){a=Event.findElement(a,"a").href;window.scrollTo(0,0);this.hideShowBodyScroll("hidden");this.loadingEffect.setLoadingEffect();new Ajax.Request(a,
{onSuccess:this.successLoading.bind(this)})},successLoading:function(a){var b=document.getElementsByTagName("body")[0];new Insertion.Bottom(b,a.responseText);return false},closeWindow:function(){Element.remove($("info_api_block"));this.hideShowBodyScroll("")},hideShowBodyScroll:function(a){document.body.style.overflow=a}};var objWindowBanner=new WindowBanner;Event.observe(document,"dom:loaded",objWindowBanner.setCatcher.bindAsEventListener(objWindowBanner));
