window.onload = function()  
		{	
			//Autosize
			var documentHeight	= document.documentElement.clientHeight;
			var mainContainer   = document.getElementById('mainContainer');
			var vMenu   = document.getElementById('vMenu');
			var Content   = document.getElementById('Content');
			var _newHeight = (documentHeight - 140);
			
			if(Content.offsetHeight > _newHeight)
				_newHeight = Content.offsetHeight;
			if(vMenu.offsetHeight > _newHeight)
				_newHeight = vMenu.offsetHeight;
				
			vMenu.style.height = _newHeight +'px';
			Content.style.height = _newHeight + 'px';
			mainContainer.style.height = (_newHeight + 140) + 'px';
			
			$(".hidden_div").hide();
			
			//Setting rounded corners
			//$('.GalleryPic').corners();
			$('.PBBottom').corners('bottom');
			$('.PBTop').corners('top');
			$('.nieuwsTop').corners('top');
			$('.nieuwsBottom').corners('bottom');
			$('.galleryShow').corners();
			$('.galleryShow_all').corners();

			//Menu Button javascript
			var fadeColor = "#CCD4E1"; 
			var originalBG = $(".Button").css("background-color"); 
			$(".Button").mouseover(
			function() {
			$(this).stop().animate({backgroundColor:fadeColor}, "fast")
			});
			
				$(".Button").mouseout(
			function() {
			$(this).stop().animate({backgroundColor:originalBG}, "fast")
			});
			
			//Sub Button javascript
			var ch_fadeColor = "#E3E8EE"; 
			var ch_originalBG = $(".Button").css("background-color"); 
			$(".Button_sub").mouseover(
			function() {
			$(this).stop().animate({backgroundColor:ch_fadeColor}, "fast")
			});
			
				$(".Button_sub").mouseout(
			function() {
			$(this).stop().animate({backgroundColor:ch_originalBG}, "fast")
			});
			
			
			//Button click script
			$(".Button").click(function() {
			var htmlUrl = $(this).html();
			var url = $(htmlUrl).attr("href");
			window.location = url;});
			
			//Sub Button click script
			$(".Button_sub").click(function() {
			var htmlUrl = $(this).html();
			var url = $(htmlUrl).attr("href");
			window.location = url;});
			
			
			$("a.group").fancybox({
			'hideOnContentClick': false
			});
			
			$("#randomPic").fancybox({
			'hideOnContentClick': false
			});
	
		 $('img').load(function () {

			$('.galleryShow_all').css({'visibility' : 'visible'});
			$('.galleryShow_all').show();
			$('#aJaxLoad').hide();
			});
			
			$('.galleryShow_all').css({'visibility' : 'visible'});
			$('.galleryShow_all').show();
			$('#aJaxLoad').hide();
			
		}
		
		
