<!--
	$(document).ready(function(){
		/*$("#page_container ul.menu li").
		$("#page_container ul.menu li").mouseenter(
			function(){
				//$(this).find("ul.submenu").stop();
				//$(this).find("ul.submenu")
				$(this).find("ul.submenu").stop(true,true).slideDown(600);
			}
		);
		$("#page_container ul.menu li").mouseleave(
			function(){
				//$(this).find("ul.submenu").stop();
				$(this).find("ul.submenu").stop(true,true).slideUp(600);
			}
		);*/
		
		//$("#min").bind("click",doOnMinClicked);
		$("#kruisje").bind("click",doOnMinClicked);
		$("#plus").bind("click",doOnPlusClicked);
		
		function doOnMinClicked(e){
			e.preventDefault();
			$("#plus").show();
			//$("#min").hide();
			//
			if($.browser.msie && parseInt($.browser.version) < 9){
				$("#content").hide();
			} 
			else{
				$("#content").stop(true).animate({'opacity':0},{'duration':600,'easing':'easeOutSine'});
			}
		}
		function doOnPlusClicked(e){
			e.preventDefault();
			$("#plus").hide();
			//$("#min").show();
			if($.browser.msie && parseInt($.browser.version) < 9){
				$("#content").show();
			} 
			else{
				$("#content").stop(true).animate({'opacity':1},{'duration':600,'easing':'easeOutSine'});
			}
		}
		
		function doOnWindowResized(e){
			//console.log($(window).height() - (300 + 60 + 15 + 45 + 100));
			
			var new_content_height = $(window).height() - (300 + 60 + ($("#footer").height()) + 45 + 100);
			if(new_content_height < 50) new_content_height = 50;
			
			if($(".jScrollPaneContainer").length > 0){
				$(".jScrollPaneContainer").css("height",new_content_height);
			}else{
				$("#mid #tekst").css("height",new_content_height);
			}

			var element = $('#mid #tekst').jScrollPane({showArrows:false,scrollbarWidth:3});
			var api = element.data('jsp');
			
			if(api != undefined){
				api.reinitialise();
			}

			// scall de box naar normale height als er geen scrollbar is
			if($('.jScrollPaneTrack').length == 0){
				var tekst_html = $("#mid #tekst").html();
				$(".jScrollPaneContainer").replaceWith("<div id='tekst'>"+tekst_html+"</div>");
				//$("#mid h1").append("<div id='tekst'>"+tekst_html+"</div>");
				
				$("#mid #tekst").css("height","auto");
			}
		}
		function doOnWindowMouseEnter(e){
			if($.browser.msie && parseInt($.browser.version) < 9){
				$(".galleria-image-nav-right").show();
				$(".galleria-image-nav-left").show();
			} 
			else{
				$(".galleria-image-nav-right").stop(true).animate({'opacity':0.18},{'duration':600,'easing':'easeOutSine'});
				$(".galleria-image-nav-left").stop(true).animate({'opacity':0.18},{'duration':600,'easing':'easeOutSine'});
			}
		}
		function doOnWindowMouseLeave(e){
			if($.browser.msie && parseInt($.browser.version) < 9){
				$(".galleria-image-nav-right").hide();
				$(".galleria-image-nav-left").hide();
			} 
			else{
				$(".galleria-image-nav-right").stop(true).animate({'opacity':0},{'duration':600,'easing':'easeOutSine'});
				$(".galleria-image-nav-left").stop(true).animate({'opacity':0},{'duration':600,'easing':'easeOutSine'});
			}
		}
		$("#galleria").bind("mouseenter",doOnWindowMouseEnter);
		$("#galleria").bind("mouseleave",doOnWindowMouseLeave);
		
		$(window).bind("resize",doOnWindowResized);
		
		//alert($.browser.msie+"//"+parseInt($.browser.version));
		
		doOnWindowResized(null);
	});
-->
