function banner_g()
{
	var caminho = new Array(5)

	caminho[0] = "<a href='samcilhosp.htm'><img src = '../imagens/samcil.gif' border='0'></a>"
	caminho[1] = "<img src = '../imagens/contador2.gif' border='0'>"
	caminho[2] = "<a href='sindicoomotos.htm'><img src = '../imagens/arakaki.gif' border='0'></a>"
	caminho[3] = "<a href='publicidade.htm'><img src = '../imagens/anuncio.gif' border='0'></a>"
	caminho[4] = "<a href='informa.htm'><img src = '../imagens/informa.gif' border='1'></a>"
	
	var escolha = Math.random() * 5
	
	var escolha = parseInt(escolha)
	
	teste.innerHTML = caminho[escolha]
}

function banner_p()
{
	var z = new Array(12)

	z[0] = "../imagens/coopagro.gif"
	z[1] = "../imagens/coopcons.gif"
	z[2] = "../imagens/coopcred.gif"
	z[3] = "../imagens/coopesp.gif"
	z[4] = "../imagens/coophab.gif"
	z[5] = "../imagens/coopinfra.gif"
	z[6] = "../imagens/coopminer.gif"
	z[7] = "../imagens/coopprod.gif"
	z[8] = "../imagens/coopsaude.gif"
	z[9] = "../imagens/cooptrans.gif"
	z[10] = "../imagens/cooptrab.gif"
	z[11] = "../imagens/cooptur.gif"

	var num = Math.random() * 12
	var num = parseInt(num)
	document.images["troca1"].src = z[num]
	
	var num = Math.random() * 12
	var num = parseInt(num)
	document.images["troca2"].src = z[num]
	
	var num = Math.random() * 12
	var num = parseInt(num)
	document.images["troca3"].src = z[num]
	
	var num = Math.random() * 12
	var num = parseInt(num)
	document.images["troca4"].src = z[num]

	var num = Math.random() * 12
	var num = parseInt(num)
	document.images["troca5"].src = z[num]
	
	var num = Math.random() * 12
	var num = parseInt(num)
	document.images["troca6"].src = z[num]
}

function troca_anuncio()
{
	var x = new Date
	var s = x.getSeconds()
	var m = x.getMinutes()
	var z = ""
	var name

		if (s < 30)
		{
			document.images["troca1"].src = "../imagens/coopagro.gif "
			document.images["troca2"].src = "../imagens/coopcons.gif"
			document.images["troca3"].src = "../imagens/coopcred.gif"
			document.images["troca4"].src = "../imagens/coopesp.gif"
			document.images["troca5"].src = "../imagens/cooptrab.gif"
			document.images["troca6"].src = "../imagens/coopinfra.gif"
		}
		else
		{
			document.images["troca1"].src = "../imagens/coopminer.gif"
			document.images["troca2"].src = "../imagens/coopprod.gif"
			document.images["troca3"].src = "../imagens/coopsaude.gif"
			document.images["troca4"].src = "../imagens/cooptrans.gif"
			document.images["troca5"].src = "../imagens/cooptrab.gif"
			document.images["troca6"].src = "../imagens/cooptur.gif"
		}
	window.defaultStatus="SINDICOOPERATIVAS - O Portal das Cooperativas!"
	setTimeout("troca_anuncio()",1000)
}

function cursor()
{
	troca1.style.cursor = "hand"
	troca2.style.cursor = "hand"
	troca3.style.cursor = "hand"
	troca4.style.cursor = "hand"
	troca5.style.cursor = "hand"
	troca6.style.cursor = "hand"

//tipos de cursor: help - hand - crosshair - text

	setTimeout("cursor()",1000)
}

function anuncio ()
{
	window.alert ("Desculpe-nos o transtorno, estamos em manutenção!!!\nCaso deseje visualizar as páginas de anúncio,\nfavor voltar a página inicial e clicar no banner desejado.\nO Sindicooperativas agradece!!!")
}

function verfonte()
{
	if (event.button==2)
	{
		window.alert('SINDICOOPERATIVAS')
	}
document.onmousedown=verfonte
}

function barrastatus()
{
window.defaultStatus="SINDICOOPERATIVAS - O Portal das Cooperativas!"
}
