
$(function(){
				
	var counter = 0;
	
	function moveRight () {
		if (counter > 2)
			counter = 0;
		else
			counter++;
			animeerDiv();
	}
	
	function moveLeft () {
		if (counter < 1)
			counter = 3;
		else
			counter--;
			animeerDiv();
	} 
	
	function animeerDiv () {
		$('div#houder').animate({marginLeft: -(counter * 290) + 'px'}, 1000, "swing");
	}
	
	$('#buttonRechts').click(function () { moveRight() });
	
	$('#buttonLinks').click(function () { moveLeft() });


});
