
var X = 0;
var Y = 148;

function findPosX(anObj) {
  var curleft = 0;
  if (anObj.offsetParent) {
    while (anObj.offsetParent) {
      curleft += anObj.offsetLeft;
      anObj = anObj.offsetParent;
    }
  } else if (anObj.x)
    curleft += anObj.x;

  return curleft;
}

function menu (section) {

  document.write('<div id="menudiv" style="position:absolute; left:'+X+'px; top:'+Y+'px;">'); 
  document.write('<table class="menu noprint" cellpadding="10"><tr><td>');

  document.write('<a href="index.html" class="menu">Home</a><br><br>');
  document.write('<a href="night.html" class="menu">Night<br>Janitorial</a><br><br>');
  document.write('<a href="vacancy.html" class="menu">Vacancy<br>Maintenance</a><br><br>');
  document.write('<a href="construction.html" class="menu">During/Post<br>Construction</a><br><br>');
  document.write('<a href="tenant.html" class="menu">Tenant<br>Improvement</a><br><br>');
  document.write('<a href="outside.html" class="menu">Outside Building<br>Services</a><br><br>');
  document.write('<a href="about.html" class="menu">About Us</a><br><br>');
  document.write('<a href="contact.html" class="menu">Contact Us</a><br>');

  document.write('</td></tr></table>');
  document.write('</div>');

  prescroll=0;
  scrollit();
}

function scrollit(){

  var obj = document.getElementById( "menudiv" );
//  var imgtop = document.getElementById( "imgtop" );

  scrolltop = document.body.scrollTop;
  newscroll = prescroll + (scrolltop - prescroll) / 10;
  if (obj != null) {
    var style = obj.style;
    style['top'] = newscroll + Y + "px";
//    style['left'] = findPosX(imgtop) + "px";
  }
  prescroll = newscroll;
  setTimeout('scrollit()',9)
}
