
	$(document).ready(function(){
			
		$('#slider').cycle({ 
			fx:     'fade', 
			timeout:  5000,
			next: "#next",
			prev: "#prev",
			speed:1000
		});
		
		$('#flashit').each(function(i) {

			// Get the image, set the count and an interval.
			var img = $(this);
			img[0].$count = 0;
			img[0].$interval = setInterval(function() {
			
				// Animate the opacity over .2 seconds
				img.animate({opacity:.7},400,function()
				{
				// When finished, animate it back to solid.
				img.animate({opacity:1},200);
				});
				// Clear the interval once we've reached 3.
				if (++img[0].$count>=235)
				{
				clearInterval(img[0].$interval);
				}
				
			},1000);
			
		});
	
	});

