
var widgets={};widgets.toggler=function(config)
{Ext.apply(this,config);this.toggleEl.setVisibilityMode(Ext.Element.DISPLAY);this.toggleAreaEl.setVisibilityMode(Ext.Element.DISPLAY);this.toggleAreaEl.hide(false);this.toggleEl.on({click:this.show,scope:this});this.docBody=Ext.getBody();this.docBody.on({click:this.show,scope:this})
if(this.wrapperEl){this.outerWrap=this.wrapperEl.wrap({tag:'div',style:'position:relative;height:'+this.wrapperEl.getHeight()+'px;overflow:hidden;'});}
return this;}
widgets.toggler.prototype={show:function(e)
{if(e.getTarget('#'+this.wrapperEl.id)!=null)
{if(this.toggleAreaEl.isDisplayed())return false;this.toggleAreaEl.show(true);if(this.wrapperEl)
{this.wrapperEl.addClass('toggler-wrap-active');if(this.floating)
{this.outerWrap.setStyle('overflow','');this.wrapperEl.setStyle('position','absolute');this.wrapperEl.setStyle('right','0');}}}else{this.toggleAreaEl.hide(false);this.wrapperEl.removeClass('toggler-wrap-active');}}}
