
  // Check if IE4
  var ie4 = (document.all != null)

  function doPageTop() {
    var el = document.all.pageTop  
    if (document.body.scrollTop>0){

// pageTop is the element containing the link. We use its offsetWidth and Height to
// determine its size.
// The scrollTop and scrollLeft properties are necessary as the document may
// be horizontally or vertically scrolled.

      var rightEdge = document.body.clientWidth - el.offsetWidth + document.body.scrollLeft
      var topEdge = document.body.clientHeight - el.offsetHeight + document.body.scrollTop
      el.style.pixelTop = topEdge
      el.style.pixelLeft = rightEdge
      el.style.visibility = "visible"
    } else
      el.style.visiblity = "hidden"
  }

  if (ie4) {
    window.onscroll = doPageTop
    window.onresize = doPageTop
  }

