var ns4=(document.layers)?true:false;var ns6=(!document.all && document.getElementById)?true:false;var ns7= false;if (ns6){  var cStr;cStr = new String(navigator.userAgent);if (cStr.indexOf("/7") != -1){ns7 = true; ns6 = false; } }var opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var ie=(document.all)?true:false;var safari  =(navigator.userAgent.indexOf("Safari")!=-1)?true:false;var mozilla = false;if (ns6 || ns7){mozilla = (navigator.userAgent.indexOf("Netscape")==-1)?true:false; }var win = true;var mac = (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)?true:false;if(mac){ win = false; }if (opera){ ns4 = false;ns6 = false;  ns7 = false; ie = false;mozilla = false;}if (mozilla) { ns4 = false;ns6 = false;  ns7 = false; ie = false;opera = false;}var g_cImageEmpty = './Pictures/Empty.gif';var g_cImageSubMenuVert = './Pictures/Sub_Vert.gif';var g_cImageSubMenuHor  = './Pictures/Sub_Hor.gif';var g_nImageDefaultWidth= 20;var g_cIDSeparator= (ns4)?'_':'-';var g_bScrolling  = true;var g_nTopScrollPos  = 0;var g_bFixSelectIE= false;var g_nFixPosLoop = 0;var g_stSubMenu_XYVariation  = '0;#;0';var g_nSubMenu_Height  = 22;var g_nSubMenu_Width= 100;var g_bSubMenu_Vert = true;var g_stSubMenu_Style  = 'TestStyle;#;;#;';var g_stSubMenu_Shadow = "#000000;#;5;#;5";var g_stSubMenu_Layout = ';#;;#;;#;;#;';var g_nSubMenu_Close= 2000;var g_cTreeNode = '<img src="./Pictures/Tree_node.gif" align="absmiddle" border="0">';var g_cTreeVLine= '<img src="./Pictures/Tree_vertline.gif" align="absmiddle" border="0">';var g_cTreeFolder  = '<img src="./Pictures/Tree_Folder.gif" align="absmiddle" border="0">';var g_cTreeFile = '<img src="./Pictures/Tree_File.gif" align="absmiddle" border="0">';var g_cTreeLNode= '<img src="./Pictures/Tree_lastnode.gif" align="absmiddle" border="0">';var g_cTreeEmpty= '<img src="./Pictures/Tree_blank.gif" align="absmiddle" border="0">';var g_cTreeExpand  = '<img src="./Pictures/Tree_Expand.gif" align="absmiddle" border="0">';var g_cTreeCollapse= '<img src="./Pictures/Tree_Collapse.gif" align="absmiddle" border="0">';var g_cTreeExtend  = '<img src="./Pictures/Tree_Extend.gif" align="absmiddle" border="0">';var g_nMenuIndex = -1;var g_oMenu = new Array();var g_const_nMenuItem = 0;var g_const_nMenuBox  = 1;var g_const_nMenuClassic= 0;var g_const_nMenuhierarchical = 1;function MenuItem(_cID , _cText, _stStyle , _cIcon , _bLink){ this.m_cID  = MenuConvertToRightID(_cID);this.m_cText= _cText;this.m_cIcon= _cIcon;this.m_bLink= _bLink;this.m_cStyle = MenuExtractString(_stStyle , 0 , ';#;');this.m_cOperaOver= MenuExtractString(_stStyle , 1 , ';#;');this.m_cOperaNormal = MenuExtractString(_stStyle , 2 , ';#;');this.m_oContent = null;this.AddSub  = _AddSub;function _AddSub(_cID ,_nX , _nY , _stVariation , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cTitle){if( this.m_oContent == null ) {this.m_oContent = new MenuBox(_cID ,_nX , _nY , _stVariation , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cTitle); } } }function MenuBox(_cID , _nX , _nY , _stVariation , _nHeight , _nWidth , _bVert , _stStyle , _stShadow , _cLayout , _cTitle){ this.m_cID  = MenuConvertToRightID(_cID);this.m_nPosX= _nX;this.m_nPosY= _nY;this.m_nHeight = _nHeight;this.m_nWidth  = _nWidth;this.m_bPosValidated = false;this.m_bVert= _bVert;this.m_cStyle = MenuExtractString(_stStyle , 0 , ';#;');this.m_cOperaOver= MenuExtractString(_stStyle , 1 , ';#;');this.m_cOperaNormal = MenuExtractString(_stStyle , 2 , ';#;');this.m_cLayout= '';this.m_bShadowFlag  = false;this.m_cTitle = _cTitle;if(_cLayout == ';#;;#;;#;;#;'){this.m_cShadowColor  = MenuExtractString(_stShadow , 0 , ';#;'); this.m_nShadowIncreaseHor  = parseInt(MenuExtractString(_stShadow , 1 , ';#;')); this.m_nShadowIncreaseVert = parseInt(MenuExtractString(_stShadow , 2 , ';#;')); if (this.m_cShadowColor != '') {  this.m_bShadowFlag  = true; } }else {_cLayout = MenuReplaceStr(_cLayout , '<%TITLE%>' , this.m_cTitle);this.m_cLayout  = MenuExtractString(_cLayout , 0 , ';#;');this.m_cLayoutTop  = parseInt(MenuExtractString(_cLayout , 1 , ';#;'));this.m_cLayoutBottom  = parseInt(MenuExtractString(_cLayout , 2 , ';#;'));this.m_cLayoutLeft = parseInt(MenuExtractString(_cLayout , 3 , ';#;'));this.m_cLayoutRight= parseInt(MenuExtractString(_cLayout , 4 , ';#;')); }this.m_nLayoutXVariation = parseInt(MenuExtractString(_stVariation , 0 , ';#;'));this.m_nLayoutYVariation = parseInt(MenuExtractString(_stVariation , 1 , ';#;'));this.m_bIcon= false;this.m_nIconWidth = 0;this.m_oElements = new Array();this.m_nElements = -1;this.m_lElements = new String('');this.AddItem  = _AddItem;this.GetImageWidth  = _GetImageWidth;function _AddItem(_cID , _cText, _stStyle , _cIcon , _bLink){  var nTempWidth = 0;this.m_nElements ++;this.m_oElements[ this.m_nElements ] = new MenuItem(_cID , _cText, _stStyle , _cIcon , _bLink);this.m_lElements += '('+ _cID +')'+ this.m_nElements +';';if(_cIcon != '' && _cIcon != null){this.m_bIcon = true; nTempWidth = this.GetImageWidth(_cIcon); if( nTempWidth > this.m_nIconWidth ) { this.m_nIconWidth = nTempWidth; } if( this.m_nIconWidth <= 0) this.m_nIconWidth = g_nImageDefaultWidth; } }function _GetImageWidth(_cSrc){var oTmpImg = new Image(); oTmpImg.src = _cSrc; return oTmpImg.width; } }function Menu( _cID ,_nX , _nY , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cRelativeTagID , _stVariation , _nMenuType){var oField;this.m_cID= MenuConvertToRightID(_cID);this.m_nType = _nMenuType;this.m_bRelativePosition = false;if (_cRelativeTagID != '' && _cRelativeTagID != null && _cRelativeTagID){  oField = GetElement(_cRelativeTagID);if(oField){this.m_bRelativePosition = true; this.m_bRelativeTagID = _cRelativeTagID; window.onresize = MenuWinResize; } }this.m_bToClose = false;this.m_nTimeoutClose  = 0;this.m_nTimeoutExtend = 0;this.m_cOpened  = '';this.m_ReducedSize = _nWidth;this.m_oContent = new MenuBox(_cID ,_nX , _nY , ';#;' , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout);this.AddItem  = _AddItem;this.GetObject= _GetObject;this.AddSub= _AddSub;this.ExistSub = _ExistSub;this.GenerateSyntax = _GenerateSyntax;this.GenerateSyntaxClassic= _GenerateSyntaxClassic;this.GenerateSyntaxHierarchical = _GenerateSyntaxHierarchical;this.ChangeStyle = _ChangeStyle;this.ChangeState = _ChangeState;this.ChangePositon  = _ChangePositon;this.GetElementPosition= _GetElementPosition;this.ComputeRightPosition = _ComputeRightPosition;this.MenuEvt_On = _MenuEvt_On;this.MenuEvt_Out= _MenuEvt_Out;this.MenuEvt_Close = _MenuEvt_Close;this.MenuEvt_Move  = _MenuEvt_Move;this.MenuEvt_Scroll= _MenuEvt_Scroll;this.MenuEvt_Expand= _MenuEvt_Expand;this.MenuEvt_Collapse = _MenuEvt_Collapse;this.MenuEvt_Extend= _MenuEvt_Extend;this.MenuEvt_Reduce= _MenuEvt_Reduce;this.MenuEvt_WindowResize = _MenuEvt_WindowResize;if (_stVariation != '' && _stVariation != null && _stVariation){  this.m_nLayoutXVariation = parseInt(MenuExtractString(_stVariation , 0 , ';#;'));this.m_nLayoutYVariation = parseInt(MenuExtractString(_stVariation , 1 , ';#;')); }function _AddItem(_cIDParent , _cID , _cText, _stStyle , _cIcon , _bLink){  var oBox;oBox = this.GetObject(g_const_nMenuBox , _cIDParent);if (oBox != null){  oBox.AddItem(_cID , _cText, _stStyle , _cIcon , _bLink); } }function _AddSub(_cIDItem , _nX , _nY , _stVariation , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cTitle){  var oItem;oItem = this.GetObject(g_const_nMenuItem , _cIDItem);if (oItem != null){  oItem.AddSub(_cIDItem ,_nX , _nY , _stVariation , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cTitle); } }function _ExistSub(_cIDItem){  var oBox;oBox = this.GetObject(g_const_nMenuBox , _cIDItem);if (oBox == null){  return false; }else { return true; } }function _GetObject(_nType , _cID , _oCurContent){var oContent; var nIndex  = 0; var nIDLength  = 0; var cIDCompare = ''; var nPartID = 0; if(_cID == null || _cID == this.m_cID) {  switch(_nType) { case g_const_nMenuBox : return this.m_oContent; break;case g_const_nMenuItem : return this; break; } } else {  oContent = _oCurContent; if (oContent == null) {oContent = this.m_oContent; } if(oContent.m_nElements >= 0) {nIDLength  = MenuCountString(oContent.m_oElements[0].m_cID , g_cIDSeparator);  cIDCompare = '';  for (nPartID = 0 ; nPartID <= nIDLength ; nPartID ++)  {  if( cIDCompare != '') cIDCompare += g_cIDSeparator;  cIDCompare += MenuExtractString(_cID , nPartID , g_cIDSeparator); } } for( nIndex = 0 ; nIndex <= oContent.m_nElements ; nIndex++) {   if(oContent.m_oElements[nIndex].m_cID == _cID)  {  switch(_nType)  { case g_const_nMenuBox : return oContent.m_oElements[nIndex].m_oContent; break; case g_const_nMenuItem : return oContent.m_oElements[nIndex]; break; } }  else {  if (cIDCompare == oContent.m_oElements[nIndex].m_cID) { if( oContent.m_oElements[nIndex].m_oContent != null){ return this.GetObject(_nType , _cID , oContent.m_oElements[nIndex].m_oContent) } } } } } return null; }function _GenerateSyntax(_oCurContent){ if( this.m_nType == g_const_nMenuClassic){ return this.GenerateSyntaxClassic(_oCurContent); }else if( this.m_nType == g_const_nMenuhierarchical){ return this.GenerateSyntaxHierarchical(_oCurContent,null,null); }else { return ''; } }function _GenerateSyntaxClassic(_oCurContent){var cHTMLSyntax = ''; var nIndex= 0; var bRoot = false; var cVisibility = 'hidden'; var cAtagBefore = ''; var cAtagAfter  = ''; var cWrap = ''; var oContent; oContent = _oCurContent; if(_oCurContent == null) {oContent = this.m_oContent;  bRoot = true;  cVisibility = 'visible'; }if(oContent == null) return '';if(oContent.m_cLayout != ''){  if (g_bFixSelectIE){  cHTMLSyntax += '<IFRAME ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'DESIGNIFRAME" style="position: absolute; left:10; top:10; visibility:'+cVisibility+';" frameborder="0"></IFRAME>'; }cHTMLSyntax += '<DIV ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'DESIGN" ';cHTMLSyntax += ' style="position: absolute; ';cHTMLSyntax += ' left:0; ';cHTMLSyntax += ' top:0; ';cHTMLSyntax += ' visibility:'+cVisibility+'; ';cHTMLSyntax += ' height:10; ';cHTMLSyntax += ' Width:10;';cHTMLSyntax += '"';cHTMLSyntax += ' onmousemove="MenuMove(\'' + this.m_cID + '\');" ';cHTMLSyntax += ' onmouseout="MenuOut(\''+ this.m_cID + '\',\'' + oContent.m_cID + '\');" ';cHTMLSyntax += '>'+ oContent.m_cLayout +'</DIV>'; }if (g_bFixSelectIE){  cHTMLSyntax += '<IFRAME ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'IFRAME" style="position: absolute; left:10; top:10; visibility:'+cVisibility+';" frameborder="0"></IFRAME>'; }if (!bRoot){ if (oContent.m_bShadowFlag){  if (g_bFixSelectIE){  cHTMLSyntax += '<IFRAME ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'SHADOWIFRAME" style="position: absolute; left:10; top:10; visibility:'+cVisibility+';" frameborder="0"></IFRAME>'; }cHTMLSyntax += '<DIV ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'SHADOW" ';cHTMLSyntax += ' style="position: absolute; ';cHTMLSyntax += ' left:0; ';cHTMLSyntax += ' top:0; ';cHTMLSyntax += ' visibility:hidden; ';cHTMLSyntax += ' height:10; ';cHTMLSyntax += ' Width:10; ';cHTMLSyntax += ' background-color :' + oContent.m_cShadowColor+'; ';cHTMLSyntax += '"></DIV>'; } }if (ns4) {  cHTMLSyntax += '<LAYER ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +'" left="'+oContent.m_nPosX+'" top="'+oContent.m_nPosY+'" visibility="'+cVisibility+'";>';}else  {  cHTMLSyntax += '<DIV ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +'" style="position: absolute; left:'+oContent.m_nPosX+'; top:'+oContent.m_nPosY+'; visibility:'+cVisibility+';">';}  cHTMLSyntax +=  '<TABLE ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'TABLE"';  cHTMLSyntax +=  ' class="' + oContent.m_cStyle + '"';  if (ns7)  { cHTMLSyntax +=  ' Style="border : 0px Solid;"'; }  cHTMLSyntax +=  ' cellspacing="0" cellpadding="0" border="0" ';  if (!oContent.m_bVert) { cHTMLSyntax +=  '>'; } else { cHTMLSyntax +=  ' WIDTH="'+oContent.m_nWidth+'" >'; }  cHTMLSyntax += ' <TBODY>';  if (!oContent.m_bVert) { cHTMLSyntax += ' <TR>'; } for( nIndex = 0 ; nIndex <= oContent.m_nElements ; nIndex++) {   if (!oContent.m_bVert) { cHTMLSyntax += ' <TD WIDTH="'+oContent.m_nWidth+'">'; } else { cHTMLSyntax += ' <TR><TD>'; }  cHTMLSyntax +=  '<TABLE ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_oElements[nIndex].m_cID +g_cIDSeparator+'ELEMENT" ';  cHTMLSyntax +=  ' cellspacing="0" cellpadding="0" border="0" ';  cHTMLSyntax +=  ' height="'+oContent.m_nHeight+'"';  cHTMLSyntax +=  ' WIDTH="100%" ';  cHTMLSyntax +=  ' class="' + oContent.m_oElements[nIndex].m_cStyle + 'Off"';  if (ns7)  { if(oContent.m_oElements[nIndex].m_bLink){cHTMLSyntax +=  ' Style="border : 0px Solid; cursor : hand ;"';} else { cHTMLSyntax +=  ' Style="border : 0px Solid;"'; } }  else { if(oContent.m_oElements[nIndex].m_bLink){cHTMLSyntax +=  ' Style="cursor : hand ;"';} }  if (! ns4)  {cHTMLSyntax +=' onclick="MenuOpen(\''  + this.m_cID + '\',\'' + oContent.m_oElements[nIndex].m_cID + '\')"';cHTMLSyntax +=' onmouseover="MenuOn(\''+ this.m_cID + '\',\'' + oContent.m_oElements[nIndex].m_cID + '\')"';cHTMLSyntax +=' onmouseout="MenuOut(\''+ this.m_cID + '\',\'' + oContent.m_oElements[nIndex].m_cID + '\');"';cHTMLSyntax +=' onmousemove="MenuMove(\'' + this.m_cID + '\');" '; }  cHTMLSyntax +='>';  cHTMLSyntax +=' <TR>';if (ns4){ cAtagBefore = '';  cAtagBefore += ' <A HREF="javascript:MenuOpen(\'' + this.m_cID + '\',\'' + oContent.m_oElements[nIndex].m_cID + '\')" ';  cAtagBefore +=' onmouseover="MenuOn(\''  + this.m_cID + '\',\'' + oContent.m_oElements[nIndex].m_cID + '\')"';  cAtagBefore +=' onmouseout="MenuOut(\''  + this.m_cID + '\',\'' + oContent.m_oElements[nIndex].m_cID + '\');"';  cAtagBefore +=' onmousemove="MenuMove(\''+ this.m_cID + '\');"> ';  cAtagAfter = ' </A> '; }cHTMLSyntax += ' <TD>';if (oContent.m_oElements[nIndex].m_cIcon != "") {cHTMLSyntax += cAtagBefore +' <IMG SRC="'+oContent.m_oElements[nIndex].m_cIcon+'" align="absmiddle" BORDER="0" >'+ cAtagAfter; }else {cHTMLSyntax += ' <IMG SRC="'+g_cImageEmpty+'" align="absmiddle" BORDER="0"';if(oContent.m_bIcon) {  cHTMLSyntax += ' width="'+ oContent.m_nIconWidth +'" ';  }cHTMLSyntax += ' >'; }cHTMLSyntax += ' </TD>';if (oContent.m_bVert) { cWrap = ''; }else { cWrap = 'nowrap'; }cHTMLSyntax += ' <TD WIDTH="100%" ' + cWrap + '>';cHTMLSyntax += cAtagBefore + oContent.m_oElements[nIndex].m_cText + cAtagAfter;cHTMLSyntax += ' </TD>';cHTMLSyntax += ' <TD align="right">';if (oContent.m_oElements[nIndex].m_oContent != null){ if (oContent.m_bVert){cHTMLSyntax += cAtagBefore +' <IMG SRC="'+g_cImageSubMenuVert+'" align="absmiddle" BORDER="0" >'+ cAtagAfter; }else { cHTMLSyntax += cAtagBefore +' <IMG SRC="'+g_cImageSubMenuHor+'" align="absmiddle" BORDER="0" >'+ cAtagAfter; } }cHTMLSyntax += ' </TD></TR></Table>';if (!oContent.m_bVert) { cHTMLSyntax += ' </TD>'; } else { cHTMLSyntax += ' </TD></TR>'; } } if (!oContent.m_bVert) { cHTMLSyntax += ' </TR>'; } cHTMLSyntax +=  '</TABLE>'; if (ns4) { cHTMLSyntax += '</LAYER>'; } else  { cHTMLSyntax += '</DIV>'; } for( nIndex = 0 ; nIndex <= oContent.m_nElements ; nIndex++) {  if( oContent.m_oElements[nIndex].m_oContent != null) {  cHTMLSyntax += this.GenerateSyntaxClassic(oContent.m_oElements[nIndex].m_oContent); } } return cHTMLSyntax; }function _GenerateSyntaxHierarchical(_oCurContent,_cSpace,_bBlank){var cHTMLSyntax = ''; var nIndex= 0; var nIndex2  = 0; var bRoot = false; var cVisibility = 'hidden'; var oContent; var bLastNode; var bBlankNode; var cSpace; var cHide; var cHideExp; var cHideCol; var cID; var cImage; oContent = _oCurContent; if(_oCurContent == null) {oContent = this.m_oContent;  bRoot = true;  cVisibility = 'visible'; } if(oContent == null) return ''; if( bRoot ) { if(oContent.m_cLayout != ''){  if (g_bFixSelectIE){  cHTMLSyntax += '<IFRAME ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'DESIGNIFRAME" style="position: absolute; left:10; top:10; visibility:'+cVisibility+';" frameborder="0"></IFRAME>'; }cHTMLSyntax += '<DIV ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'DESIGN" ';cHTMLSyntax += ' style="position: absolute; ';cHTMLSyntax += ' left:0; ';cHTMLSyntax += ' top:0; ';cHTMLSyntax += ' visibility:visible; ';cHTMLSyntax += ' height:10; ';cHTMLSyntax += ' Width:10;';cHTMLSyntax += '"';cHTMLSyntax += '>'+ oContent.m_cLayout +'</DIV>'; }if (g_bFixSelectIE){  cHTMLSyntax += '<IFRAME ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+'IFRAME" style="position: absolute; left:10; top:10; visibility:visible;" frameborder="0"></IFRAME>'; }cHTMLSyntax += '<DIV ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +'" style="position:absolute; left:'+oContent.m_nPosX+'; top:'+oContent.m_nPosY+'; visibility:visible; overflow:hidden; width:'+ this.m_ReducedSize +'px;" onMouseOver="MenuExtend(\''+ this.m_cID +'\');" onMouseOut="MenuReduce(\''+ this.m_cID +'\' , false);">';cHTMLSyntax += '<DIV ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+ 'CONTENT" style="visibility:visible;">';cHTMLSyntax += '<TABLE ID="MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_cID +g_cIDSeparator+ 'CONTENTTB" border="0" cellspacing="0" cellpadding="0"><TR><TD>'; }for( nIndex = 0 ; nIndex <= oContent.m_nElements ; nIndex++){  cID = 'MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oContent.m_oElements[nIndex].m_cID +g_cIDSeparator; cHTMLSyntax +=  '<TABLE ID="'+cID+'LINE" border="0" cellspacing="0" cellpadding="0"><TR><TD nowrap>'; if (_cSpace == null) {cSpace = ''; } else {if (_bBlank) {cSpace = _cSpace + g_cTreeEmpty; } else { cSpace = _cSpace + g_cTreeVLine; } }cHTMLSyntax += cSpace;if (nIndex == oContent.m_nElements){bLastNode = true; }else {bLastNode = false; }if (bLastNode){cHTMLSyntax += g_cTreeLNode; bBlankNode = true; }else {cHTMLSyntax += g_cTreeNode;bBlankNode = false; }if (oContent.m_oElements[nIndex].m_oContent != null){ cHideExp = 'inline';  cHideCol = 'none';  cHide = 'none';  cHTMLSyntax +=  '<A ID="'+cID+'EXP" Style="display: '+ cHideExp +';" href="javascript:MenuExpand(\''+this.m_cID+'\',\''+oContent.m_oElements[nIndex].m_cID+'\');">';  cHTMLSyntax += g_cTreeExpand;  cHTMLSyntax +=  '</A>';  cHTMLSyntax +=  '<A ID="'+cID+'COL" Style="display: '+ cHideCol +';" href="javascript:MenuCollapse(\''+this.m_cID+'\',\''+oContent.m_oElements[nIndex].m_cID+'\');">';  cHTMLSyntax += g_cTreeCollapse;  cHTMLSyntax +=  '</A>'; }else {cHTMLSyntax += g_cTreeExtend; }cImage = '<img src="'+oContent.m_oElements[nIndex].m_cIcon+'" align="absmiddle" style="border:0px solid;">';if( oContent.m_oElements[nIndex].m_cIcon == '' ){  if( oContent.m_oElements[nIndex].m_oContent != null){cImage = g_cTreeFolder; }else { cImage = g_cTreeFile; } }cHTMLSyntax +=  '<A';cHTMLSyntax +=  ' onmouseover="MenuOn(\''+this.m_cID+'\',\''+oContent.m_oElements[nIndex].m_cID+'\');"';cHTMLSyntax +=  ' onmouseout="MenuOut(\''+this.m_cID+'\',\''+oContent.m_oElements[nIndex].m_cID+'\');"';cHTMLSyntax +=  ' href="javascript:MenuOpen(\''+this.m_cID+'\',\''+oContent.m_oElements[nIndex].m_cID+'\');"';if (ns7){if(oContent.m_oElements[nIndex].m_bLink){cHTMLSyntax +=  ' Style="border : 0px Solid; cursor : hand ;"';} else { cHTMLSyntax +=  ' Style="border : 0px Solid;cursor:text;"'; } }else { if(oContent.m_oElements[nIndex].m_bLink){cHTMLSyntax +=  ' Style="cursor : hand ;"';} else { cHTMLSyntax +=  ' Style="cursor:text;"'; } }cHTMLSyntax +=  '>';cHTMLSyntax += cImage;cHTMLSyntax += '<font ID="'+cID+'ELEMENT" class="'+oContent.m_oElements[nIndex].m_cStyle+'Off">&nbsp;';cHTMLSyntax += oContent.m_oElements[nIndex].m_cText;cHTMLSyntax += '&nbsp;</font>';cHTMLSyntax +=  '</A>';cHTMLSyntax +=  '</TD></TR></TABLE>';cHTMLSyntax +=  '<DIV ID="'+cID+'BLOCK" Style="display: '+ cHide +';">';  if( oContent.m_oElements[nIndex].m_oContent != null)  {   cHTMLSyntax += this.GenerateSyntaxHierarchical(oContent.m_oElements[nIndex].m_oContent,cSpace,bBlankNode); }cHTMLSyntax +=  '</DIV>'; } if( bRoot ) {  cHTMLSyntax += '</TD></TR></TABLE>'; cHTMLSyntax += '</DIV>'; cHTMLSyntax += '</DIV>'; } return cHTMLSyntax; }function _GetElementPosition(_cID){ var oObjectParent;var oObject;var doc_Item;var cParentID = '';var i= 0;var cItemPos  = '';var nPosX= 0;var nPosY= 0;var nPosX_Item = 0;var nPosY_Item = 0;var nPosX_Design = 0;var nPosY_Design = 0;cParentID = '';if (_cID != null){  for (i=0 ; i < MenuCountString(_cID,g_cIDSeparator) ; i++){if (cParentID != '') { cParentID += g_cIDSeparator; }cParentID += MenuExtractString(_cID,i,g_cIDSeparator) }if(cParentID == '') { cParentID = null; }oObjectParent = this.GetObject(g_const_nMenuBox , cParentID); }else {  oObjectParent = this.GetObject(g_const_nMenuBox , null); }oObject = this.GetObject(g_const_nMenuBox , _cID);if( !opera || (opera && cParentID =='')){  nPosX += oObjectParent.m_nPosX;nPosY += oObjectParent.m_nPosY; }if(_cID == null) _cID = oObject.m_cID;if (cParentID != ''){  cItemPos= MenuGetStartPos('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'ELEMENT');nPosX_Item = parseInt(MenuExtractString(cItemPos,0,'x'));nPosY_Item = parseInt(MenuExtractString(cItemPos,1,'x')); }if (cParentID != ''){  for( i = 0 ; i <= oObjectParent.m_nElements ; i++){doc_Item = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ oObjectParent.m_oElements[i].m_cID +g_cIDSeparator+'ELEMENT'); if(oObjectParent.m_oElements[i].m_cID == _cID) { i =  oObjectParent.m_nElements + 5;if (! oObjectParent.m_bVert) { nPosY_Item += doc_Item.offsetHeight; }else { nPosX_Item += doc_Item.offsetWidth; } } else { if(!opera && !ns6 && ! (mac && ie))  {  if (oObjectParent.m_bVert) { nPosY_Item += doc_Item.offsetHeight; }  else { nPosX_Item += doc_Item.offsetWidth; } } } } }if (cParentID != ''){  if (oObjectParent.m_bVert) { nPosX_Item -= 5; nPosY_Item += 4;}else { nPosX_Item += 5; nPosY_Item -= 4; } }if(oObject){  if(oObject.m_cLayout != ''){  nPosX_Design = oObject.m_cLayoutLeft;nPosY_Design = oObject.m_cLayoutTop; } }nPosX = (nPosX + nPosX_Item + nPosX_Design);nPosY = (nPosY + nPosY_Item + nPosY_Design);return nPosX + 'x' + nPosY; }function _ComputeRightPosition(_cID){  var oObject;var doc_Box;var doc_Box2;var doc_Box3;var doc_Box4;var cPosition = '';cPosition = this.GetElementPosition(_cID);oObject= this.GetObject(g_const_nMenuBox , _cID);if(_cID == null) _cID = oObject.m_cID;if( (! oObject.m_bPosValidated && this.m_nType == g_const_nMenuhierarchical) || this.m_nType == g_const_nMenuClassic ){  oObject.m_bPosValidated = true;oObject.m_nPosX = parseInt( MenuExtractString(cPosition , 0 , 'x') );oObject.m_nPosY = parseInt( MenuExtractString(cPosition , 1 , 'x') );if( ! isNaN(oObject.m_nLayoutXVariation) ){ oObject.m_nPosX += oObject.m_nLayoutXVariation;  oObject.m_nPosY += oObject.m_nLayoutYVariation; } }doc_Box  = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);doc_Box2 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);if(doc_Box2){doc_Box2.top  = oObject.m_nPosY; doc_Box2.left = oObject.m_nPosX; }if(oObject.m_cLayout != ''){  doc_Box3 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'DESIGN');if(doc_Box3){doc_Box3.top = oObject.m_nPosY - oObject.m_cLayoutTop; doc_Box3.left= oObject.m_nPosX - oObject.m_cLayoutLeft; doc_Box3.width  = doc_Box.offsetWidth + oObject.m_cLayoutLeft + oObject.m_cLayoutRight; doc_Box3.height = doc_Box.offsetHeight + oObject.m_cLayoutTop + oObject.m_cLayoutBottom; }doc_Box3 = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'DESIGN');if( (mac && ie) || (mac && safari) || opera ){ doc_Box4 = doc_Box3.firstChild;  if (doc_Box4) doc_Box4.style.height = doc_Box3.style.height; } }if( oObject.m_bShadowFlag ){  doc_Box3 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'SHADOW');if(doc_Box3){doc_Box3.top = oObject.m_nPosY + oObject.m_nShadowIncreaseVert; doc_Box3.left= oObject.m_nPosX + oObject.m_nShadowIncreaseHor; doc_Box3.width  = doc_Box.offsetWidth; doc_Box3.height = doc_Box.offsetHeight; } }if( g_bFixSelectIE){  doc_Box3 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'IFRAME');if(doc_Box3){doc_Box3.top = oObject.m_nPosY; doc_Box3.left= oObject.m_nPosX; doc_Box3.width  = doc_Box.offsetWidth; doc_Box3.height = doc_Box.offsetHeight; }if(oObject.m_cLayout != ''){  doc_Box3 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'DESIGNIFRAME');if(doc_Box3){doc_Box3.top = oObject.m_nPosY - oObject.m_cLayoutTop; doc_Box3.left= oObject.m_nPosX - oObject.m_cLayoutLeft; doc_Box3.width  = doc_Box.offsetWidth + oObject.m_cLayoutLeft + oObject.m_cLayoutRight; doc_Box3.height = doc_Box.offsetHeight + oObject.m_cLayoutTop + oObject.m_cLayoutBottom; } }if( oObject.m_bShadowFlag ){  doc_Box3 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'SHADOWIFRAME');if(doc_Box3){doc_Box3.top = oObject.m_nPosY + oObject.m_nShadowIncreaseVert; doc_Box3.left= oObject.m_nPosX + oObject.m_nShadowIncreaseHor; doc_Box3.width  = doc_Box.offsetWidth; doc_Box3.height = doc_Box.offsetHeight; } } } }function _ChangeStyle(_cID , _cSuffix){  var doc_Item;var oItem;oItem = this.GetObject(g_const_nMenuItem , _cID);if (! oItem){ alert('not found ' + _cID); }doc_Item = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'ELEMENT');if( doc_Item && oItem ){if (opera) {  doc_Item = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'ELEMENT'); if (_cSuffix == 'On') {doc_Item.backgroundColor = oItem.m_cOperaOver; } else { doc_Item.backgroundColor = oItem.m_cOperaNormal; } } else { doc_Item.className = oItem.m_cStyle + _cSuffix; } } }function _ChangeState(_cID , _cState){  var doc_Box;doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);if( doc_Box ){  doc_Box.visibility = _cState; }doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'SHADOW');if( doc_Box ){  doc_Box.visibility = _cState; }doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'DESIGN');if( doc_Box ){  doc_Box.visibility = _cState; }if( g_bFixSelectIE){doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'IFRAME'); if( doc_Box ){  doc_Box.visibility = _cState; } doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'SHADOWIFRAME'); if( doc_Box ){  doc_Box.visibility = _cState; } doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'DESIGNIFRAME'); if( doc_Box ){  doc_Box.visibility = _cState; } } }function _MenuEvt_On(_cID){  var oBox;var doc_Item;if( this.m_nType == g_const_nMenuClassic){ this.MenuEvt_Close(_cID);oBox = this.GetObject(g_const_nMenuBox , _cID);if (oBox != null){  if( ! oBox.m_bPosValidated || this.m_bRelativePosition ){this.ComputeRightPosition(_cID); } }this.ChangeStyle(_cID , 'On');this.m_cOpened += _cID + ';';this.ChangeState(_cID , 'visible');this.MenuEvt_Scroll(_cID); }else if( this.m_nType == g_const_nMenuhierarchical){ this.ChangeStyle(_cID , 'On');this.MenuEvt_Scroll(_cID); } }function _MenuEvt_Out(_cID){  var doc_Item;var nTimestamp =0;if( this.m_nType == g_const_nMenuClassic){ this.ChangeStyle(_cID , 'Off');this.m_bToClose = true;if (ns4) { nTimestamp = g_nSubMenu_Close * 3;}else { nTimestamp = g_nSubMenu_Close; }this.m_nTimeoutClose = setTimeout("MenuCloseAll('" +this.m_cID+ "')", nTimestamp); }else if( this.m_nType == g_const_nMenuhierarchical){ this.ChangeStyle(_cID , 'Off'); } }function _MenuEvt_Close(_cExcept){  var i  = 0;var BoxID = '';var nElements = 0;var bChangeStatus = false;var bCannotBeHidden = false;var cNewOpened = '';clearTimeout( this.m_nTimeoutClose );if(this.m_bToClose || _cExcept != null){ nElements = MenuCountString(this.m_cOpened , ';' );if( ! _cExcept){ bChangeStatus = true; }for( i = 0 ; i <= nElements ; i++){  BoxID = MenuExtractString(this.m_cOpened , i , ';');if (! _cExcept){bCannotBeHidden = false; }else {bCannotBeHidden= false;if(_cExcept.indexOf(BoxID) != -1){  bCannotBeHidden = true;cNewOpened += BoxID + ';'; } }if (! bCannotBeHidden){  this.ChangeState(BoxID , 'hidden'); } } }if( bChangeStatus ){ this.m_bToClose = false; }this.m_cOpened = cNewOpened; }function _MenuEvt_Move(){  clearTimeout( this.m_nTimeoutClose );this.m_bToClose = false; }function _MenuEvt_Scroll(_cID){  var cPosition= '';var nStartPos= 0;var nPageHeight = 0;var nPosX = 0;var nPosY = 0;var nHeight  = 0;var nWidth= 0;var doc_Box;if (! g_bScrolling) return;if( this.m_nType == g_const_nMenuClassic){ cPosition = this.GetElementPosition(_cID);  nPosX = parseInt( MenuExtractString(cPosition , 0 , 'x') );  nPosY = parseInt( MenuExtractString(cPosition , 1 , 'x') ); }else if( this.m_nType == g_const_nMenuhierarchical){ nPosX = GetElementPosX(GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator + 'ELEMENT'));  nPosY = GetElementPosY(GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator + 'ELEMENT')); }doc_Box = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+'ELEMENT');if(doc_Box){nWidth  = doc_Box.offsetWidth; nHeight = doc_Box.offsetHeight; }if (window.innerHeight)  {  nStartPos = window.pageYOffset;  }else  {  nStartPos = document.body.scrollTop;  }if (ie || opera) { nPageHeight = document.body.clientHeight; }else { nPageHeight = window.innerHeight; }if(nPosY <= (nStartPos + nHeight - 5)){  g_nTopScrollPos = nPosY - nHeight;MenuScrollTo();return; }if(nPosY >= (nStartPos + nPageHeight - (nHeight * 2)) ){  g_nTopScrollPos = nStartPos + (nHeight * 2);MenuScrollTo();return; }g_nTopScrollPos = nStartPos; }function _MenuEvt_Expand(_cID , _bBegin){  var doc_Box;var cParentID = '';var nIndex = 0;if( this.m_nType != g_const_nMenuhierarchical ) return;doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID+g_cIDSeparator+'EXP');if( doc_Box ){  doc_Box.display = 'none';}doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID+g_cIDSeparator+'COL');if( doc_Box ){  doc_Box.display = 'inline'; }doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID+g_cIDSeparator+'BLOCK');if( doc_Box ){  doc_Box.display = 'inline';}if (_cID != null){  for (nIndex=0 ; nIndex < MenuCountString(_cID,g_cIDSeparator) ; nIndex++){if (cParentID != '') { cParentID += g_cIDSeparator; } cParentID += MenuExtractString(_cID,nIndex,g_cIDSeparator) }if(cParentID != ''){this.MenuEvt_Expand(cParentID , false); } }if( _bBegin ){if(mozilla) { MenuExtend(this.m_cID); } this.ComputeRightPosition(); } }function _MenuEvt_Collapse(_cID){  var doc_Box;if( this.m_nType != g_const_nMenuhierarchical ) return;doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID+g_cIDSeparator+'COL');if( doc_Box ){  doc_Box.display = 'none'; }doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID+g_cIDSeparator+'EXP');if( doc_Box ){  doc_Box.display = 'inline'; }doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID+g_cIDSeparator+'BLOCK');if( doc_Box ){  doc_Box.display = 'none'; }if(mozilla) { MenuExtend(this.m_cID); }this.ComputeRightPosition(); }function _MenuEvt_Extend(_cID){  var oFld1;var oFld2;var oFld3;var nWidth = 0;var nMaxWidth = 0;if( this.m_nTimeoutExtend != 0){clearTimeout( this.m_nTimeoutExtend ); this.m_nTimeoutExtend = 0; }oFld1 = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID +g_cIDSeparator+ 'CONTENTTB');oFld2 = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);if(oFld1){  nMaxWidth = oFld1.offsetWidth;if(nMaxWidth != oFld2.offsetWidth){  oFld3 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);if( oFld2.offsetWidth < nMaxWidth ){nWidth = oFld2.offsetWidth + 5; if (nWidth > nMaxWidth) { nWidth = nMaxWidth; } }else {  nWidth = oFld2.offsetWidth - 5;  if (nWidth <= nMaxWidth)  { nWidth = nMaxWidth; } }oFld3.width = nWidth;this.ComputeRightPosition();this.m_nTimeoutExtend = setTimeout("MenuExtend('" +this.m_cID+ "');", 10); } } }function _MenuEvt_Reduce(_cID , _bImmediate){  var oFld2;var nWidth = 0;if( this.m_nTimeoutExtend != 0){clearTimeout( this.m_nTimeoutExtend ); this.m_nTimeoutExtend = 0; }if( ! _bImmediate ){  this.m_nTimeoutExtend = setTimeout("MenuReduce('" +this.m_cID+ "' , true);", 1000); }else {oFld2 = GetElement('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);if(oFld2){  if(oFld2.offsetWidth != this.m_ReducedSize){  nWidth = oFld2.offsetWidth - 5;if (nWidth < this.m_ReducedSize){nWidth = this.m_ReducedSize; }oFld2 = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ _cID);oFld2.width = nWidth;this.ComputeRightPosition();this.m_nTimeoutExtend = setTimeout("MenuReduce('" +this.m_cID+ "' , true)", 10); } } } }function _MenuEvt_WindowResize(){  var nX = 0;var nY = 0;if(this.m_bRelativePosition){ nX = GetElementPosX( GetElement(this.m_bRelativeTagID) ) + this.m_nLayoutXVariation;nY = GetElementPosY( GetElement(this.m_bRelativeTagID) ) + this.m_nLayoutYVariation;if( this.m_oContent.m_nPosX != nX || this.m_oContent.m_nPosY != nY){this.ChangePositon(nX , nY); this.ComputeRightPosition(null); } } }function _ChangePositon(_nX , _nY){  var doc_Box;this.m_oContent.m_nPosX= _nX;this.m_oContent.m_nPosY= _nY;doc_Box = GetElementStyle('MNU'+g_cIDSeparator+ this.m_cID +g_cIDSeparator+ this.m_oContent.m_cID);if(doc_Box){doc_Box.top  = this.m_oContent.m_nPosY; doc_Box.left = this.m_oContent.m_nPosX; } } }function MenuConvertToRightID(_cID){var cTempStr;cTempStr = _cID.replace(/-/gi,g_cIDSeparator);return cTempStr; }function MenuUnConvertToRightID(_cID){var cTempStr;cTempStr = _cID.replace(/_/gi,'-');return cTempStr; }function MenuExtractString(_cStringSource,_nIndexElement,_cSeparator){ var arrayOfString;arrayOfString = _cStringSource.split(_cSeparator);if (_nIndexElement > (arrayOfString.length - 1)){return null; }else {return arrayOfString[_nIndexElement]; } }function MenuCountString(_cStringSource,subString){  var nPosOfChar = 0;var nCurrentIndex = 0;var cStringWork= _cStringSource;do{  nPosOfChar = cStringWork.indexOf(subString);if(nPosOfChar > -1){  nCurrentIndex++; cStringWork = cStringWork.substring((nPosOfChar+1),(cStringWork.length)); } }while (nPosOfChar > -1);return nCurrentIndex; }function MenuReplaceStr( _cString , _cSeek , _cReplace ){ var nPos = 0;var nFound = _cString.indexOf(_cSeek);var cString2 = new String();while(nFound!=-1){ cString2 += _cString.substring(nPos,nFound);cString2 += _cReplace;nPos = nFound + _cSeek.length;nFound = _cString.indexOf(_cSeek,nPos); }cString2 += _cString.substring(nPos,_cString.length);return cString2; }function GetElement(_cID){  var doc;if (ns4){  eval('doc = document.' + _cID);if (! doc){eval('doc = document.layers["'+_cID+'"]'); } }if (ns6 || ns7 || opera || mozilla){doc = document.getElementById(_cID); }if (ie){doc = document.all[_cID]; }return doc; }function GetElementStyle(_cID){  var doc;var doc2;if (ns4){eval('doc = document.' + _cID); }if (ns6 || ns7 || opera || mozilla || safari){  doc2 = document.getElementById(_cID);if(doc2){ doc = doc2.style; } }if (ie){  doc2 = document.all[_cID]if (doc2){doc = doc2.style; } }return doc; }function GetElementPosX(obj){ var curleft = 0;if(obj){ if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeftobj = obj.offsetParent; } }else if (obj.x){curleft += obj.x; } }return curleft; }function GetElementPosY(obj){ var curtop = 0;if(obj){ if (obj.offsetParent){ while (obj.offsetParent){ curtop += obj.offsetTopobj = obj.offsetParent; } }else if (obj.y){curtop += obj.y; } }return curtop; }function MenuGetStartPos(_cID){  var doc;var nStartPosY;var nStartPosX;doc = GetElement(_cID);if (doc){if (opera){ if (doc.style.pixelTop){nStartPosY = doc.style.pixelTop;nStartPosX = doc.style.pixelLeft; }else { nStartPosX = 0;nStartPosY = 0;while (doc.offsetParent){nStartPosX += doc.offsetLeftnStartPosY += doc.offsetTop;doc = doc.offsetParent; } } }if (ns4){nStartPosY = doc.y;nStartPosX = doc.x; }if (ns6 || ns7 || ie || mozilla || safari){nStartPosY = doc.offsetTop;nStartPosX = doc.offsetLeft; } }return nStartPosX + 'x' + nStartPosY; }function MenuOn(_cMenuID,_cID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_On(_cID); } }function MenuOut(_cMenuID,_cID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Out(_cID); } }function MenuExpand(_cMenuID,_cID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Expand(_cID , true); } }function MenuCollapse(_cMenuID,_cID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Collapse(_cID); } }function MenuMove(_cMenuID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Move(); } }function MenuCloseAll(_cMenuID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Close(); } }function MenuOpen(_cMenuID,_cID){MenuOn(_cMenuID,_cID); MenuExecute(MenuUnConvertToRightID(_cMenuID),MenuUnConvertToRightID(_cID)); }function MenuExtend(_cMenuID){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Extend(_cMenuID); } }function MenuReduce(_cMenuID , _bImmediate){var nMenuIndex = GetMenu(_cMenuID); if(nMenuIndex != -1) {  g_oMenu[nMenuIndex].MenuEvt_Reduce(_cMenuID , _bImmediate); } }function MenuAdd (_cID ,_nX , _nY , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cRelativeTagID , _stVariation , _nMenuType){  if( GetMenu(_cID) != -1) return;g_nMenuIndex ++;g_oMenu[g_nMenuIndex] = new Menu(_cID ,_nX , _nY , _nHeight , _nWidth , _bVert ,  _stStyle , _stShadow , _cLayout , _cRelativeTagID , _stVariation , _nMenuType);return g_nMenuIndex; }function MAE(_nMenuIndex,_cFather,_cID,_cText,_cElementStyle,_cIcon,_bLink){  if(_nMenuIndex != -1){  MenuAddSub(_nMenuIndex , _cFather) ;g_oMenu[_nMenuIndex].AddItem(_cFather,_cID,_cText, _cElementStyle , _cIcon , _bLink); } }function MenuAddSub(_nMenuIndex , _cID){  var oItem;var cTitle = '';if( _cID == null) return;if(! g_oMenu[_nMenuIndex].ExistSub(_cID) ){  oItem = g_oMenu[_nMenuIndex].GetObject(g_const_nMenuItem , _cID);if (oItem != null) cTitle = oItem.m_cText;else cTitle = '';g_oMenu[_nMenuIndex].AddSub(_cID ,0 , 0 , g_stSubMenu_XYVariation ,  g_nSubMenu_Height , g_nSubMenu_Width , g_bSubMenu_Vert , g_stSubMenu_Style , g_stSubMenu_Shadow , g_stSubMenu_Layout , cTitle); } }function MenuCreate(){var nIndex  = 0; if(ie) {  if (document.getElementsByTagName("SELECT").length != 0) {  g_bFixSelectIE = true; } } MenuGenerate(); for(nIndex=0 ; nIndex <= g_nMenuIndex ; nIndex++) {  document.write( g_oMenu[nIndex].GenerateSyntax() ); g_oMenu[nIndex].ComputeRightPosition(null); } MenuWinResize(true); }function GetMenu(_cID){ var nIndex = 0;  var oObject;for(nIndex=0 ; nIndex <= g_nMenuIndex ; nIndex++){oObject = g_oMenu[nIndex]; if(oObject.m_cID == _cID) { return nIndex; } }return -1; }function MenuScrollTo(){  var nPos  = 0;var nStep = 5;if (window.innerHeight) { nPos = window.pageYOffset;  }else { nPos = document.body.scrollTop;}if (Math.abs(nPos - g_nTopScrollPos) < nStep){  window.scroll( 0 , g_nTopScrollPos); }else {if(nPos > g_nTopScrollPos){nPos -= nStep;}else {nPos += nStep;}window.scroll( 0 , nPos);setTimeout("MenuScrollTo()" , 100); } }function MenuWinResize(_bInit){  var nIndex  = 0;for(nIndex=0 ; nIndex <= g_nMenuIndex ; nIndex++){ g_oMenu[nIndex].MenuEvt_WindowResize(); }if(_bInit != null) { g_nFixPosLoop = 0; }if( g_nFixPosLoop < 20){setTimeout("MenuWinResize()" , 1000); g_nFixPosLoop ++; } }