Array.prototype.shuffle = function( b ) {
 var i = this.length, j, t;
 while( i ) {
  j = Math.floor( ( i-- ) * Math.random() );
  t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i];
  this[i] = this[j];
  this[j] = t;
 }
 return this;
};

function Banner(){
	var Vetor = new Array('img/banner_01.jpg','img/banner_06.jpg','img/banner_10.jpg');
	//Vetor.shuffle();
	var a = 0;	
	function Efeito(){
		jQuery('#imagem').fadeTo(300,0,function(){
			clearInterval(intervalo);
			(a==Vetor.length-1)?a=0:a++;
			jQuery('#imagem').css("background-image","url("+Vetor[a]+")");
			jQuery('#imagem').fadeTo(600,1,function(){
				window.setTimeout(Efeito,5000);
			});
		});
	}
	var intervalo = window.setInterval(Efeito,5000);
}
