function upAppMenu(p_strAppGuid,p_strFupGuid){this.currAppGuid=p_strAppGuid;this.currFupGuid=p_strFupGuid;this.lastClickedFupGuid=""}upAppMenu.prototype.init=upAppMenuInit;upAppMenu.prototype.getUrl=upAppMenuGetUrl;upAppMenu.prototype.reset=upAppMenuReset;upAppMenu.prototype.changeToCurrent=upAppMenuChangeToCurrent;upAppMenu.prototype.setCurrentClass=upAppMenuSetCurrentClass;function appmenu_a_focus(){if(this.className!="current"){this.className="over"}}function appmenu_a_out(){if(this.className!="current"){this.removeAttribute("className")}}function appmenu_li_focus(){var oListElement=document.getElementById("CONT-"+this.id.substring(2));if(oListElement.className!="current"){oListElement.className="over"}}function appmenu_li_out(){var oListElement=document.getElementById("CONT-"+this.id.substring(2));if(oListElement.className!="current"){Browser.ie7down?oListElement.removeAttribute("className"):oListElement.removeAttribute("class")}}function upAppMenuInit(){if(document.getElementById("CONT-"+this.currFupGuid)){this.changeToCurrent(this.currFupGuid)}var aLinks=document.getElementById("CONT_AppMenuItems").getElementsByTagName("A");var oLink=null;for(var i=0;i<aLinks.length;i++){oLink=aLinks[i];oLink.onclick=new Function("Loader.loadUrl('"+this.getUrl(oLink.id.substring(2))+"');return false;");oLink.onfocus=appmenu_li_focus;oLink.onblur=appmenu_li_out}return}function upAppMenuGetUrl(p_strFupGuid){var url=self.oHtmlRoot.oUp.connector;if(!Helper.getCookieValueByParam("co_SId")&&Helper.getQsValueByParam("rq_SId")){url=Helper.setUrlValueByParam("rq_SId",Helper.getQsValueByParam("rq_SId"),url)}url=Helper.setUrlValueByParam("rq_AppGuid",this.currAppGuid,url);url=Helper.setUrlValueByParam("rq_TargetPageGuid",p_strFupGuid,url);url=Helper.setUrlValueByParam("rq_Template","internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/frames/appmain.vm",url);return url}function upAppMenuReset(p_strAppGuid,p_strFupGuid){if(document.getElementById("CONT-"+p_strFupGuid)){this.changeToCurrent(p_strFupGuid)}return}function upAppMenuChangeToCurrent(p_strFupGuid){if(this.lastClickedFupGuid==p_strFupGuid){return}this.setCurrentClass(p_strFupGuid);this.lastClickedFupGuid=p_strFupGuid;customClick(p_strFupGuid);return}function upAppMenuSetCurrentClass(p_strFupGuid){var oTextLink=document.getElementById("A-"+p_strFupGuid);var oLi=document.getElementById("CONT-"+p_strFupGuid);if(!oTextLink||!oLi){return}oTextLink.className="current";oLi.className="current";var oOldTextLink=document.getElementById("A-"+this.lastClickedFupGuid);var oOldLi=document.getElementById("CONT-"+this.lastClickedFupGuid);if(!oOldTextLink||!oOldLi){return}Browser.ie7down?oOldTextLink.removeAttribute("className"):oOldTextLink.removeAttribute("class");Browser.ie7down?oOldLi.removeAttribute("className"):oOldLi.removeAttribute("class");return};
