$(document).ready(function(){
		
	//Text cycle
	//activeSlide is class die a mee krijgt

	$('#txtcarousel').cycle({
		fx:			'fade',		
		timeout: 	5000,
		pager:		'#squares',
		pagerEvent:	'mouseover',
		fastOnEvent: true,
		cleartypeNoBg: true
	})

	
	// Bollen popup layer
	
	$("a.overlaylink").click(function(){
		$("#overlay").show();
		$(".content-"+$(this).attr("href")).fadeIn('normal');
		return false;
	})
	
	//Show buttons
	$("a.showvideo").click(function(){
		$("#overlay").fadeIn('fast');
		return false;
	})
	
	
	//Close button	
	$("a.close").click(function(){
		$("#overlay").fadeOut('fast');		
		return false;
	})
	$("#overlay").click(function(){
		$("#overlay").fadeOut('fast');		
		return false;
	})
	$(".container").click(function(){
		return false;
	});
	
	//Carousel
	$(function() {
	    $(".carouselhome").jCarouselLite({
	        btnNext: ".buttonright a",
	        btnPrev: ".buttonleft a",
	        visible: 3
	    });
	});
	
	//Lightbox
	$(function() {		
		$('a[rel*=layover]').lightBox(); // Select all links that contains lightbox in the attribute rel		
	});
	
	
	
})
	
	
