$(document).ready(function(){

	var transitionDelay = 4000;
	var fadeSpeed		= 1500;

	function changeImage() {
	    var first = $("div#insight-slideshow div").first();
		var current = $("div.current");
		var next = $(current).next();
		$(current).fadeOut(fadeSpeed, function(){});
		$(next).addClass("current");
		$(current).removeClass("current");
		$(next).fadeIn(fadeSpeed, function(){});
		$(first).appendTo("div#insight-slideshow"); 
	}
	
	$(function(){ 
		setInterval( 
			function(){ changeImage(); }, 
			transitionDelay
		); 
	});
	
});
