Type.registerNamespace("Infragistics.Web.UI");$IG.LayoutPaneProps=new function(){var a=$IG.ControlObjectProps.Count;this.ScrollLeft=[a++,0];this.ScrollTop=[a++,0];this.ScrollBars=[a++,1];this.Count=a};$IG.ContentPaneProps=new function(){var a=$IG.LayoutPaneProps.Count;this.ContentUrl=[a++,""];this.Count=a};$IG.LayoutPane=function(a,e,g,d,c,b,f){if(!c){c=new $IG.ObjectClientStateManager(g[0])}$IG.LayoutPane.initializeBase(this,[a,e,g,d,c,b,f])};$IG.LayoutPane.prototype={get_scrollLeft:function(){return this._get_value($IG.LayoutPaneProps.ScrollLeft)},set_scrollLeft:function(a){if(this._get_value($IG.LayoutPaneProps.ScrollLeft)!=a){this._set_value($IG.LayoutPaneProps.ScrollLeft,a)}this.getBody().scrollLeft=a},get_scrollTop:function(){return this._get_value($IG.LayoutPaneProps.ScrollTop)},set_scrollTop:function(a){if(this._get_value($IG.LayoutPaneProps.ScrollTop)!=a){this._set_value($IG.LayoutPaneProps.ScrollTop,a)}this.getBody().scrollTop=a},get_scrollBars:function(){return this._get_value($IG.LayoutPaneProps.ScrollBars)},set_scrollBars:function(a){this._set_value($IG.LayoutPaneProps.ScrollBars,a);if(a==3){a="hidden"}else{if(a==2){a="scroll"}else{if(a==1){a="auto"}else{a=""}}}this.getBody().style.overflow=a},get_contentUrl:function(){return this._get_value($IG.ContentPaneProps.ContentUrl)},set_contentUrl:function(c,b){this._set_value($IG.ContentPaneProps.ContentUrl,c);var a=this.get_iframe(c);if(a&&!b){a.src=c}},findChild:function(b){var a=$util.findChild(this.getBody(),b);if(!a){if(a=this.get_iframe()){try{a=a.contentWindow.document.getElementById(b)}catch(b){}}}return a},get_iframe:function(a){var b=this.getBody();var e=b?b.childNodes:null;if(!e){return null}var d=e.length;var c=(d>0)?e[0]:null;if(c&&c.nodeName=="#text"){c=e[1]}if(c&&c.nodeName!="IFRAME"){c=null}if(!c&&a){while(d-->0){b.removeChild(e[d])}c=document.createElement("IFRAME");c.marginHeight=c.marginWidth=c.frameBorder="0";c.style.width=c.style.height="100%";b.appendChild(c)}return c},getClientWidth:function(){if(this._width){return this._width}var a=this.getBody();var b=a.offsetWidth-$util.getOffset($util.getRuntimeStyle(a),true);return(b>0)?b:0},getClientHeight:function(){if(this._height){return this._height}var a=this.getBody();var b=a.offsetHeight-$util.getOffset($util.getRuntimeStyle(a));return(b>0)?b:0},getBody:function(){return this._DIV?this._DIV:this._element},_onInit:function(){var b=this.get_scrollLeft(),c=this.get_scrollTop(),a=this.getBody();if(b>0){a.scrollLeft=b}if(c>0){a.scrollTop=c}},_onSubmit:function(){if(!this._element){return}this._set_value($IG.LayoutPaneProps.ScrollLeft,this.getBody().scrollLeft);this._set_value($IG.LayoutPaneProps.ScrollTop,this.getBody().scrollTop)}};$IG.LayoutPane.registerClass("Infragistics.Web.UI.LayoutPane",$IG.UIObject);