	$(document).ready(function() {
		//	calculate window height and distract the height of the div#anchors
		var window_height = $(window).height();		$('#sidebar-right').animate( { height: $(window).height() }, 100);
		//$('#main').animate( { height: window_height }, 1000 );
		// window resize
		$('#content').animate( { height: window_height }, 100 );			

		$('div#anchors a').click(function() {
			if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
				var $target = $(this.hash);
				$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');				var anker = this.hash.slice(1);														if ($target.length) {									
					$('#content').stop().scrollTo($target, 800, {axis:'y'});										
					return false;
				}
			}
		});
		$('div#content a[href*=#]').click(function() {
			if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
				var $target = $(this.hash);
				$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
				if ($target.length) {
					$('#content').stop().scrollTo($target, 800, {axis:'y'});
					return false;
				}
			}
		});
		$(function(){
			//$('.pane').jScrollPane();			var $pane4 = $('#content');				$pane4.jScrollPane({animateTo:true});				$('a.scroll-button').bind(					'click',					function()					{						var targetElementSelectorString = $(this).attr('rel');						$pane4[0].scrollTo(targetElementSelectorString);						return false;					}				);                			
		});

		/*$('#go_down').click(function() {
			$('#content').stop().scrollTo({top:'+=100px'}, 800);
			return false;
		});
		$('#go_up').click(function() {
			$('#content').stop().scrollTo({top:'-=100px'}, 800);
			return false;
		});*/		$(".vergrootglas").click(function() {			$("#search-block-form").submit();		});
	});
