var IEbrs=0;

function InitVars() {

  IEbrs = (document.all);
  if (IEbrs) {
    setTimeout('MoveLeftMenu()',50);
  }
}

function InitVarsHome() {
  IEbrs = (document.all);
  if (IEbrs) {
    if (window.top == window.self) 
    {
      window.top.location="/index.asp";
    }
  }
}



function MoveLeftMenu() {
  var   LrMenu = 0;
  if (IEbrs) {
    var wy1 = document.body.scrollTop;
    var wy2 = wy1 + document.body.clientHeight; 
    var wY = document.body.scrollHeight; 
    var dvY=document.all['MainMenuDiv'].clientHeight;
    var step = 0;
    var rY=wy1+100; 
    if (wy1>100) { rY=wy1+10; } else { rY=100; }

    var cY = document.all['MainMenuDiv'].style.pixelTop;
    if ((wy1>100)&&(cY+dvY<wy1)) { cY=wy1-dvY; }
    else if (cY>wy2) { cY=wy2-10; }

    if ((rY+dvY)>(wY-60)) {
      rY=wy2-60-dvY;
      if (rY<100) { rY=100;}
    }

    var dY=rY;
    if (rY!=cY) {
      if (rY>cY) { if (rY-cY<=10) { dY=rY;} else { dY=cY+10; } }
      else if (rY<cY) { if (cY-rY<=10) { dY=rY;} else { dY=cY-10; } }
      document.all['MainMenuDiv'].style.pixelTop = dY;
    }
    setTimeout('MoveLeftMenu()',50);
  }
}