/* 
		cycler activation for promobox item in frontpage 
*/
(function($) {
  $(function() {
    if (jQuery('#cycle_promotionarticles').children().length == 1) {
        jQuery('#cycle_promotionarticles :first').show();
    } else {
      $('#cycle_promotionarticles').cycle({
       delay: -3000,
       fx: 'scrollHorz',
       timeout: 6000,
       next: '#cycle_next a',
       prev: '#cycle_previous a'
      });      
    }
    
    if (jQuery('#cycle_promotionarticles').children().length <= 1) {
      jQuery('#cycle_next a').hide();
      jQuery('#cycle_previous a').hide();
    }
    
  }); 

})(jQuery);      

/* 
		cycler activation for videoblock/uploader item in frontpage 
*/
(function($) {
  $(function() {
    if (jQuery('#cycle_videos').children().length == 1) {
        jQuery('#cycle_videos :first').show();
		} else {
      $('#cycle_videos').cycle({
       delay: -3000,
       fx: 'scrollHorz',
       timeout: 0,
       next: '#cycle_next_video a',
       prev: '#cycle_previous_video a'
      });
    }
    
    if (jQuery('#cycle_videos').children().length <= 1) {
      jQuery('#cycle_next_video a').hide();
      jQuery('#cycle_previous_video a').hide();
    }
    
  }); 

})(jQuery);
          
/*
		cycler activation for newsblock item in vt (voetbal) sections
*/
(function($) {
  $(function() {
		/* avoid conflicts with prototype */
		jQuery.noConflict();
	
		if(jQuery('[id^="newsblock"]').length == 1) {
			// Use jQuery via jQuery(...)
	    $('[id^="newsblock"]').first().cycle({
			    fx:     'scrollHorz',
				timeout: 15000,
			    next:   '#next2',
			    prev:   '#prev2'
	 		});			
		}	      
  }); 
})(jQuery);
