

function recentSlideshow(id){

	var scroll = new Fx.Scroll('recentSlideshow'+id, {
		wait: false,
		duration: 400,
		transition: Fx.Transitions.Cubic.easeOut
	});
	
	var imgButtons = new Array();
	imgButtons = $$("#projectImageControls"+id+" a");
	
	imgButtons.each(function(a, number){
		a.addEvent('click', function(event){
			var href = a.href;
			var pos = href.indexOf('#');
			pos = pos + 1;
			var image = href.substring(pos,href.length);
			
			imgButtons.each(function(b){
				b.setProperty('class', 'imageScrollButton' );
			});
			
			a.setProperty('class', 'imageScrollButtonCurrent' );
			
			event = new Event(event).stop();
			scroll.start(372 * number,0)
		});
	});	
	
}