﻿	var matriz=new Array();
		matriz[0]=Array("img/imagem_home01.jpg");
		matriz[1]=Array("img/imagem_home02.jpg");
		matriz[2]=Array("img/imagem_home03.jpg");
		matriz[2]=Array("img/imagem_home04.jpg");
		matriz[2]=Array("img/imagem_home05.jpg");
	
	function imgRandom(){
			var randomiza = Math.floor(Math.random()*matriz.length);
			if(document.getElementById("slide2")){
			document.getElementById("slide2").src = matriz[randomiza][0];
		}
	}
	imgRandom();
	
	setInterval("imgRandom()",4000);
    
slideshowimages("img/imagem_home01.jpg", "imgimagem_home02home2.jpg", "img/imagem_home03.jpg", "img/imagem_home04.jpg", "img/imagem_home05.jpg")

var slideshowspeed=4000
var whichlink=0
var whichimage=0

function slideit(){
  if (!document.images)
    return
    document.images.slide.src=slideimages[whichimage].src
    whichlink=whichimage

  if (whichimage<slideimages.length-1)
    whichimage++
  else
    whichimage=0
    setTimeout("slideit()",slideshowspeed)
}
slideit()
