$(document).ready(function() {
/*	$(function(){	// "active" als class toevoegen aan de actieve link in de navigatie
	   var path = location.pathname.substring(1);
	   if ( path ){
		 $('#navHolder a[@href$="/' + path + '"]').addClass('active');
	   }
	 });*/

	$.get("/data/token.ajax",function(txt){
		$(".securedForm").append('<input type="hidden" name="ts" value="'+txt+'" />');
	});

	$('#fpSlide1').innerfade({
		speed: 2500,
		timeout: 3500,
		type: 'random',
		containerheight: '245px'
	});

	$('#fpSlide2').innerfade({
		speed: 2000,
		timeout: 3000,
		type: 'random',
		containerheight: '196px'
	});

	$('#fpSlide3').innerfade({
		speed: 2300,
		timeout: 5000,
		type: 'random',
		containerheight: '250px'
	});

	$('#fpSlide4').innerfade({
		speed: 2400,
		timeout: 4000,
		type: 'random',
		containerheight: '280px'
	});

	$('#fpSlide5').innerfade({
		speed: 2800,
		timeout: 4500,
		type: 'random',
		containerheight: '96px'
	});





	var galleries = $('.ad-gallery').adGallery({
	  loader_image: '/images/adgallery/loader.gif',
	  width: 980, // Width of the image, set to false and it will read the CSS width
	  height: false, // Height of the image, set to false and it will read the CSS height
	  thumb_opacity: 0.3, // Opacity that the thumbs fades to/from, (1 removes fade effect)
						  // Note that this effect combined with other effects might be resource intensive
						  // and make animations lag
	  start_at_index: 0, // Which image should be displayed at first? 0 is the first image
	  description_wrapper: $('#descriptions'), // Either false or a jQuery object, if you want the image descriptions
											   // to be placed somewhere else than on top of the image
	  animate_first_image: false, // Should first image just be displayed, or animated in?
	  animation_speed: 400, // Which ever effect is used to switch images, how long should it take?
	  display_next_and_prev: true, // Can you navigate by clicking on the left/right on the image?
	  display_back_and_forward: true, // Are you allowed to scroll the thumb list?
	  scroll_jump: 0, // If 0, it jumps the width of the container
	  slideshow: {
		enable: true,
		autostart: true,
		speed: 4000,
		start_label: 'Start',
		stop_label: 'Stop',
		stop_on_scroll: false, // Should the slideshow stop if the user scrolls the thumb list?
		countdown_prefix: '(', // Wrap around the countdown
		countdown_sufix: ')'
	  },
	  effect: 'slide-hori', // or 'slide-vert', 'resize', 'fade', 'none' or false
	  enable_keyboard_move: true, // Move to next/previous image with keyboard arrows?
	  cycle: true // If set to false, you can't go from the last image to the first, and vice versa
	});





	$().piroBox_ext({
	piro_speed : 700,
		bg_alpha : 0.5,
		piro_scroll : false // pirobox always positioned at the center of the page
	});


});
