	jQuery(document).ready(function(){
			
		var aantal_plaatjes = jQuery("#scroller_content > div").size();
		// Kopieren van de eerste x plaatjes die in beeld zijn zodat de beweging vloeiend  door gaat.
		var aantal_extra_nodig = Math.ceil(instellingen.breedte_slider/(instellingen.breedte_plaatjes+instellingen.ruimte_tussen_plaatjes));
		for(i=0; i<aantal_extra_nodig; i++){
			jQuery("#scroller_content").append('<div class="scroller_images">'+jQuery(".scroller_images").eq(i).html()+'</div>');
		}
		
		jQuery("#scroller").css({
			'width': instellingen.breedte_slider,
			'height': instellingen.hoogte_slider,
			'overflow': 'hidden'
		});
			jQuery("#scroller_content").css({
			'width': (aantal_plaatjes+aantal_extra_nodig)*(instellingen.breedte_plaatjes+instellingen.ruimte_tussen_plaatjes),
			'height': instellingen.hoogte_plaatjes,
			'margin-top': Math.round((instellingen.hoogte_slider-instellingen.hoogte_plaatjes)/2)
			
		});
		jQuery(".scroller_images").css({
			'float': 'left',
			'position': 'relative',
			'margin-left': instellingen.ruimte_tussen_plaatjes+'px'
		});
		jQuery(".scroller_titel").css({
			'top': '0px',			
			'position': 'absolute',
			'width': instellingen.breedte_plaatjes+'px'
		});
		
		jQuery(".scroller_images").hover(function(){
			jQuery(".scroller_titel", this).show();
		}, function(){
			jQuery(".scroller_titel", this).hide();
		});
		
		jQuery("#scroller").hover(function(){
			jQuery("#scroller_content").stop();
		}, function(){
			var scroll_afstand = aantal_plaatjes*(instellingen.breedte_plaatjes+instellingen.ruimte_tussen_plaatjes);
			var reeds_gedaan = -jQuery("#scroller_content").css('marginLeft').split('px')[0];

			jQuery("#scroller_content").animate({
				marginLeft : '-'+(scroll_afstand)+'px'
			}, (instellingen.snelheid*(scroll_afstand-reeds_gedaan))/instellingen.breedte_slider, 'linear', function(){
				start_scroll_opnieuw();
			});
		})
		function start_scroll_opnieuw(){
			jQuery("#scroller_content").css({
				marginLeft: '0px'
			});
			scroll_plaatjes();
		}
		function scroll_plaatjes(){
			var scroll_afstand = aantal_plaatjes*(instellingen.breedte_plaatjes+instellingen.ruimte_tussen_plaatjes);
			jQuery("#scroller_content").animate({
				marginLeft : '-'+(scroll_afstand)+'px'
			}, (instellingen.snelheid*scroll_afstand)/instellingen.breedte_slider, 'linear', function(){
				start_scroll_opnieuw();
			});
			
		}
		scroll_plaatjes();
		
	})
