
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
 }





function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&& parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&& d.all) x=d.all[n]; for (i=0;!x&& i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&& d.layers&& i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_autoLayers() { //v1.2 by PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 var a = parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc) {p7c=new Array();document.p7setc=true;
  for (var u=0;u<10;u++) {p7c[u] = new Array();}}
 for(k=0; k<p7c[a].length; k++) {
  if((g=MM_findObj(p7c[a][k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=1; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<p7c[a].length;j++) {
    if(args[k]==p7c[a][j]) {f=true;}}
  if(!f) {p7c[a][p7c[a].length++]=args[k];}}}
}



