jQuery.noConflict(); 
jQuery(document).ready(function() {
	jQuery('.imageholder').cycle({
		timeout:  8000,
		speed: 300,
		pause: 1,
		pager: '#nav', 
		pagerEvent: 'click', 
		pauseOnPagerHover: true,
		autostop: 1
	});

	jQuery(function(){
		var wrap = jQuery('#tekstwrapper');
		
		jQuery('#paginatie .prev').click(function(){
			wrap.trigger('prev.evtpaginate');
			return false;
		});
		
		jQuery('#paginatie .next').click(function(){
			wrap.trigger('next.evtpaginate');
			return false;
		});
		
		wrap.bind( 'initialized.evtpaginate', function(e, startnum, totalnum ){
			jQuery('#paginatie #count').text(startnum);
			jQuery('#paginatie #total').text(totalnum);
		}); 
		
		wrap.bind( 'finished.evtpaginate', function(e, num, isFirst, isLast ){ jQuery('#count').text(num); } ); 	
		wrap.evtpaginate({perPage:1});	
	});
	
	jQuery('a.flash').fancybox({
		'overlayShow': true,
		'overlayColor': '#164D9A',
		'padding': 0,
		'overlayOpacity': 0.75,
		'centerOnScroll': true,
		'hideOnContentClick': true,
		'frameWidth': 639,
		'frameHeight': 508,
		'callbackOnClose': function() {
			jQuery("#fancy_content").empty();
		} 
	});
});