
var oly_COL_DELIMITER=String.fromCharCode(16);var oly_ROW_DELIMITER=String.fromCharCode(15);window.onload=__oly_Page_OnLoad;function __oly_ClientAPIEnabled(){return typeof(oly)!='undefined';};function __oly_Page_OnLoad(){if(__oly_ClientAPIEnabled()){var sLoadHandlers=oly.getVar('__oly_pageload');if(sLoadHandlers!=null)eval(sLoadHandlers);}};function __oly_KeyDown(iKeyCode,sFunc,e){if(e==null)e=window.event;if(e.keyCode==iKeyCode){eval(unescape(sFunc));return false;}};function __oly_bodyscroll(){var oF=document.forms[0];oF.ScrollTop.value=Body.scrollTop;};function __oly_SetInitialFocus(sID){var oCtl=oly.dom.getById(sID);if(oCtl!=null&&__oly_CanReceiveFocus(oCtl))oCtl.focus();};function __oly_CanReceiveFocus(e){if(e.style.display!='none'&&e.tabIndex>-1&&e.disabled==false&&e.style.visible!='hidden'){var eParent=e.parentElement;while(eParent!=null&&eParent.tagName!='BODY'){if(eParent.style.display=='none'||eParent.disabled||eParent.style.visible=='hidden')return false;eParent=eParent.parentElement;}return true;}else return false;};function __oly_ContainerMaxMin_OnClick(oLnk,sContentID){var oContent=oly.dom.getById(sContentID);if(oContent!=null){var oBtn=oLnk.childNodes[0];var sContainerID=oLnk.getAttribute('containerid');var sCookieID=oLnk.getAttribute('cookieid');var sCurrentFile=oBtn.src.toLowerCase().substr(oBtn.src.lastIndexOf('/'));var sMaxFile;var sMaxIcon;var sMinIcon;if(oly.getVar('min_icon_'+sContainerID))sMinIcon=oly.getVar('min_icon_'+sContainerID);else sMinIcon=oly.getVar('min_icon');if(oly.getVar('max_icon_'+sContainerID))sMaxIcon=oly.getVar('max_icon_'+sContainerID);else sMaxIcon=oly.getVar('max_icon');sMaxFile=sMaxIcon.toLowerCase().substr(sMaxIcon.lastIndexOf('/'));if(sCurrentFile==sMaxFile){oBtn.src=sMinIcon;oContent.style.display='';oBtn.title=oly.getVar('min_text');if(sCookieID!=null){oly.dom.setCookie(sCookieID,'true',365);}else oly.setVar('__oly_'+sContainerID+'_Visible','true');}else{oBtn.src=sMaxIcon;oContent.style.display='none';oBtn.title=oly.getVar('max_text');if(sCookieID!=null){oly.dom.setCookie(sCookieID,'false',365);}else oly.setVar('__oly_'+sContainerID+'_Visible','false');}return true;}return false;};function __oly_Help_OnClick(sHelpID){var oHelp=oly.dom.getById(sHelpID);if(oHelp!=null){if(oHelp.style.display=='none')oHelp.style.display='';else oHelp.style.display='none';return true;}return false;};function __oly_SectionMaxMin(oBtn,sContentID){var oContent=oly.dom.getById(sContentID);if(oContent!=null){var sMaxIcon=oBtn.getAttribute('max_icon');var sMinIcon=oBtn.getAttribute('min_icon');if(oContent.style.display=='none'){oBtn.src=sMinIcon;oContent.style.display='';oly.setVar(oBtn.id+':exp',1);}else{oBtn.src=sMaxIcon;oContent.style.display='none';oly.setVar(oBtn.id+':exp',0);}return true;}return false;};function __oly_enableDragDrop(){var aryConts=oly.getVar('__oly_dragDrop').split(";");var aryTitles;for(var i=0;i<aryConts.length;i++){aryTitles=aryConts[i].split(" ");if(aryTitles[0].length>0){var oCtr=oly.dom.getById(aryTitles[0]);var oTitle=oly.dom.getById(aryTitles[1]);if(oCtr!=null&&oTitle!=null){oCtr.setAttribute('moduleid',aryTitles[2]);oly.dom.positioning.enableDragAndDrop(oCtr,oTitle,'__oly_dragComplete()','__oly_dragOver()');}}}};var __oly_oPrevSelPane;var __oly_oPrevSelModule;var __oly_dragEventCount=0;function __oly_dragOver(){__oly_dragEventCount++;if(__oly_dragEventCount%75!=0)return;var oCont=oly.dom.getById(oly.dom.positioning.dragCtr.contID);var oPane=__oly_getMostSelectedPane(oly.dom.positioning.dragCtr);if(__oly_oPrevSelPane!=null)__oly_oPrevSelPane.pane.style.border=__oly_oPrevSelPane.origBorder;if(oPane!=null){__oly_oPrevSelPane=oPane;oPane.pane.style.border='4px double '+oly_HIGHLIGHT_COLOR;var iIndex=__oly_getPaneControlIndex(oCont,oPane);var oPrevCtl;var oNextCtl;for(var i=0;i<oPane.controls.length;i++){if(iIndex>i&&oPane.controls[i].id!=oCont.id)oPrevCtl=oPane.controls[i];if(iIndex<=i&&oPane.controls[i].id!=oCont.id){oNextCtl=oPane.controls[i];break;}}if(__oly_oPrevSelModule!=null)oly.dom.getNonTextNode(__oly_oPrevSelModule.control).style.border=__oly_oPrevSelModule.origBorder;if(oNextCtl!=null){__oly_oPrevSelModule=oNextCtl;oly.dom.getNonTextNode(oNextCtl.control).style.borderTop='5px groove '+oly_HIGHLIGHT_COLOR;}else if(oPrevCtl!=null){__oly_oPrevSelModule=oPrevCtl;oly.dom.getNonTextNode(oPrevCtl.control).style.borderBottom='5px groove '+oly_HIGHLIGHT_COLOR;}}};function __oly_dragComplete(){var oCtl=oly.dom.getById(oly.dom.positioning.dragCtr.contID);var sModuleID=oCtl.getAttribute('moduleid');if(__oly_oPrevSelPane!=null)__oly_oPrevSelPane.pane.style.border=__oly_oPrevSelPane.origBorder;if(__oly_oPrevSelModule!=null)oly.dom.getNonTextNode(__oly_oPrevSelModule.control).style.border=__oly_oPrevSelModule.origBorder;var oPane=__oly_getMostSelectedPane(oly.dom.positioning.dragCtr);var iIndex;if(oPane==null){var oPanes=__oly_Panes();for(var i=0;i<oPanes.length;i++){if(oPanes[i].id==oCtl.parentNode.id)oPane=oPanes[i];}}if(oPane!=null){iIndex=__oly_getPaneControlIndex(oCtl,oPane);__oly_MoveToPane(oPane,oCtl,iIndex);oly.callPostBack('MoveToPane','moduleid='+sModuleID,'pane='+oPane.paneName,'order='+iIndex*2);}};function __oly_MoveToPane(oPane,oCtl,iIndex){if(oPane!=null){var aryCtls=new Array();for(var i=iIndex;i<oPane.controls.length;i++){if(oPane.controls[i].control.id!=oCtl.id)aryCtls[aryCtls.length]=oPane.controls[i].control;oly.dom.removeChild(oPane.controls[i].control);}oly.dom.appendChild(oPane.pane,oCtl);oCtl.style.top=0;oCtl.style.left=0;oCtl.style.position='relative';for(var i=0;i<aryCtls.length;i++){oly.dom.appendChild(oPane.pane,aryCtls[i]);}__oly_RefreshPanes();}else{oCtl.style.top=0;oCtl.style.left=0;oCtl.style.position='relative';}};function __oly_RefreshPanes(){var aryPanes=oly.getVar('__oly_Panes').split(';');var aryPaneNames=oly.getVar('__oly_PaneNames').split(';');__oly_m_aryPanes=new Array();for(var i=0;i<aryPanes.length;i++){if(aryPanes[i].length>0)__oly_m_aryPanes[__oly_m_aryPanes.length]=new __oly_Pane(oly.dom.getById(aryPanes[i]),aryPaneNames[i]);}};var __oly_m_aryPanes;var __oly_m_aryModules;function __oly_Panes(){if(__oly_m_aryPanes==null){__oly_m_aryPanes=new Array();__oly_RefreshPanes();}return __oly_m_aryPanes;};function __oly_Modules(sModuleID){if(__oly_m_aryModules==null)__oly_RefreshPanes();return __oly_m_aryModules[sModuleID];};function __oly_getMostSelectedPane(oContent){var oCDims=new oly.dom.positioning.dims(oContent);var iTopScore=0;var iScore;var oTopPane;for(var i=0;i<__oly_Panes().length;i++){var oPane=__oly_Panes()[i];var oPDims=new oly.dom.positioning.dims(oPane.pane);iScore=oly.dom.positioning.elementOverlapScore(oPDims,oCDims);if(iScore>iTopScore){iTopScore=iScore;oTopPane=oPane;}}return oTopPane;};function __oly_getPaneControlIndex(oContent,oPane){if(oPane==null)return;var oCDims=new oly.dom.positioning.dims(oContent);var oCtl;if(oPane.controls.length==0)return 0;for(var i=0;i<oPane.controls.length;i++){oCtl=oPane.controls[i];var oIDims=new oly.dom.positioning.dims(oCtl.control);if(oCDims.t<oIDims.t)return oCtl.index;}if(oCtl!=null)return oCtl.index+1;else return 0;};function __oly_Pane(ctl,sPaneName){this.pane=ctl;this.id=ctl.id;this.controls=new Array();this.origBorder=ctl.style.border;this.paneName=sPaneName;var iIndex=0;var strModuleOrder='';for(var i=0;i<ctl.childNodes.length;i++){var oNode=ctl.childNodes[i];if(oly.dom.isNonTextNode(oNode)){if(__oly_m_aryModules==null)__oly_m_aryModules=new Array();var sModuleID=oNode.getAttribute('moduleid');if(sModuleID!=null&&sModuleID.length>0){strModuleOrder+=sModuleID+'~';this.controls[this.controls.length]=new __oly_PaneControl(oNode,iIndex);__oly_m_aryModules[sModuleID]=oNode.id;iIndex+=1;}}}this.moduleOrder=strModuleOrder;};function __oly_PaneControl(ctl,iIndex){this.control=ctl;this.id=ctl.id;this.index=iIndex;this.origBorder=ctl.style.border;} 