function cycleImages(img_div){
	var numImg =  $(img_div+" img").length;
	if(numImg > 1){
		var current = $(img_div+" img.active");
		if(current.lenght == 0) current = $(img_div+" img:last");			
		current.fadeOut('normal').removeClass('active');
					
		var next = current.next();
		if(next.length == 0) next=$(img_div+" img:first");
				
		next.fadeIn('normal');
		next.addClass('active');
	}
}
$(document).ready(function(){
	var cycle =	setInterval("cycleImages('#slideshow1')", 5000);
	var cycle =	setInterval("cycleImages('#slideshow2')", 5000);
	var cycle =	setInterval("cycleImages('#slideshow3')", 5000);
});
