// JavaScript Document

function delivery_troca(id1,id2,id3,id4){
	document.getElementById(id1).style.display="block";
	document.getElementById(id2).style.display="none";
	document.getElementById(id3).style.display="none";
	document.getElementById(id4).style.display="none";
}
function delivery_desaparece(){
	document.getElementById('loja01').style.display="none";
	document.getElementById('loja02').style.display="none";
	document.getElementById('loja03').style.display="none";
	document.getElementById('loja04').style.display="none";
}


//EFEITO GALERIA

hs.graphicsDir = 'highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
//hs.dimmingOpacity = 0.75;

// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

//FUNÇÃO PÁGINA EVENTOS
function eventos_troca(id1,id2,id3,id4,id5,id6,id7,id8,id9,id10){
	document.getElementById(id1).style.display="block";
	document.getElementById(id2).style.display="none";
	document.getElementById(id3).style.display="none";
	document.getElementById(id4).style.display="none";
	document.getElementById(id5).style.display="none";
	document.getElementById(id6).style.display="none";
	document.getElementById(id7).style.display="none";
	document.getElementById(id8).style.display="none";
	document.getElementById(id9).style.display="none";
	document.getElementById(id10).style.display="none";
}

//FUNÇÃO PÁGINA CONTATO
function verifica_escrita (campo,texto_campo){
	
	var valor = document.getElementById(campo).value;
	if (valor == ""){
		document.getElementById(campo).value=texto_campo;
	}
}

//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

		

		<!-- Begin

		var how_many_ads = 4; // 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="img/img_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="img/img_home_02.jpg";

		width="658";

		height="440";

		}

		if (ad==3) {

		txt="";

		url="";

		alt="";

		banner="img/img_home_03.jpg";

		width="658";

		height="440";

		}

		if (ad==4) {

		txt="";

		url="";

		alt="";

		banner="img/img_home_04.jpg";

		width="658";

		height="440";

		}

		

		document.write('<center>');

		document.write('<a href=\"' + url + '\" target=\"_top\">');

		document.write('<img src=\"' + banner + '\" width=')

		document.write(width + ' height=' + height + ' ');

		document.write('alt=\"' + alt + '\" border=0><br>');

		document.write('<small>' + txt + '</small></a>');

		document.write('</center>');

		// End -->






