function findScrollTop() {
  if (window.pageYOffset != null) {
    return window.pageYOffset;
  }
  if (document.body.scrollWidth != null) {
    return document.body.scrollTop;
  }
  return (null);
}

function isAnchor() {
  // Find current folder and page name of document
  anchor = "";
  currHash = window.location.hash;
  if (currHash) {
    anchor = currHash.substr(1);
  }
  return anchor;
}

function placeArrow(currElem) {
  if (currPage != "index") {
    stdBrowser = (document.getElementById('arrow1')) ? true : false
    menuObj = (stdBrowser) ? document.getElementById('arrow1').style : eval("document." + currElem)
    anchorPos = (stdBrowser) ? document.getElementsByName(currElem)[0].offsetTop : eval("document." + currElem)
    //alert(anchorPos);
    if (is_ie5up) {
      anchorPos += 170;
      if (currPage == "support") { anchorPos += 25; }
      else if (currPage == "scholarship") { anchorPos += 125; }
    }
    else if (is_gecko) {
      anchorPos += 175;
      if (currPage == "scholarship") { anchorPos += 85; }
    }
    //alert(anchorPos);
    //alert(menuObj.top);
    menuObj.top = (stdBrowser) ? anchorPos : false
    //alert(menuObj.top);
    menuObj.visibility = (stdBrowser) ? 'visible' : false
  }
}


function doArrow() {
  anchor = isAnchor()
  if (anchor && anchor != "top") {
    placeArrow(anchor)
  }
}