var stop = false;


$index = 0;

jQuery(document).ready(function() {
	nextImagez();
});


function nextImagez() {
	if (stop == true)
		return;
		jQuery('#image').fadeOut(1800, function() {
			
		
			var newimg = $('#slides img:eq(' + $index + ')').attr('src');
			jQuery('#image').attr('src', newimg);	
			jQuery('#image').fadeIn(1800, function() {
				schedule();
			});
		});
}


function schedule() {
	$index++;
	size = jQuery('#slides img').size();
	
	
	if ($index >= size)
		$index = 0;
	window.setTimeout("nextImagez()", 2500);
}
