/**
 * Requires jquery and jq-innerfade
 */
$(document).ready(function(){
	// clear the initial background
	boxes = $('body.home div.fade').get();
	numBoxes = boxes.length;

	// start the fade
	for (i=0; i < numBoxes; i++)
	{
		$(boxes[i]).css({background: '#FFF'})
			.innerfade({
			speed: 'slow', // can be 'slow', 'normal' or 'fast'
			timeout: 30000,  // milliseconds between slides (original was 4000)
			type: 'sequence', // can be 'sequence' or 'random'
			containerheight: '250px', // height of the containing box
			delay: (5000 * i) // delay before the 1st fade(original (200 * (numBoxes-i) - this way is from right to left)
	});
	}
});
