﻿ Type.registerNamespace('Infragistics.Web.UI');$IG.LayoutPaneProps=new function(){var count=$IG.ControlObjectProps.Count;this.ScrollLeft=[count++,0];this.ScrollTop=[count++,0];this.ScrollBars=[count++,1];this.Count=count;};$IG.ContentPaneProps=new function(){var count=$IG.LayoutPaneProps.Count;this.ContentUrl=[count++,''];this.Count=count;};$IG.LayoutPane=function(adr,element,props,control,csm,collection,parent){if(!csm)csm=new $IG.ObjectClientStateManager(props[0]);$IG.LayoutPane.initializeBase(this,[adr,element,props,control,csm,collection,parent]);};$IG.LayoutPane.prototype={get_scrollLeft:function(){return this._get_value($IG.LayoutPaneProps.ScrollLeft);},set_scrollLeft:function(value){this._set_value($IG.LayoutPaneProps.ScrollLeft,value);this.getBody().scrollLeft=value;},get_scrollTop:function(){return this._get_value($IG.LayoutPaneProps.ScrollTop);},set_scrollTop:function(value){this._set_value($IG.LayoutPaneProps.ScrollTop,value);this.getBody().scrollTop=value;},get_scrollBars:function(){return this._get_value($IG.LayoutPaneProps.ScrollBars);},set_scrollBars:function(value){this._set_value($IG.LayoutPaneProps.ScrollBars,value);if(value==3)value='hidden';else if(value==2)value='scroll';else if(value==1)value='auto';else value='';this.getBody().style.overflow=value;},get_contentUrl:function(){return this._get_value($IG.ContentPaneProps.ContentUrl);},set_contentUrl:function(value){this._set_value($IG.ContentPaneProps.ContentUrl,value);var frame=this.get_iframe();if(frame)frame.src=value;},findChild:function(id){return $util.findChild(this.getBody(),id);},get_iframe:function(){var elem=this.getBody();if(elem)elem=elem.firstChild;return(elem&&elem.nodeName=='IFRAME')?elem:null;},getClientWidth:function(){if(this._width)return this._width;var elem=this.getBody();var width=elem.offsetWidth-$util.getOffset($util.getRuntimeStyle(elem),true);return(width>0)?width:0;},getClientHeight:function(){if(this._height)return this._height;var elem=this.getBody();var height=elem.offsetHeight-$util.getOffset($util.getRuntimeStyle(elem));return(height>0)?height:0;},getBody:function(){return this._DIV?this._DIV:this._element;},_onInit:function(){var x=this.get_scrollLeft(),y=this.get_scrollTop(),div=this.getBody();if(x>0)div.scrollLeft=x;if(y>0)div.scrollTop=y;},_onSubmit:function(){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); 
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();