function funNavigatieLinks(id)
{
	$(function(){
		var selectedSG = $("#siteNavigatieLinks li[id='" + id + "']");

		if ($(selectedSG).attr('class') == "level2") {
			$(selectedSG).addClass("selected");
			// Display any child SGs
			$(selectedSG).children("ul").show();
		} else if ($(selectedSG).attr('class') == "level3") {
			$(selectedSG).addClass("selected");
			// Change display of selected SG's parent
			var curSGParent = $(selectedSG).parent("ul").parent("li");
			$(curSGParent).addClass("selected");
			// Display all brothers and sisters of selected SG
			$(selectedSG).parent("ul").show();
		}
	});
}

function funNaarBoven()
{
	$(function() {
		/* set local variables */
		var scroll_timer;
		var displayed = false;
		var $message = $('#naarBoven a');
		var $window = $(window);
		var top = $(document.body).children(0).position().top  + 20; 

		/* react to scroll event on window */
		$window.scroll(function () {
			window.clearTimeout(scroll_timer);
			scroll_timer = window.setTimeout(function () { // use a timer for performance
				if($window.scrollTop() <= top) // hide if at the top of the page
				{
					displayed = false;
					$message.fadeOut(500);
				}
				else if(displayed == false) // show if scrolling down
				{
					displayed = true;
					$message.stop(true, true).show().click(function () { $message.fadeOut(500); });
				}
			}, 100);
		});
	});
}

function funSubmitZoeken(strVeld)
{
	var blnSubmit = true;

	if (String(strVeld).replace(/(^\s+)|(\s+$)/g, '').length > 0)
	{
		if (strVeld == 'Zoek...' ||
			strVeld == 'Search...'  ||
			strVeld == 'Ricerca...')
		{
			blnSubmit = false;
		}
	}
	else
	{
		blnSubmit = false;
	}

	if (blnSubmit == true)
	{
		funSitestatSoftclick('hyperlink.zoek');
		window.document.frmZoeken.submit();
	}
}
  <!--Begin Sitestat OnClick v1.0 Copyright (c) 2001-2007 Nedstat B.V. All rights reserved.-->
  /** (c) 2004-2009 Copyright Nedstat BV Netherlands. ALL RIGHTS RESERVED
   * @version 1.1.1
   * @arg a domelement which onclick event triggered this function
   * @arg url url where to navigate to
   * @arg name name of counter
   * @arg type type of event
   * @arg winopt parameters new window
   */
  function ns_onclick(i,b,c,h,j){var e="";if(typeof ns_pixelUrl=="string"){e=ns_pixelUrl.substring(0,ns_pixelUrl.indexOf("?")+1)}e+=c;e+="&ns_type="+h+"&ns_action=view";e+="&ns__t="+(new Date()).getTime();if(!b){b=i.href}var d=document.referrer;if(d.lastIndexOf("/")==d.length-1){d=d.substring(d.lastIndexOf("/"),0)}if(d.length>0){e+="&amp;ns_referrer="+escape(d)}j=j||"";var f=(i&&i.target&&i.target!="")?(i.target.substring(0,1)=="_")?i.target.substring(1):i.target:"self";var g=new Image();if(f&&b){if(window[f]){window.ns_softclick_timer=function(k,a){return function(){if(window.ns_softclick_timeout){window.clearTimeout(window.ns_softclick_timeout)}g.onload=g.onerror=function(){return};window[((window[k])?k:"self")].location.href=a}}(f,b);ns_softclick_timeout=window.setTimeout("ns_softclick_timer()",5000);g.onload=g.onerror=window.ns_softclick_timer}else{window.open(b,f,j)}}g.src=e;return false};
  <!--End Sitestat code -->
  function funSitestatSoftclick(p_tellernaam_in)
  {
  	var strTellernaam;
  	strTellernaam = p_tellernaam_in + '&amp;pwri_tellertype=hyperlink';
  	ns_onclick(this, '', strTellernaam, 'clickout');
  	return false;
  }

