var imageview = function(count) { // aantal artiesten paramater
	var pos = 0; // startpositie links
	var step = 301; // aantal px naar links of rechts bij klik
	var max = (count * 301) - 602; // max aantal px naar links

	$("#arrow-left").click(function() {
		if (pos <= -max) {
			return;
		}
		pos = pos - step; // huidige positie naar links schuiven met 301px
		//$("#ScrollContainer").css('marginLeft', pos + 'px');
		$("#ScrollContainer").animate({marginLeft: pos +'px'}, 600); // smooth schuiven naar links van div met delay 600
	});
	$("#arrow-right").click(function() {
		if (pos >= 0) {
			return;
		}
		pos = pos + step; // huidige posite naar rechts met 301px
		//$("#ScrollContainer").css('marginLeft', pos + 'px');
		$("#ScrollContainer").animate({marginLeft: pos +'px'}, 600); // smooth schuiven naar echts van div met delay 600
	});
}

var go = function() {
    $('#big_container').animate({left: '-=700px'}, 3000, null, function() {
        html = $('#big_container div:first'); // even copy nemen van de eerste div die naar links is geschoven en in var html steken
        $('#big_container div:first').remove(); // de eerste div verwijderen
        $('#big_container').append(html); // de eerste div die we verwijderd hebben terug achteraan toevoegen in big_container

        $('#big_container').css('left', ''); // zet big_container terug left op 0:

        setTimeout("go()", 2500); // na 2,5 seconden terug dezelfde functie aanroepen
    });
}
