function PageLayout(canSearch, isTrustedLogin, logoAltText, userName, isCalendar) { var obj = new Object() obj.imageRoot = htmlString(getThemeRoot()) obj.root = htmlString(virtualPath()) obj.canSearch = canSearch obj.isTrustedLogin = isTrustedLogin obj.logoAltText = logoAltText obj.userName = userName obj.isMainFrame = window.name == kMainFrameName obj.isCalendar = isCalendar /* Begin customization */ //test for the special query string parameter you set in your connector //this will allow WSW to function normally on workspaces when not inside the connector var innerTab = getURLParam(location.search, "innerTabContents") == "1"; obj.writeOpen = innerTab ? function(){} : PageLayout_writeOpen obj.writeClose = innerTab ? function(){} : PageLayout_writeClose /* End customization */ obj.writeTopBar = PageLayout_writeTopBar obj.writeSidebar = PageLayout_writeSidebar obj.writeOpenContainerBar = PageLayout_writeOpenContainerBar obj.writeCloseContainerBar = PageLayout_writeCloseContainerBar obj.getQuickSearchForm = PageLayout_getQuickSearchForm obj.getOpenPageBar = PageLayout_getOpenPageBar obj.getClosePageBar = PageLayout_getClosePageBar obj.getInnerTabs = PageLayout_getInnerTabs obj.getNavPath = PageLayout_getNavPath obj.getToolBar = PageLayout_getToolBar obj.getSidebarVisibility = PageLayout_getSidebarVisibility obj.sidebarVisible = obj.getSidebarVisibility() return obj}