
var menuInitialSelection = -1;
// var menuTop = 0;

function initSecNavi() {
        updateSecNavi(menuInitialSelection);
        var secRow = 0;
        if (client.isNS4) {
              while (document['s' + secRow]) {
                     document['s' + secRow].visibility = "visible";
                     secRow++;     
              }

        } else if (client.isIE) {
             while (document.all['s' + secRow]) {
                     document.all['s' + secRow].style.visibility = "visible";
                     secRow++;
             }
          } else if (client.isNS6) {
             while (document.getElementById('s' + secRow)) {
                    document.getElementById('s' + secRow).style.visibility = "visible";
                    secRow++;
             }
          }

}

function updateSecNavi(sel) {

         var intSel = parseInt(sel);
         var y = menuTop;
         var secRow = 0;

         if (client.isNS4) {
              while (document['s' + secRow]) {
                  document['s' + secRow].top = y;
                  y += document['s' + secRow].document.height;
                  if (secRow == intSel) {
                      if (document['s' + secRow + 't']) {
                          document['s' + secRow + 't'].top = y;
                          y +=  document['s' + secRow + 't'].document.height;
                          document['s' + secRow + 't'].visibility = "visible";
                      }
                  } else {
                      if (document['s' + secRow + 't']) {
                          document['s' + secRow + 't'].visibility = "hidden";
                      }
                  }

                  secRow++;
              } // while
          } else if (client.isIE) {
             while (document.all['s' + secRow]) {
                  document.all['s' + secRow].style.posTop = y;
                  y += document.all['s' + secRow].offsetHeight;
                  if (secRow == intSel) {
                      if (document.all['s' + secRow + 't']) {
                          document.all['s' + secRow + 't'].style.posTop = y;
                          y +=  document.all['s' + secRow + 't'].offsetHeight;
                          document.all['s' + secRow + 't'].style.visibility = "visible";
                      }
                  } else {
                      if (document.all['s' + secRow + 't']) {
                          document.all['s' + secRow + 't'].style.visibility = "hidden";
                      }
                  }

                  secRow++;
              } // while
          } else if (client.isNS6) {
             while (document.getElementById('s' + secRow)) {
                    document.getElementById('s' + secRow).style.top = y;
                    y += parseInt(document.getElementById('s' + secRow).offsetHeight);
                  if (secRow == intSel) {
                      if (document.getElementById('s' + secRow + 't')) {
                          document.getElementById('s' + secRow + 't').style.top = y;
                          y +=  parseInt(document.getElementById('s' + secRow + 't').offsetHeight);
                          document.getElementById('s' + secRow + 't').style.visibility = "visible";
                      }
                  } else {
                      if (document.getElementById('s' + secRow + 't')) {
                          document.getElementById('s' + secRow + 't').style.visibility = "hidden";
                      }
                  }

                  secRow++;
              } // while
           }

          return false; // no link to follow
 }