
var imgs = new Array(), captions = new Array(), current=0;
	
$(window).load(function(){

	imgs = $("#imageContainer").children("img");
	captions = $("#imageCaption").children("p");
	
	changePic();

});

function changePic() {	
	$(imgs[current]).fadeOut("slow");
	$(captions[current]).fadeOut("slow");

	if (current==12) {
		current = 1;
	} else {
		current = current +1;
	}
	
	$(imgs[current]).fadeIn("slow");
	$(captions[current]).fadeIn("slow");
	
	setTimeout(changePic,3000);
}	
