	var verslag=1; 

	google.load("jquery", "1.3.2");
	google.load("jqueryui", "1.7.2");  
	
  	google.setOnLoadCallback(function() {
		loadTimers();
    	loopVerslag();
		showVerslag(0);
		$('.verslagtable').bind("mouseenter",function(){hoverVerslag(this)});
		$('.verslagtable').bind("mouseleave",function(){hideVerslagen()});	
		$('input[name=keywords]').inputFieldText('trefwoord'); 		

		$('#menu-ul').dropDownMenu({
			timer: 1000, 
			parentMO: 'parent-hover', 
			childMO: 'child-hover1'
		});

		$(".tab_content").hide(); //Hide all content
		$("ul.tabs li:first").addClass("active").show(); //Activate first tab
		$(".tab_content:first").show(); //Show first tab content
				
		//On Click Event
		$("ul.tabs li").click(function() {
			$("ul.tabs li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active content
			return false;
		});
		
		
		$(".tab_content2").hide(); //Hide all content
		$("ul.tabs2 li:first").addClass("active").show(); //Activate first tab
		$(".tab_content2:first").show(); //Show first tab content				
		//On Click Event
		$("ul.tabs2 li").click(function() {
			$("ul.tabs2 li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content2").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active content
			return false;
		});	
		
		$(".tab_content_n").hide(); //Hide all content
		$("ul.tabs_n li:first").addClass("active").show(); //Activate first tab
		$(".tab_content_n:first").show(); //Show first tab content				
		//On Click Event
		$("ul.tabs_n li").click(function() {
			$("ul.tabs_n li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".tab_content_n").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active content
			return false;
		});			
		
		loadCarousel();		
		$('#mycarousel').jcarousel({visible:5});
//		$('#mycarouselinline').jcarousel({visible:3});
		$('.jcarousel-skin-tango-inline').jcarousel({visible:3});						
	
		loadFancybox();		
		$("a.group").fancybox({ 
			'zoomSpeedIn': 300,
			'zoomSpeedOut': 300,
			'overlayShow': false }
		);	
		
		$("a#single_image").fancybox();	
		
		$(function() {		
			$("#accordion").accordion({
				autoHeight: false
//				autoHeight: false,
//				event: "mouseover"
			});		
		});
	});

	function loopVerslag(){
		$('#samenvattingen').everyTime(4000, function() { showVerslag(0);},0);
	}
	function showVerslag(i){
		$('.samenvatting').fadeOut(300);
		$('.verslag').css('background-color','transparent');							
		if (i==0) { 
			if (verslag-3 == 1) verslag = 1;
			i = verslag;
			verslag++;
		}
		$("#samenvatting"+i).fadeIn(800);	
		$("#verslag"+i).css('background-color','#aa1b20');			
	}	
	function hoverVerslag(obj){
		i = obj.id.substr(0,1);
		$('#samenvattingen').stopTime();	
		showVerslag(i);
	}
	function hideVerslagen(){
		$('.samenvatting').fadeOut(300);
		$('.verslag').css('background-color','transparent');	
		loopVerslag();		
	}

