
function getMenu(id)
{var o=document.getElementById("A_"+id).parentNode;while(o)
{if(o.id&&o.id.length>=14&&o.id.substr(0,14)=="Container_Menu")
{if(o.oUp)
return o.oUp;else
return null;}
o=o.parentNode;}
return null;}
function clickItem(id)
{var oMenu=getMenu(id);oMenu.loadSubMenu(id);changeToClick(id);}
function sC(id)
{showChildren(id);}
function showChildren(id)
{var oMenu=getMenu(id);var oMenuItem=oMenu.getItemById(id);oMenuItem.showChildren(oMenu);}
function tC(id)
{toggleChildren(id);}
function toggleChildren(id)
{var oMenu=getMenu(id);var oMenuItem=oMenu.getItemById(id);oMenuItem.toggleChildren(oMenu);}
function hf(oHtml)
{if(Browser.ie&&oHtml.hideFocus==false)
{oHtml.hideFocus=true;}
return;}
function cTC(id)
{changeToClick(id);return;}
function changeToClick(id)
{var oMenu=getMenu(id);if(oMenu==null)return;if(oMenu.oLastClickedItem!=null&&oMenu.oLastClickedItem.id==id)
return;if(oMenu.oLastClickedItem!=null)
{oMenu.oLastClickedItem.unSetClick(oMenu);}
var oMenuItem=oMenu.getItemById(id);oMenuItem.setClick(oMenu);customClick(id);return;}
function cTH(id)
{changeToHover(id);return;}
function changeToHover(id)
{var oMenu=getMenu(id);if(oMenu.oLastClickedItem!=null&&oMenu.oLastClickedItem.id==id)
return;var oMenuItem=oMenu.getItemById(id);oMenuItem.changeStyle(oMenu,"hover");customHover(id);return;}
function cTO(id)
{changeToOut(id);return;}
function changeToOut(id)
{var oMenu=getMenu(id);if(oMenu.oLastClickedItem!=null&&oMenu.oLastClickedItem.id==id)
return;var oMenuItem=oMenu.getItemById(id);oMenuItem.changeStyle(oMenu,"normal");customOut(id);return;}
function changeStyle(id,FG_StyleClass,BG_StyleClass,state)
{var oMenu=getMenu(id);var oMenuItem=oMenu.getItemById(id);oMenuItem._changeStyle(oMenu,FG_StyleClass,BG_StyleClass,state);}
function upMenu()
{this.menuType=0;this.startMenuLevel=0;this.startId="";this.level1Margin=0;this.separator=new Object();this.separator.align=0;this.separator.image="images/1px.gif";this.separator.paddingLeft=0;this.separator.paddingRight=0;this.separator.paddingTop=0;this.separator.paddingBottom=0;this.images=new Object();this.cssClasses=new Object();this.aAncestorsAndSelf=new Array();this.frameName=self.name;this.childMenuName="";this.parentMenuName="";this.stageFrameName="";this.rootMenuFrameName="";this.menuPath=new Array();this.bDirty=false;if(oHtmlRoot&&oHtmlRoot.oUp)
this.bFrames=oHtmlRoot.oUp.oFormatInfo.bFrames;else
this.bFrames=false;this.oRootMenuItem=oHtmlRoot.oroot;this.oStartMenuItem=null;this.oMenuTree=null;this.oLastClickedItem=null;}
upMenu.prototype.getStartMenuLevel=MenuGetStartMenuLevel;upMenu.prototype.getFirstMenuLevel=MenuGetFirstMenuLevel;upMenu.prototype.setMenuPathByAppGuid=MenuSetMenuPathByAppGuid;upMenu.prototype._setMenuPathByAppGuid=Menu_SetMenuPathByAppGuid;upMenu.prototype.setMenuPathById=MenuSetMenuPathById;upMenu.prototype._setMenuPathById=Menu_SetMenuPathById;upMenu.prototype.getItemById=MenuGetItemById;upMenu.prototype._getItemById=Menu_GetItemById;upMenu.prototype.getItemByAppGuid=MenuGetItemByAppGuid;upMenu.prototype._getItemByAppGuid=Menu_GetItemByAppGuid;upMenu.prototype.getContainer=MenuGetContainer;upMenu.prototype.getTextLink=MenuGetTextLink;upMenu.prototype.getChildrenContainer=MenuGetChildrenContainer;upMenu.prototype.getIcon=MenuGetIcon;upMenu.prototype.getMenuLink=MenuGetMenuLink;upMenu.prototype.getStageLoader=MenuGetStageLoader;upMenu.prototype.getStageLoaderExternalUrl=MenuGetStageLoaderExternalUrl;upMenu.prototype.clearMenu=MenuClearMenu;upMenu.prototype.resetMenu=MenuResetMenu;upMenu.prototype.reset=MenuReset;upMenu.prototype.loadSubMenu=MenuLoadSubMenu;upMenu.prototype.collapse=MenuCollapse;upMenu.prototype.init=MenuInit;function MenuInit()
{this.initStyles();if(document.getElementById("ID_Outer_Table"))
{Browser.readjustHeight("ID_Outer_Table");}
if(this.getFirstMenuLevel()==1&&this.oStartMenuItem!=null&&!Helper.getQsValueByParam("rq_AppId")&&!Helper.getQsValueByParam("rq_AppGuid")&&!Helper.getQsValueByParam("rq_MenuGuid"))
{var aChildren=this.oStartMenuItem.aChildren;if(aChildren&&aChildren.length>0)
{if(aChildren[0].upType!="upSeparatorMenuItem")
{var id=aChildren[0].id;changeToClick(id);}}}
customInit();return;}
function MenuClearMenu()
{if(this.startId!="")
{this.rewrite("","");}
if(this.childMenuName!="")
{var oMenu=oHtmlRoot.oUp.oRegistry.oMenuReg[this.childMenuName];oMenu.clearMenu();}}
function MenuResetMenu(startId,appGuid,id)
{if(this.childMenuName!=""&&startId!="")
{var oMenu=oHtmlRoot.oUp.oRegistry.oMenuReg[this.childMenuName];oMenu.clearMenu();}
var oMenuTree=this.oMenuTree;if(oMenuTree.bCheckRefresh)
{oMenuTree.aRefreshRegistry[oMenuTree.aRefreshRegistry.length]=new Array(this,startId,appGuid,id);oMenuTree.refresh(true);}
else
{this.reset(startId,appGuid,id);}}
function MenuReset(startId,appGuid,id)
{if(this.bDirty==true)
{this.bDirty=false;this.rewrite(this.startId,"");}
if(appGuid&&appGuid!="")
{this.setMenuPathByAppGuid(appGuid);var menuPath=this.menuPath;if(this.startId!=""&&(menuPath.length-this.getStartMenuLevel()-1)>0&&menuPath[menuPath.length-this.getStartMenuLevel()-1]==this.startId)
{this.adjustMenu(menuPath);}
else
{if(menuPath.length==0)
{return;}
else if(this.startMenuLevel+1>=menuPath.length)
{this.clearMenu();}
else
{this.rewrite(menuPath[menuPath.length-this.getFirstMenuLevel()],menuPath[0]);}}}
else if(id&&id!="")
{this.setMenuPathById(id);var menuPath=this.menuPath;if((menuPath.length-this.getStartMenuLevel()-1)>0)
{if(this.startId!=""&&menuPath[menuPath.length-this.getStartMenuLevel()-1]==this.startId)
{this.adjustMenu(menuPath);}
else
{this.rewrite(menuPath[menuPath.length-this.getStartMenuLevel()-1],id);}}
else
{if(menuPath.length==0)
{return;}
if(menuPath.length>0&&this.getStartMenuLevel()==menuPath.length-1)
{this.rewrite(menuPath[0],"");}
else
{this.clearMenu();}}}
else if(startId&&startId!="")
{if(this.oStartMenuItem!=null&&this.oStartMenuItem.id==startId)
{if(this.oLastClickedItem!=null)
{this.oLastClickedItem.unSetClick(this);}
this.collapse();}
else
{this.rewrite(startId,"");}}
else
{this.rewrite("","");}
return;}
function MenuLoadSubMenu(id)
{if(this.childMenuName!="")
{var oMenu=oHtmlRoot.oUp.oRegistry.oMenuReg[this.childMenuName];if(typeof oMenu=="undefined")
return;if(arguments.length>0)
{var oMenuItem=this.getItemById(id);if(oMenuItem.upType=="upApplicationMenuItem"||oMenuItem.upType=="upLinkMenuItem")
{oMenu.clearMenu();}
else
{oMenu.resetMenu(id,"","");}}
else
{oMenu.resetMenu("","","");}}
return;}
function MenuCollapse()
{if(!this.oStartMenuItem)return;var oStartMenuItem=this.oStartMenuItem;if(oStartMenuItem.upType!="upContainerMenuItem")
return;for(var i=0;i<oStartMenuItem.aChildren.length;i++)
{if(oStartMenuItem.aChildren[i].upType=="upContainerMenuItem")
oStartMenuItem.aChildren[i].hideChildren(this);}}
function MenuGetStageLoader(menuItem)
{return"return !Loader.loadStageUrl('"+menuItem.getUrl(this)+"');";}
function MenuGetStageLoaderExternalUrl(menuItem)
{return"return !Loader.loadExternalUrl('"+menuItem.getUrl(this)+"');";}
function MenuGetMenuLink()
{var baseurl=self.oHtmlRoot.oUp.connector;var template="internal/layout/vm/html/"+oHtmlRoot.oUp.oFormatInfo.layoutDir+"/menu/content/"+this.frameName+".vm";var url=Helper.setUrlValueByParam("rq_Template",template,baseurl);if(!Helper.getCookieValueByParam("co_SId"))
{if(Helper.getQsValueByParam("rq_SId"))
var url=Helper.setUrlValueByParam("rq_SId",Helper.getQsValueByParam("rq_SId"),url);}
return url;}
function MenuGetContainer(id)
{return Browser.getRef("CONT_"+id);}
function MenuGetTextLink(id)
{return Browser.getRef("A_"+id);}
function MenuGetChildrenContainer(id)
{return Browser.getRef("CHILDREN_"+id);}
function MenuGetIcon(id)
{return Browser.getRef("IMG_"+id);}
function MenuGetItemById(id)
{var item=null;if(typeof this.oRootMenuItem!="undefined"&&this.oRootMenuItem!=null)
{if(id==this.oRootMenuItem.id)
return this.oRootMenuItem;else
item=this._getItemById(id,this.oRootMenuItem);}
return item;}
function Menu_GetItemById(id,node)
{var result=null;var aChildren=node.aChildren;for(var i=0;i<aChildren.length;i++)
{var child=aChildren[i];if(child.id==id)
{return child;}
else if(child.upType=="upContainerMenuItem")
{if(child.aChildren.length>0)
{result=this._getItemById(id,child);if(result!=null)return result;}}}}
function MenuGetItemByAppGuid(guid)
{var item=null;if(typeof this.oRootMenuItem!="undefined"&&this.oRootMenuItem!=null)
{item=this._getItemByAppGuid(guid,this.oRootMenuItem);}
return item;}
function Menu_GetItemByAppGuid(guid,node)
{var result=null;var aChildren=node.aChildren;for(var i=0;i<aChildren.length;i++)
{var child=aChildren[i];if(child.upType=="upApplicationMenuItem"&&child.appGuid==guid)
{return child;}
else if(child.upType=="upContainerMenuItem")
{if(child.aChildren.length>0)
{result=this._getItemByAppGuid(guid,child);if(result!=null)return result;}}}}
function MenuGetStartMenuLevel()
{return this.startMenuLevel;}
function MenuGetFirstMenuLevel()
{return this.startMenuLevel+1;}
function MenuSetMenuPathByAppGuid(appGuid)
{if(typeof this.oRootMenuItem!="undefined"&&this.oRootMenuItem!=null)
{this._setMenuPathByAppGuid(appGuid,this.oRootMenuItem);return;}
else
{return;}}
function Menu_SetMenuPathByAppGuid(appGuid,child)
{var aChildren=child.aChildren;for(var i=0;i<aChildren.length;i++)
{var child=aChildren[i];if((child.upType=="upApplicationMenuItem"||child.upType=="upLinkMenuItem")&&((appGuid.length==40&&child.appGuid==appGuid)||child.iAppId==appGuid))
{var aMenuPath=new Array();var aAncestorsAndSelf=child.getAncestorsAndSelf();this.menuPath=aAncestorsAndSelf;return;}
else if(child.upType=="upContainerMenuItem")
{if(child.aChildren.length>0)
{this._setMenuPathByAppGuid(appGuid,child);}}}}
function MenuSetMenuPathById(id)
{if(typeof this.oRootMenuItem!="undefined"&&this.oRootMenuItem!=null)
{var aAncestorsAndSelf=this._setMenuPathById(id,this.oRootMenuItem);return aAncestorsAndSelf;}
else
{return new Array();}}
function Menu_SetMenuPathById(id,child)
{var aChildren=child.aChildren;for(var i=0;i<aChildren.length;i++)
{var child=aChildren[i];if(child.id==id)
{var aMenuPath=new Array();var aAncestorsAndSelf=child.getAncestorsAndSelf();this.menuPath=aAncestorsAndSelf;return;}
else if(child.upType=="upContainerMenuItem")
{if(child.aChildren.length>0)
{this._setMenuPathById(id,child);}}}}
function upDropdownMenu()
{this.menuType=2;this.htmlCode="";this.activeTopItem=null;}
upDropdownMenu.prototype=new upMenu();upDropdownMenu.prototype.adjustMenu=DropdownMenuAdjustMenu;upDropdownMenu.prototype.rewrite=DropdownMenuRewrite;upDropdownMenu.prototype.reset=DropdownMenuReset;upDropdownMenu.prototype.init=DropdownMenuInit;upDropdownMenu.prototype.adjustWidth=DropdownMenuAdjustWidth;upDropdownMenu.prototype.changeNode=DropdownMenuChangeNode;upDropdownMenu.prototype.setSpecificStyleProps=DropdownSetSpecificStyleProps;upDropdownMenu.prototype.setCSSClass=DropdownSetCSSClass;function DropdownMenuRewrite(startId,id)
{return;}
function DropdownMenuReset(startId,appGuid,id)
{return;}
function DropdownMenuAdjustMenu(menuPath)
{return;}
function DropdownMenuAdjustWidth()
{var oDiv=document.getElementById("Container_Menu_Dropdown");document.getElementById("Container_Menu_Dropdown").style.width="100%";var iOffsetWidth=parseInt(oDiv.offsetWidth);var iClientWidth=parseInt(oDiv.clientWidth);var iPadd=parseInt(oDiv.style.paddingLeft)+parseInt(oDiv.style.paddingRight);if(isNaN(iPadd))return;var iWidth=parseInt(oDiv.clientWidth)-2*iPadd;oDiv.style.width=iWidth+"px";}
function DropdownMenuInit()
{if(Browser.ie)
{self.onresize=function(){if(typeof oDropdownMenu!="undefined")
setTimeout('oDropdownMenu.adjustWidth();',0);};}
else
{self.onresize=function(){if(typeof oDropdownMenu!="undefined")
oDropdownMenu.adjustWidth();};}
this.adjustWidth();if(typeof Browser!="undefined"&&Browser.ie6)
{this.oHtml.style.position="absolute";}
if(document.getElementById("CONT_root"))
{this.changeNode(document.getElementById("CONT_root"));}
if(typeof customInit!="undefined")customInit();return;}
function DropdownSetSpecificStyleProps(state,n)
{if(aMenuGuid[state+"_"+n.id])
{aCurrStyles=aMenuGuid[state+"_"+n.id];for(var p in aCurrStyles)
eval("n.style."+p+"="+"\""+aCurrStyles[p]+"\"");}}
function DropdownSetCSSClass(p_strMenuGuid,p_strAppGuid)
{if(p_strMenuGuid=="-"&&p_strAppGuid=="-")
return;if(p_strMenuGuid!="-")
{var oMenuItem=this.getItemById(p_strMenuGuid);}
else if(p_strAppGuid!="-")
{var oMenuItem=this.getItemByAppGuid(p_strAppGuid);}
if(oMenuItem==null)
return;var aAncestorsAndSelf=oMenuItem.getAncestorsAndSelf();if(aAncestorsAndSelf.length<2)
return;var oMainItem=this.getItemById(aAncestorsAndSelf[aAncestorsAndSelf.length-2]);for(var i=0;i<oMainItem.parent.aChildren.length;i++)
{if(oMainItem.parent.aChildren[i].id!=oMainItem.id)
oMainItem.parent.aChildren[i].changeStyle(this,"normal");}
var oTextLink=this.getTextLink(oMainItem.id);var oDiv=this.getContainer(oMainItem.id);oTextLink.className=this.cssClasses.FGmenuClickClass;oDiv.className=this.cssClasses.BGmenuClickClass;if(typeof Browser!="undefined"&&Browser.firefox)
{oTextLink.blur();setTimeout("document.getElementById('"+oDiv.id+"').className = '"+this.cssClasses.BGmenuClickClass+"'",200);}
this.setSpecificStyleProps("visited_"+oDiv.id,oDiv);this.setSpecificStyleProps("visited_"+oTextLink.id,oTextLink);return;}
function dd_a_top_click(e)
{if(oDropdownMenu.childMenuName!="")
{oDropdownMenu.loadSubMenu(this.id.substring(2));}
if(oDropdownMenu.activeTopItem!=null)
{oDropdownMenu.activeTopItem.className="ddtopitem_out";if(typeof Browser!="undefined"&&Browser.ie6)
{var oUL=document.getElementById(this.id.replace(/A\_/,"CHILDREN_"));if(oUL)
{try
{var nT=document.getElementById(oUL.id+"_mask").removeNode(true);nt=null;}
catch(e){}}
oUL=null;}}
if(!e)e=self.event;if(e)
{if(e.stopPropagation)
e.stopPropagation();e.cancelBubble=true;}
var guid=this.id.substring(2);if(this.target&&this.target=="_blank")
{if(typeof customClick!="undefined")customClick(guid);return true;}
else
{if(typeof customClick!="undefined")customClick(guid);var oMenuItem=oDropdownMenu.getItemById(this.id.substring(2));if(oMenuItem&&oMenuItem.name!="")
document.title=oHtmlRoot.oUp.portalName+" - "+oMenuItem.name;else
document.title=oHtmlRoot.oUp.portalName;if(oMenuItem&&oMenuItem.upType=="upLinkMenuItem")
return true;else
var href;if(Browser.ie7down)
href=this.getAttribute("href",2)
else
href=this.getAttribute("href")
return!Loader.loadStageUrl(href);}}
function dd_a_top_over()
{if(this.className.indexOf("_selected")>-1)
return;this.className="ddtoplink_over";if(typeof oDropdownMenu!="undefined")
oDropdownMenu.setSpecificStyleProps("hover",this);}
function dd_a_top_out()
{if(this.className.indexOf("_selected")>-1)
return;this.className="ddtoplink";if(typeof oDropdownMenu!="undefined")
oDropdownMenu.setSpecificStyleProps("normal",this);}
function dd_a_click(e)
{if(oDropdownMenu.childMenuName!="")
{oDropdownMenu.loadSubMenu(this.id.substring(2));}
if(oDropdownMenu.activeTopItem!=null)
{oDropdownMenu.activeTopItem.className="ddtopitem_out";}
if(!e)e=self.event;if(e)
{if(e.stopPropagation)
e.stopPropagation();e.cancelBubble=true;}
var guid=this.id.substring(2);if(this.target&&this.target=="_blank")
{if(typeof customClick!="undefined")customClick(guid);return true;}
else
{if(typeof customClick!="undefined")customClick(guid);var oMenuItem=oDropdownMenu.getItemById(this.id.substring(2));if(oMenuItem&&oMenuItem.name!="")
document.title=oHtmlRoot.oUp.portalName+" - "+oMenuItem.name;else
document.title=oHtmlRoot.oUp.portalName;if(oMenuItem&&oMenuItem.upType=="upLinkMenuItem")
return true;else
{var href;if(Browser.ie7down)
href=this.getAttribute("href",2)
else
href=this.getAttribute("href")
return!Loader.loadStageUrl(href);}}}
function dd_a_over()
{this.className="ddlink_over";if(typeof oDropdownMenu!="undefined")
oDropdownMenu.setSpecificStyleProps("hover",this);}
function dd_a_out()
{this.className="ddlink";if(typeof oDropdownMenu!="undefined")
oDropdownMenu.setSpecificStyleProps("normal",this);}
function dd_a_top_focus()
{var li_id=this.id.replace(/A/,"CONT");if(document.getElementById(li_id))
document.getElementById(li_id).className="ddtopitem_over";}
function dd_a_top_blur()
{var li_id=this.id.replace(/A/,"CONT");if(document.getElementById(li_id))
document.getElementById(li_id).className="ddtopitem";}
function dd_a_focus()
{var li_id=this.id.replace(/A/,"CONT");if(document.getElementById(li_id))
document.getElementById(li_id).className="dditem_over";}
function dd_a_blur()
{var li_id=this.id.replace(/A/,"CONT");if(document.getElementById(li_id))
document.getElementById(li_id).className="dditem_out";}
function dd_li_top_over()
{if(typeof oDropdownMenu!="undefined")
{oDropdownMenu.activeTopItem=this;}
if(this.className.indexOf("_selected")>-1)
return;this.className="ddtopitem_over";if(typeof oDropdownMenu!="undefined")
{oDropdownMenu.setSpecificStyleProps("hover",this);}
if(typeof Browser!="undefined"&&Browser.ie6)
{var oUL=document.getElementById(this.id.replace(/CONT/,"CHILDREN"));if(oUL)
{var oPosXY=Browser.getPosition2Page(oUL,true);var oIframe=document.createElement("iframe");oIframe.setAttribute("id",oUL.id+"_mask");oIframe.setAttribute("name",oUL.id+"_mask");oIframe.setAttribute("frameborder","0");oIframe.setAttribute("src","javascript:false");oIframe.setAttribute("scrolling","no");oIframe.style.position="absolute";oIframe.style.top=oPosXY.posY;oIframe.style.left=oPosXY.posX;oIframe.style.width=oUL.offsetWidth;oIframe.style.height=oUL.offsetHeight;var temp=document.body.appendChild(oIframe);temp=null;oIframe=null;}
oUL=null;}
if(typeof customHover!="undefined")customHover(this.id);return;}
function dd_li_top_out()
{this.blur();if(typeof oDropdownMenu!="undefined")
{oDropdownMenu.activeTopItem=null;}
if(this.className.indexOf("_selected")>-1)
return;this.className="ddtopitem";if(typeof oDropdownMenu!="undefined")
{oDropdownMenu.setSpecificStyleProps("normal",this);}
if(typeof Browser!="undefined"&&Browser.ie6)
{var oUL=document.getElementById(this.id.replace(/CONT/,"CHILDREN"));if(oUL)
{try
{var nT=document.getElementById(oUL.id+"_mask").removeNode(true);nt=null;}
catch(e){}}
oUL=null;}
if(typeof customOut!="undefined")customOut(this.id);return;}
function dd_li_click(e)
{if(oDropdownMenu.childMenuName!="")
{oDropdownMenu.loadSubMenu(this.id.substring(5));}
if(oDropdownMenu.activeTopItem!=null)
{oDropdownMenu.activeTopItem.className="ddtopitem_out";if(typeof Browser!="undefined"&&Browser.ie6)
{var oUL=this.parentNode;if(oUL)
{try
{var nT=document.getElementById(oUL.id+"_mask").removeNode(true);nt=null;}
catch(e){}}
oUL=null;}}
var aTag=document.getElementById("A_"+this.id.substring(5));if(!aTag)return;if(!e)e=self.event;if(e)
{if(e.stopPropagation)
e.stopPropagation();e.cancelBubble=true;}
if(aTag.target&&aTag.target=="_blank")
{return;}
else
{var oMenuItem=oDropdownMenu.getItemById(aTag.id.substring(2));if(oMenuItem&&oMenuItem.upType=="upLinkMenuItem")
{return true;}
else
{!Loader.loadStageUrl(aTag.href);return;}}}
function dd_li_over()
{if(typeof this.timer!="undefined"&&this.timer>-1)
window.clearTimeout(this.timer);this.className="dditem_over";if(typeof Browser!="undefined"&&Browser.ie6)
{var a_id=this.id.replace(/CONT/,"A");if(document.getElementById(a_id))
document.getElementById(a_id).className="ddlink_over";}
if(typeof oDropdownMenu!="undefined")
oDropdownMenu.setSpecificStyleProps("hover",this);if(typeof Browser!="undefined"&&Browser.ie6)
{var oUL=document.getElementById(this.id.replace(/CONT/,"CHILDREN"));if(oUL)
{var oIframe=document.createElement("iframe");oIframe.setAttribute("id",oUL.id+"_mask");oIframe.setAttribute("name",oUL.id+"_mask");oIframe.setAttribute("frameborder","0");oIframe.setAttribute("src","javascript:false");oIframe.setAttribute("scrolling","no");oIframe.style.position="absolute";var posY=oUL.offsetTop;var posX=oUL.offsetLeft;var oParent=oUL.offsetParent;while(oParent)
{posY=posY+oParent.offsetTop+oParent.clientTop;posX=posX+oParent.offsetLeft+oParent.clientLeft;oParent=oParent.offsetParent;}
oIframe.style.top=posY;oIframe.style.left=posX;oIframe.style.width=oUL.offsetWidth;oIframe.style.height=oUL.offsetHeight;var temp=document.body.appendChild(oIframe);temp=null;oIframe=null;}
oUL=null;}
if(typeof customHover!="undefined")customHover(this.id);return;}
function dd_li_out()
{this.className="dditem_delay";if(typeof oDropdownMenu!="undefined")
oDropdownMenu.setSpecificStyleProps("normal",this);if(typeof Browser!="undefined"&&Browser.ie6)
{var a_id=this.id.replace(/CONT/,"A");if(document.getElementById(a_id))
document.getElementById(a_id).className="ddlink";var oUL=document.getElementById(this.id.replace(/CONT/,"CHILDREN"));if(oUL)
{try
{var nT=document.getElementById(oUL.id+"_mask").removeNode(true);nt=null;}
catch(e){}}
oUL=null;}
this.timer=-1;this.timer=window.setTimeout("document.getElementById('"+this.id+"').className='dditem_out'",150);if(typeof customOut!="undefined")customOut(this.id);return;}
function dd_li_top_focus()
{this.className="ddtopitem_over";}
function dd_li_top_blur()
{this.className="ddtopitem";}
function dd_li_focus()
{this.className="dditem_over";}
function dd_li_blur()
{this.className="dditem_out";}
function DropdownMenuChangeNode(startNode)
{var childNodes=startNode.childNodes;var l=childNodes.length;var n=null;var aCurrStyles={};var oMenuItem=null;for(var i=0;i<l;i++)
{n=childNodes[i];if(n.nodeName=="A"&&n.className=="ddtoplink")
{n.onclick=dd_a_top_click;n.onmouseover=dd_a_top_over;n.onmouseout=dd_a_top_out;this.setSpecificStyleProps("normal",n);}
else if(n.nodeName=="A")
{n.onclick=dd_a_click;n.onmouseover=dd_a_over;n.onmouseout=dd_a_out;this.setSpecificStyleProps("normal",n);}
else if(n.nodeName=="LI"&&n.className=="ddtopitem")
{if(typeof Browser!="undefined"&&Browser.firefox)
{n.onfocus=dd_li_top_focus;n.onblur=dd_li_top_blur;}
if(typeof Browser!="undefined"&&Browser.ie)
n.onmouseenter=dd_li_top_over;else
n.onmouseover=dd_li_top_over;if(typeof Browser!="undefined"&&Browser.ie)
n.onmouseleave=dd_li_top_out;else
n.onmouseout=dd_li_top_out;this.setSpecificStyleProps("normal",n);this.changeNode(n);}
else if(n.nodeName=="LI"&&n.className=="dditem")
{if(typeof Browser!="undefined"&&Browser.firefox)
{n.onfocus=dd_li_focus;n.onblur=dd_li_blur;}
if(typeof Browser!="undefined"&&Browser.ie)
n.onmouseenter=dd_li_over;else
n.onmouseover=dd_li_over;if(typeof Browser!="undefined"&&Browser.ie)
n.onmouseleave=dd_li_out;else
n.onmouseout=dd_li_out;n.onclick=dd_li_click;this.setSpecificStyleProps("normal",n);this.changeNode(n);}
else if(n.nodeName=="UL")
{this.changeNode(n);}}
return;}
function upFlatMenu()
{this.menuType=0;this.orientation=0;this.align=0;this.htmlCode="";}
upFlatMenu.prototype=new upMenu();upFlatMenu.prototype.processMenu=FlatMenuProcessMenu;upFlatMenu.prototype.renderMenuItem=FlatMenuRenderMenuItem;upFlatMenu.prototype.renderMenuItemLink=FlatMenuRenderMenuItemLink;upFlatMenu.prototype.renderSeparatorMenuItem=FlatMenuRenderSeparatorMenuItem;upFlatMenu.prototype._renderSeparatorMenuItem=FlatMenu_renderSeparatorMenuItem;upFlatMenu.prototype.renderLevel1Margin=FlatMenuRenderLevel1Margin;upFlatMenu.prototype.initStyles=FlatMenuInitStyles;upFlatMenu.prototype.adjustMenu=FlatMenuAdjustMenu;upFlatMenu.prototype.rewrite=FlatMenuRewrite;function FlatMenuRewrite(startId,id)
{var oContainer=this.oHtml;if(!oContainer)return;this.htmlCode="";if(startId!="")
this.processMenu(startId);oContainer.innerHTML=this.htmlCode;this.htmlCode="";this.startId=startId;this.oLastClickedItem=null;if(startId!="")
this.oStartMenuItem=this.getItemById(startId);else
this.oStartMenuItem=null;this.initStyles();if(arguments.length>1&&id!="")
{this.reset("","",id);}}
function FlatMenuAdjustMenu(menuPath)
{var frameMenuPath="";if((menuPath.length-this.getFirstMenuLevel())>-1)
frameMenuPath=menuPath.slice(0,menuPath.length-this.getFirstMenuLevel());else
frameMenuPath=new Array();if(frameMenuPath.length>0)
{changeToClick(frameMenuPath[frameMenuPath.length-1]);}}
function FlatMenuInitStyles()
{if(this.oStartMenuItem!=null&&this.oStartMenuItem.upType=="upContainerMenuItem")
{var aChildren=this.oStartMenuItem.aChildren;for(var i=0;i<aChildren.length;i++)
{aChildren[i].initSpecificStyleProps(this);}}
return;}
function FlatMenuRenderLevel1Margin(menuItem)
{if(!menuItem.isLastChild()&&this.level1Margin>0)
{if(this.orientation==0)
{this.htmlCode+='<td><img alt="" style="border:0px;" height="1" width="'+this.level1Margin+'" src="'+this.images.imgSrcBlank+'" />';this.htmlCode+='</td>';}
else
{this.htmlCode+='<tr><td><img alt="" style="border:0px;" width="1" height="'+this.level1Margin+'" src="'+this.images.imgSrcBlank+'" />';this.htmlCode+='</td></tr>';}}}
function FlatMenuProcessMenu(startId)
{var oStartMenuItem=this.getItemById(startId);if(oStartMenuItem!=null&&oStartMenuItem.upType=="upContainerMenuItem"&&oStartMenuItem.aChildren.length>0)
{if(this.orientation==0)
{this.htmlCode+='<table border="0" id="CONT_'+this.startId+'" cellspacing="0" cellpadding="0"';if(this.align==1)
this.htmlCode+=' style="margin-left:auto;margin-right:auto;"';else if(this.align==2)
this.htmlCode+=' style="margin-left:auto;margin-right:0;"';this.htmlCode+='><tr>';for(var i=0;i<oStartMenuItem.aChildren.length;i++)
{var child=oStartMenuItem.aChildren[i];if(child.upType=="upContainerMenuItem")
this.renderMenuItem(child);else if(child.upType=="upApplicationMenuItem")
this.renderMenuItem(child);else if(child.upType=="upLinkMenuItem")
this.renderMenuItem(child);else if(child.upType=="upSeparatorMenuItem")
this.renderSeparatorMenuItem(child);}
this.htmlCode+='</tr></table>';}
else
{this.htmlCode+='<table id="CONT_'+this.startId+'" width="100%" border="0" cellpadding="0" cellspacing="0">';for(var i=0;i<oStartMenuItem.aChildren.length;i++)
{var child=oStartMenuItem.aChildren[i];if(child.upType=="upContainerMenuItem")
this.renderMenuItem(child);else if(child.upType=="upApplicationMenuItem")
this.renderMenuItem(child);else if(child.upType=="upLinkMenuItem")
this.renderMenuItem(child);else if(child.upType=="upSeparatorMenuItem")
this.renderSeparatorMenuItem(child);}
this.htmlCode+='</table>';}}}
function FlatMenuRenderMenuItem(menuItem)
{if(this.orientation==0)
{this.htmlCode+='<td><table id="CONT_'+menuItem.id+'" cellspacing="0" cellpadding="0" border="0" class="'+this.cssClasses.BGmenuOutClass+'">';this.htmlCode+='<tr><td style="text-align:left;white-space:nowrap;">';this.renderMenuItemLink(menuItem);this.htmlCode+='</td></tr></table></td>';}
else
{this.htmlCode+='<tr><td id="CONT_'+menuItem.id+'" class="'+this.cssClasses.BGmenuOutClass+'">';this.renderMenuItemLink(menuItem);this.htmlCode+='</td></tr>';}
this.renderLevel1Margin(menuItem);}
function FlatMenuRenderMenuItemLink(menuItem)
{var targetFrame="";if((menuItem.upType=="upApplicationMenuItem"||menuItem.upType=="upLinkMenuItem")&&menuItem.bOpenNewWindow)
targetFrame="_blank";else
targetFrame=this.stageFrameName;this.htmlCode+='<a id="A_'+menuItem.id+'" class="'+this.cssClasses.FGmenuOutClass+'" onmouseover="changeToHover(\''+menuItem.id+'\');"';this.htmlCode+=' onmouseout="changeToOut(\''+menuItem.id+'\');" onfocus="hf(this);"'
this.htmlCode+=' target="'+targetFrame+'" ';if(this.childMenuName!="")
this.htmlCode+=' onclick="clickItem(\''+menuItem.id+'\');';else
this.htmlCode+=' onclick="changeToClick(\''+menuItem.id+'\');';if((menuItem.upType=="upApplicationMenuItem"||menuItem.upType=="upContainerMenuItem")&&!this.bFrames&&!menuItem.bOpenNewWindow)
{this.htmlCode+=this.getStageLoader(menuItem);}
else if(menuItem.upType=="upLinkMenuItem"&&!this.bFrames&&!menuItem.bOpenNewWindow)
{this.htmlCode+=this.getStageLoaderExternalUrl(menuItem);}
this.htmlCode+='" ';this.htmlCode+=' href="';this.htmlCode+=menuItem.getUrl(this);this.htmlCode+='">'+Helper.htmlEncode(menuItem.name);this.htmlCode+='</a>';}
function FlatMenuRenderSeparatorMenuItem(menuItem)
{var oPrevious=menuItem.getPreviousSibling();if(oPrevious==null||(oPrevious!=null&&oPrevious.upType!="upSeparatorMenuItem"))
{if(this.orientation==0)
{this._renderSeparatorMenuItem(menuItem);}
else
{this.htmlCode+='<tr>';this._renderSeparatorMenuItem(menuItem);this.htmlCode+='</tr>';}
this.renderLevel1Margin(menuItem);}}
function FlatMenu_renderSeparatorMenuItem(menuItem)
{this.htmlCode+='<td id=" + menuItem.id + " style="';if(this.orientation==0)
{this.htmlCode+='vertical-align:';switch(this.separator.align)
{case 0:this.htmlCode+='top';break;case 2:this.htmlCode+='bottom';break;default:this.htmlCode+='middle';break;}}
else
{this.htmlCode+='text-align:';switch(this.separator.align)
{case 1:this.htmlCode+='center';break;case 2:this.htmlCode+='right';break;default:this.htmlCode+='left';break;}}
this.htmlCode+=';">';this.htmlCode+='<img alt="" id="IMG_'+menuItem.id+'" src="'+this.separator.image+'"';this.htmlCode+=' style="border:0px;margin-left:'+this.separator.paddingLeft+'px;margin-right:'+this.separator.paddingRight+'px;">';this.htmlCode+='</td>';}
function upTreeMenu()
{this.menuType=1;}
upTreeMenu.prototype=new upMenu();upTreeMenu.prototype.processMenu=TreeMenuProcessMenu;upTreeMenu.prototype.renderMenuItem=TreeMenuRenderMenuItem;upTreeMenu.prototype.renderSeparatorMenuItem=TreeMenuRenderSeparatorMenuItem;upTreeMenu.prototype.renderLevel1Margin=TreeMenuRenderLevel1Margin;upTreeMenu.prototype.initStyles=TreeMenuInitStyles;upTreeMenu.prototype.adjustMenu=TreeMenuAdjustMenu;upTreeMenu.prototype.rewrite=TreeMenuRewrite;upTreeMenu.prototype.writeChildren=TreeMenuWriteChildren;function TreeMenuRewrite(startId,id)
{var oContainer=this.oHtml;if(!oContainer)return;if(startId!="")
{aCode=new Array();if(this.parentMenuName!=""&&typeof oHtmlRoot.oUp.oRegistry.oMenuReg[this.parentMenuName]!="undefined"&&oHtmlRoot.oUp.oRegistry.oMenuReg[this.parentMenuName].menuType=="2")
{this.setMenuPathById(startId);var menuPath=this.menuPath;this.startMenuLevel=menuPath.length-1;}
this.processMenu(startId,"");oContainer.innerHTML=aCode.join("");aCode=new Array();}
else
{oContainer.innerHTML="";}
this.startId=startId;this.oLastClickedItem=null;if(startId!="")
this.oStartMenuItem=this.getItemById(startId);else
this.oStartMenuItem=null;this.initStyles();if(arguments.length>1&&id!="")
{this.reset("","",id);}}
function TreeMenuWriteChildren(id)
{var oMenuItem=this.getItemById(id);var oContainer=Browser.getRef("CHILDREN_"+id);if(!oContainer)return;aCode=new Array();this.processMenu(id,oMenuItem.childIndent);oContainer.innerHTML=aCode.join("");aCode=new Array();this.initStyles(id);}
function TreeMenuAdjustMenu(menuPath)
{var frameMenuPath="";if((menuPath.length-this.getFirstMenuLevel())>-1)
frameMenuPath=menuPath.slice(0,menuPath.length-this.getFirstMenuLevel());else
frameMenuPath=new Array();if(frameMenuPath.length>0)
{var id=frameMenuPath[frameMenuPath.length-1];var oMenuItem=this.getItemById(id);if(oMenuItem)
{this.collapse();if(oMenuItem.upType=="upApplicationMenuItem"||oMenuItem.upType=="upLinkMenuItem")
{changeToClick(frameMenuPath[frameMenuPath.length-1]);}
else if(oMenuItem.upType=="upContainerMenuItem")
{var id2=frameMenuPath[0]
oMenuItem.deepShowChildren(this,frameMenuPath);changeToClick(id2);var oMenuItem2=this.getItemById(id2);if(oMenuItem2.upType=="upContainerMenuItem")
{oMenuItem2.showChildren(this);}}}}}
function TreeMenuInitStyles(id)
{if(arguments.length==0)oStartMenuItem=this.oStartMenuItem
else oStartMenuItem=this.getItemById(id);if(oStartMenuItem!=null&&oStartMenuItem.upType=="upContainerMenuItem")
{var aChildren=oStartMenuItem.aChildren;for(var i=0;i<aChildren.length;i++)
{oChild=aChildren[i];if(oChild.upType=="upContainerMenuItem")
oChild.deepInitSpecificStyleProps(this);else
oChild.initSpecificStyleProps(this);}}
return;}
function TreeMenuProcessMenu(startId,indent)
{var oStartMenuItem=this.getItemById(startId);if(oStartMenuItem!=null&&oStartMenuItem.upType=="upContainerMenuItem"&&oStartMenuItem.aChildren.length>0)
{for(var i=0;i<oStartMenuItem.aChildren.length;i++)
{var child=oStartMenuItem.aChildren[i];if(child.upType=="upContainerMenuItem"||child.upType=="upApplicationMenuItem"||child.upType=="upLinkMenuItem")
{this.renderMenuItem(child,indent);}
else if(child.upType=="upSeparatorMenuItem")
{this.renderSeparatorMenuItem(child);}}}}
function TreeMenuRenderMenuItem(menuItem,indent)
{var targetFrame="";if((menuItem.upType=="upApplicationMenuItem"||menuItem.upType=="upLinkMenuItem")&&menuItem.bOpenNewWindow)
targetFrame="_blank";else
targetFrame=this.stageFrameName;var iconSrc="";var style="";if(menuItem.level==this.getFirstMenuLevel())
{if(menuItem.upType=="upContainerMenuItem"&&menuItem.aChildren.length>0)
{iconSrc=this.images.imgSrcPlusRoot;}
else
{iconSrc=this.images.imgSrcRootNoChild;}}
else
{if(!menuItem.isLastChild())
{style="background-image:url("+this.images.imgSrcTreeBar+");background-position:right;background-repeat:repeat-y;";}
if(menuItem.upType=="upContainerMenuItem"&&menuItem.aChildren.length>0)
{iconSrc=this.images.imgSrcPlusCorner;}
else
{iconSrc=this.images.imgSrcTreeCorner;}}
aCode.push('<table id="CONT_'+menuItem.id+'" class="'+this.cssClasses.BGmenuOutClass+'" cellspacing="0" cellpadding="0" width="100%"><tr><td style="width:100%;"><table cellspacing="0" cellpadding="0" width="100%"><tr>');aCode.push(indent+'<td valign="top"');if(style!="")
aCode.push(' style="'+style+'"');aCode.push('>');if(menuItem.upType=="upContainerMenuItem"&&menuItem.aChildren.length>0)
{if(menuItem.isLastChild()||menuItem.level==this.getFirstMenuLevel())
{childIndent=indent+'<td><img alt="" src="'+this.images.imgSrcBlank+'" style="border:0px;"/></td>';}
else
{childIndent=indent+'<td style="background-image:url('+this.images.imgSrcTreeBar+');background-position:right;background-repeat:repeat-y;"><img alt="" src="'+this.images.imgSrcBlank+'" style="border:0px;"/></td>';}
menuItem.childIndent=childIndent;}
if(menuItem.upType=="upContainerMenuItem"&&iconSrc.indexOf("blank.gif")==-1)
{aCode.push('<a id="A_IMG_'+menuItem.id+'" style="outline-style:none;" onfocus="hf(this);" href="#" onclick="tC(\''+menuItem.id+'\');return false;"><img alt="" id="IMG_'+menuItem.id+'" style="border:0px;" src="'+iconSrc+'"/></a>');}
else
{aCode.push('<img alt="" id="IMG_'+menuItem.id+'" style="border:0px;" src="'+iconSrc+'"/>');}
aCode.push('</td><td style="width:100%;text-align:left;" valign="middle"');aCode.push('">');aCode.push('<a id="A_'+menuItem.id+'" class="'+this.cssClasses.FGmenuOutClass+'"');aCode.push(' onmouseover="cTH(\''+menuItem.id+'\');" onmouseout="cTO(\''+menuItem.id+'\');" onfocus="hf(this);" href="');aCode.push(menuItem.getUrl(this));aCode.push('" target="'+targetFrame+'" onclick="');if(menuItem.upType=="upContainerMenuItem")
aCode.push('sC(\''+menuItem.id+'\');');aCode.push('cTC(\''+menuItem.id+'\');');if((menuItem.upType=="upApplicationMenuItem"||menuItem.upType=="upContainerMenuItem")&&!this.bFrames&&!menuItem.bOpenNewWindow)
{aCode.push(this.getStageLoader(menuItem));}
else if(menuItem.upType=="upLinkMenuItem"&&!this.bFrames&&!menuItem.bOpenNewWindow)
{aCode.push(this.getStageLoaderExternalUrl(menuItem));}
aCode.push(';">');aCode.push(Helper.htmlEncode(menuItem.name));aCode.push('</a></td></tr></table></td></tr></table>');if(menuItem.upType=="upContainerMenuItem"&&menuItem.aChildren.length>0)
{aCode.push('<div id="CHILDREN_'+menuItem.id+'" style="visibility:hidden;display:none;"></div>');}
this.renderLevel1Margin(menuItem);}
function TreeMenuRenderSeparatorMenuItem(menuItem)
{var oPrevious=menuItem.getPreviousSibling();if(oPrevious==null||(oPrevious!=null&&oPrevious.upType!="upSeparatorMenuItem"))
{aCode.push('<table id="CONT_'+menuItem.id+'" border="0" cellspacing="0" cellpadding="0" width="100%">');aCode.push('<tr><td><img alt="" src="'+this.images.imgSrcBlank+'" style="border:0px;"/></td><td style="width:100%;text-align:');switch(this.separator.align)
{case 1:aCode.push('center');break;case 2:aCode.push('right');break;default:aCode.push('left');break;}
aCode.push(';"><img alt="" id="IMG_'+menuItem.id+'" src="'+this.separator.image+'" style="border:0px;margin-left:'+this.separator.paddingLeft+'px;margin-right:'+this.separator.paddingRight+'px;margin-top:'+this.separator.paddingTop+'px;margin-bottom:'+this.separator.paddingBottom+'px;"></td></tr></table>');this.renderLevel1Margin(menuItem);}}
function TreeMenuRenderLevel1Margin(menuItem)
{if(menuItem.level==this.getFirstMenuLevel()&&!menuItem.isLastChild()&&this.level1Margin>0)
{aCode.push('<table id="SPACER_'+menuItem.id+'" border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td><img alt="" style="border:0px;" height="'+this.level1Margin+'" src="images/1px.gif" /></td></tr></table>');}}
