<!--
    $(function(){
		aantal = $(".slogans ul li").length;
		var numRand = Math.floor(Math.random()*aantal)
		$(".slogans ul li").eq(numRand).show();
			   
		//alert($(".acitem li a[href='" + pg + "']").length);
		if($(".acitem a[href='" + pg + "']").length == 0) {	   
			pg = pg.replace(".asp",".html");		
		}

		if($(".acitem a[href='" + pg + "']").length !== 0) {	   
			//alert(pg)
			if($(".acitem a[href='" + pg + "']").parents("li").length !== 0) {
				$(".acitem a[href='" + pg + "']").parents("li").addClass("expand").addClass("actief")
			}
		}
		/*
		var str = "a[href='" + pg + "']";
		alert(str)
		alert($(str));
		
		if($("a[href='" + pg + "']").length !== 0) {	   
			if($("a[href='" + pg + "']").parents(".acitem").length !== 0) {
				//alert("lel")
				//$(".acitem a[href='" + pg + "']").parents("li").addClass("expand").addClass("actief")
			}
		}		
*/
		if($("li.niv1 a[href='" + pg + "']").length !== 0) {	   
			$("li.niv1 a[href='" + pg + "']").parents("li").addClass("actief")
		}
		
		var hl = $(".links").height();
		var hc = $(".content").height();
		var hr = $(".rechts").height();
		
		//alert(hl + "-" + hc + "-" + hr);
		
		if(hl > hc) {
			h = hl	
		} else {
			h = hc	
		}
		
		if(hr > h) {
			h = hr
		} 

		//alert(h)

		if(h<500) {
			h = 500
		}
		
		
		$(".height").css("min-height",h + "px");
		
		$(".youtube_lightbox").click(function() {
			$.fancybox({
				'overlayColor'	: '#000000',
				'padding'		: 0,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'title'			: this.title,
				'width'		: 500,
				'height'		: 380,
				'href'			: this.href,
				'type'			: 'iframe',
				'scrolling'		: 'no'
			});
	
			return false;
		});
    });	


	/*
	vanaf_links = 100;
	vanaf_boven = 100;
	grootste_breedte  = 1024+20;//afmetingen van het grootste beeld +20
	grootste_hoogte = 768+20;  //afmetingen van het grootste beeld +20

	if (parseInt(navigator.appVersion.charAt(0))>=4){
	var isNN=(navigator.appName=="Netscape")?1:0;
	var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
	var optNN='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
	var optIE='scrollbars=no,width=150,height=100,left='+vanaf_links+',top='+vanaf_boven;

	function popBeeld(BeeldURL){
		var BeeldTitel = "News";
		if (isNN){imgWin=window.open('about:blank','',optNN);}
		if (isIE){imgWin=window.open('about:blank','',optIE);}
		with (imgWin.document){
			writeln('<html><head><title>Bezig met inladen ...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
			writeln('document.onkeypress = function esc(e) {');
			writeln('if(typeof(e) == "undefined") { e=event; }');
			writeln('if (e.keyCode == 27) {');
			writeln('self.close();');
			writeln('}');
			writeln('}');
			writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
			writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
			writeln('function aanpassen_aan_beeldgrootte(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
			writeln('width=110-(document.body.clientWidth-document.images[0].width);');
			writeln('height=100-(document.body.clientHeight-document.images[0].height);');
			writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
			writeln('window.innerWidth=document.images["BeeldNaam"].width;');writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
			writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');writeln('</sc'+'ript>');
			writeln('</head><body bgcolor=000000 scroll="no" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()">');
			writeln('<img name="BeeldNaam" src="'+BeeldURL+'" style="display:block"></body></html>');
			close(); 
		}
		return false;
	}
	*/
-->


