jQuery(document).ready(function(){

/* BANNER FADE */

	function textOut(i) {
		
		//alert(jQuery(".rotate:nth-child(" + i + ")").html());

		jQuery(".rotate:nth-child(" + i + ")").fadeOut(600);

		i = i + 1;

		setTimeout(function(){textIn(i)}, 700);
			
	 }
	
	function textIn(i) {

		var numDivs = jQuery(".rotate").length;

		if (i > numDivs) {

			i = 1;
			
		}

		jQuery(".rotate:nth-child(" + i + ")").fadeIn(700);

		setTimeout(function(){textOut(i)}, 2500);

	}

	jQuery(".rotate").css({"display" : "none"});
	jQuery(".rotate").css({"height" : "180px"});
	jQuery(".rotate").css({"width" : "980px"});
	textIn(1);
	
});