

 jQuery.easing.def = 'easeInOutCubic';



jQuery(function( $ ){


	$('#slider').serialScroll({
		target:'.scroll',
		items:'.panel', // Selector to the items ( relative to the matched elements, '#sections' in this case )
		axis:'xy',// The default is 'y' scroll on both ways
		navigation:'#navigation li a',
		duration:657,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
				

		onBefore:function( e, elem, $pane, $items, pos ){

			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
			//'this' is the element being scrolled ($pane) not jqueryfied
		}
	});

		
	$('#sub_timeline').serialScroll({
		target:'.subsectie',
		items:'li', // Selector to the items ( relative to the matched elements, '#sections' in this case )
		axis:'xy',// The default is 'y' scroll on both ways
		navigation:'.subnav li a',
		duration:657,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
				

		onBefore:function( e, elem, $pane, $items, pos ){

			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
			//'this' is the element being scrolled ($pane) not jqueryfied
		}
	});
		
$('#sub_instrumenty').serialScroll({
		target:'.instrumenty',
		items:'li',
		axis:'xy',
		navigation:'.subnav_instrumenty li a',
		duration:657,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		force:true, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
				

		onBefore:function( e, elem, $pane, $items, pos ){

			e.preventDefault();
			if( this.blur )
				this.blur();
		},
		onAfter:function( elem ){
			//'this' is the element being scrolled ($pane) not jqueryfied
		}
	});
	
	


	  $('.subnav li.grey a').click(function () {
	  $('.subnav li.grey a').removeClass('actief');
	  $(this).addClass('actief');
	});
	
	  $('.subnav li.orange a').click(function () {
	  $('.subnav li.orange a').removeClass('actief');
	  $(this).addClass('actief');
	});
	
	
	
	  $('.subnav li a').click(function () {
	  $('.subnav li a').removeClass('current');
	  $(this).addClass('current');
	});

	  $('.subnav_instrumenty li a').click(function () {
	  $('.subnav_instrumenty li a').removeClass('actief');
	  $(this).addClass('actief');
	});
	
	
		$('#top_nav li a').click(function () {
	  $('#top_nav li a').removeClass('current');
	  $(this).addClass('current');
	});

});


	
/* opens a URL link in new window */

$(function() {
	$('a[href^=http]').click( function() {
		window.open(this.href);
		return false;
	});
});
	





