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');

      /*if(getWindowWidth() >= tableWidth) {
        start = (getWindowWidth() - tableWidth)/2;
      }
      var difR = start + 50;*/
      //setEltRight(topButton,difR);
//			valX = (parseInt(getWindowWidth()/2) + 295);
//			alert (valX);
//			setEltLeft(topButton,valX)
//alert (parseInt(getWindowScrollTop()));
//alert (parseInt(getWindowHeight()));
      //var valY = (parseInt(getWindowHeight()) - 100 + parseInt(getWindowScrollTop()));
			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) - 110 + parseInt(getWindowScrollTop()));
      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].className == 'externLink') {
        // Externe links nooit in een apart venster openen.
        //anchors[i].onclick = function() {
        //  return !window.open(this.href);
        //}
      }
      if(anchors[i].className == 'print') {
        anchors[i].onclick = function() {
          print();
        }
      }
      if (anchors[i].id.indexOf('link') == 0) {
        if (this.FindNewWindowLink(anchors[i].id) != null) {
          anchors[i].onclick = function() {
            return openLinkInNewWindow(this);
          }
        }
      }
    }
  }


