// JQUERY CUSTOM COMMANDS
$(document).ready( function() {  // start javascript when document is loaded 

/* Grote carrousel */

/* DOUBLE CLICK FIX */
	$('#slidePager a').click(function(){
		$(this).parents('li').removeAttr('onclick');
	});
/* CARROUSEL */
	$('#slideImages ol').cycle({
		fx:     'fade',
		speed:   1000, // speed of the transition (any valid fx speed value)
		timeout: 5000, // milliseconds between slide transitions (0 to disable auto advance) 
		pause:   1, // true to enable "pause on hover" 
		pager: 	'#slidePager', // id of element to use as pager container 
		pagerAnchorBuilder: function(idx, slide) { 
		// return selector string for existing anchor 
		return '#slidePager li:eq(' + idx + ')';
		} 
	});
	
	
	
/* right column carrousel */
	
/* DOUBLE CLICK FIX */
	$('#rightPager a').click(function(){
		$(this).parents('li').removeAttr('onclick');
	});
/* CARROUSEL */
	$('#rightImages ol').cycle({
		fx:     'fade',
		speed:   1000, // speed of the transition (any valid fx speed value)
		timeout: 5000, // milliseconds between slide transitions (0 to disable auto advance) 
		pause:   1, // true to enable "pause on hover" 
		pager: 	'#rightPager', // id of element to use as pager container 
		pagerAnchorBuilder: function(idx, slide) { 
		// return selector string for existing anchor 
		return '#rightPager li:eq(' + idx + ')';
		} 
	});
}); // end ready function



