

//FUNÇÃO TROCA DE IMAGEM NA HOME


		// The original script from...

		// The JavaScript Source!! http://javascriptsource.com

		// copiado e adaptado por: SITENOVO - net community

		// http://www.sitenovo.tk - email: sitenovo@ig.com.br

		
function imagem_home(){
		<!-- Begin

		var how_many_ads = 3; // se for adicionar mais imgs, precisa mudar os nmeros de acordo com o numero de imgs que for ser exibido

		var now = new Date()

		var sec = now.getSeconds()

		var ad = sec % how_many_ads;

		ad +=1;

		if (ad==1) {

		txt=""; // aqui vai um texto que ficará embaixo do banner (foto, imagem, ou seja lá o que for) OBS: não esqueça de mudar o numero onde está marcado em vermelho

		url=""; // a URL do banner se houver, pode deixar em branco caso seja fotos, ou figuras sem URL

		alt=""; // aqui é o texto que aparecerá quando o mouse for colocado sobre o banner (foto, imagem ou seja lá o que for)

		banner="url(img/bg_home.jpg)"; // aqui é o caminho de onde irá puxar o banner (foto, imagem ou seja lá o que for)

		width="658"; // é necessario citar o tamanho do banner (foto, imagem, etc) para que o mesmo possa ser visualizado

		height="440";

		}

		if (ad==2) {

		txt="";

		url="";

		alt="";

		banner="url(img/bg_home2.jpg)";

		width="658";

		height="440";

		}

		if (ad==3) {

		txt="";

		url="";

		alt="";

		banner="url(img/bg_home3.jpg)";

		width="658";

		height="440";

		}



		document.getElementById('bg_home').style.backgroundImage=banner;
		document.getElementById('bg_home').style.backgroundRepeat="no-repeat";
		document.getElementById('bg_home').style.backgroundColor="#fff3e5";
		document.getElementById('bg_home').style.backgroundPosition="center top";



}


