function initStijlset() {
  checkBrowser();
  var pageLoaded = false;
  inittopknop();
}

function inittopknop() {
  updateTopButton();
  onResize(inittopknop);
  onScroll(updateTopButton);
  pageLoaded = true;
}

function getWindowScrollTop() {
  if(is.ns4comp || is.ns6comp) {
    return(window.pageYOffset);
  }
  else if (document.documentElement && document.documentElement.scrollTop) { /* ie 7 */
    return(document.documentElement.scrollTop);
  }
  else if(is.ie4comp) { /* ie 6 */
    return(document.body.scrollTop);
  }
}

function updateTopButton() {
  if(getElt("top_button")) {
    var topButton = getElt("top_button");

    if(getWindowScrollTop() > 0) {
      setEltVisibility(topButton,'visible');
      setEltDisplay(topButton,'block');
      setEltPosition(topButton,'absolute');

      var viewPortHeight;
      if (self.innerHeight) // all except Explorer
      {
        viewPortHeight = self.innerHeight;
      }
      else if (document.documentElement && document.documentElement.clientHeight)
        // Explorer 6 Strict Mode
      {
        viewPortHeight = document.documentElement.clientHeight;
      }
      else if (document.body) // other Explorers
      {
        viewPortHeight = document.body.clientHeight;
      }

      var valY = (parseInt(viewPortHeight, 10) - 110 + parseInt(getWindowScrollTop(), 10));
      setEltTop(topButton,valY);
    } else {
      setEltVisibility(topButton,'hidden');
      setEltDisplay(topButton,'none');
    }
  }
}

pageContent.prototype.ProcessExternalLinks = function() {
  if (!document.getElementsByTagName) {
    return;
  }
  var anchors = document.getElementsByTagName('a');
  for(var i=0; i<anchors.length; i++) {
    if (anchors[i].id.indexOf('link') == 0) {
      if (this.FindNewWindowLink(anchors[i].id) != null) {
        anchors[i].onclick = function() {
          return openLinkInNewWindow(this);
        };
      }
    }
  }
};
