$.fn.pictureChanger = function(speed)
{
	var position= 0;
	var id = '#' + this.attr('id');
	var nChildren = $(id).children().length;
	
	$(document).everyTime(speed, function() {
		if(position >= nChildren - 1) position = nChildren - 1;
		$(id + ' div:eq(' + position + ')').fadeOut(1000);

		position++;

		if(position > nChildren - 1) position = 0;
		$(id + ' div:eq(' + (position) + ')').fadeIn(1000);
	});
}