if(!saw.componentheader){saw.componentheader=function(){};saw.componentheader.tTabBarViewer=null;saw.componentheader.tToolBarHeaderViewer=null;saw.componentheader.tStatusIndicatorViewer=null;saw.componentheader.nPageborderWidth=12;saw.componentheader.nIE7ScrollBarFix=27;saw.componentheader.createHeader=function(c,f,g,b){var e=document.getElementById("idSummarySectionDiv");if(e!=null){if(f==null){e.style.padding="0px"}else{e.appendChild(f);saw.componentheader.hasSummarySectionDiv=true}}saw.componentheader.setTabbar(c,b);var d=document.getElementById("idPageOptions");if(d!=null&&g!=null){saw.clearInnerHTML(d);this.tToolBarHeaderViewer=new obips.ToolbarHeader.Viewer(g,d);if(!c){obips.CSS.addClassToElement(d,"ComponentHeaderToolbar")}}var a=document.getElementById("idStatusIndicator");if(a!=null){this.tStatusIndicatorViewer=new obips.ToolbarHeader.StatusIndicator(a)}};saw.componentheader.setTabbar=function(b,a){var c=document.getElementById("idComponentLevelTabbarOuterDiv");if(b!=null){if(c!=null){saw.clearInnerHTML(c);this.tTabBarViewer=new obips.TabBar.Viewer(b,c,a);this.tTabBarViewer.tabBodiesDiv.style.display="none"}}return this.tTabBarViewer};saw.componentheader.hasSummarySection=function(){return(document.getElementById("idSummarySectionDiv")==null)?false:true};saw.componentheader.hasHeaderTabbar=function(){return(document.getElementById("idComponentLevelTabbarOuterDiv")==null)?false:true};saw.componentheader.hasPageOptionsUberbar=function(){return(document.getElementById("idPageOptions")==null)?false:true};saw.componentheader.getSummaryContainer=function(){return document.getElementById("idSummarySectionDiv")};saw.componentheader.getTabbarContainer=function(){return document.getElementById("idComponentLevelTabbarOuterDiv")};saw.componentheader.getToolbarHeaderContainer=function(){return document.getElementById("idPageOptions")};saw.componentheader.getTabbarViewer=function(){return this.tTabBarViewer};saw.componentheader.getToolbarHeaderViewer=function(){return this.tToolBarHeaderViewer};saw.componentheader.getStatusIndicatorViewer=function(){return this.tStatusIndicatorViewer};saw.componentheader.layoutOuterDiv=function(){var b=document.getElementById("PageContentOuterDiv");var d=obips.ResourceManager.getSingleton().getStyleProperty("pageBorderBottomRequired");var g=0;var f=obips.BreadCrumbs.Manager.getSingleton().getBreadCrumbItems();var e=saw.getSessionInfos().getSyndicate();if(!saw.userAgent.is_ie7&&!saw.userAgent.is_smrtphone&&f&&f.length>1&&(e!="adf")&&(e!="workspace")){g=obips.ResourceManager.getSingleton().getStyleProperty("breadCrumbHeight")}if(d=="true"){saw.setOuterHeight(b,saw.getClientHeight()-saw.calcAbsoluteTop(b)-this.nPageborderWidth-g)}else{var a=0;var c=saw.getEvent();if(saw.userAgent.is_ie7){if(c!=null){a=1}else{a=saw.componentheader.nIE7ScrollBarFix}}else{a=1}saw.setOuterHeight(b,saw.getClientHeight()-saw.calcAbsoluteTop(b)-a-g)}return b};saw.componentheader.layoutContainerDiv=function(b){if(b){var a=saw.componentheader.layoutOuterDiv();saw.setOuterHeight(b,saw.cssLengthToInt(a.style.height))}};saw.componentheader.getPageContentOuterDiv=function(){return document.getElementById("PageContentOuterDiv")};saw.componentheader.addCSSClassToUberbar=function(b){var a=document.getElementById("idPageOptions");obips.CSS.addClassToElement(a,b)}};