var arrPasta = new Array();
arrPasta[0] = "campeonato";
arrPasta[1] = "campeonato";


function mostraFoto(idEvento,idFoto,intPasta)
{
	/*evento_1 = new Array(); // <<< Para cada evento tem q colocar o número total de fotos + 1
	evento_1[0]=["Parque Villa Lobos"]; //Não alterar!!!
	evento_1[1]=["Parque Villa Lobos"]; //Legenda foto 1
	evento_1[2]=["Parque Villa Lobos"]; //Legenda foto 2
	evento_1[3]=["Parque Villa Lobos"]; //Legenda foto 3
	evento_1[4]=["Parque Villa Lobos"]; //Legenda foto 4
	evento_1[5]=["Parque Villa Lobos"]; //Legenda foto 5
	
	
	
	evento_2 = new Array(); // <<< Para cada evento tem q colocar o número total de fotos + 1
	evento_2[0]=[""]; //Não alterar!!!
	evento_2[1]=["Anglo Sergipe"]; //Legenda foto 13
	evento_2[2]=["Anglo Sergipe"]; //Legenda foto 14
	evento_2[3]=["Anglo Sergipe"]; //Legenda foto 15
	evento_2[4]=["Anglo Sergipe"]; //Legenda foto 16
	evento_2[5]=["Faculdade Anhembi Morumbi"]; //Legenda foto 17

*/
/* ----- PARA O EVENDO DE TROCA DE DOS GANHADORES DE t9------- */
	//Troca o Zoom

/*    var qtdImgEvento1 = (evento_1.length)-1; 
    var qtdImgEvento2 = (evento_2.length)-1; 

    for(var indY=1; indY<=qtdImgEvento1; indY++) {
       document.getElementById("evento1_foto_"+indY).style.display = 'none';
    }

    for(var indY=1; indY<=qtdImgEvento2; indY++) {
       document.getElementById("evento2_foto_"+indY).style.display = 'none';
    }


document.getElementById("evento_"+idEvento+"_foto_"+idFoto).style.display = 'block';

	//Troca a legenda
	if(idEvento == 1)
	{
		document.getElementById("legendaFoto").innerHTML = evento_1[idFoto];
	}
	
	if(idEvento == 2)
	{
		document.getElementById("legendaFoto").innerHTML = evento_2[idFoto];
	}*/
}

function trocaFoto(qualArea,qualFoto,qualLegenda) {
	document.getElementById('aFoto').src = 'Shared/img/galeria/'+qualArea+'/Ampliada/' + qualFoto+'.jpg';
	document.getElementById('aFoto').alt = qualLegenda;		
	document.getElementById('legendaFoto').innerHTML = qualLegenda;
}

function trocaEvento(idEvento,intPasta)
{
	//Colocar a quantidade de eventos
	var qtdEventos = 2;
	
	//Titulos dos eventos
	tituloEvento = new Array()// <<< Quantidade total de eventos + 1
	tituloEvento[0]=[""]; //Não alterar!!!
	tituloEvento[1]=["Campeonato T9"]; //Titulo do evento 1
	tituloEvento[2]=["Campanha Embaixadores T9"]; //Titulo do evento 2
	
	//Esconde o evento atual
	for(var ind=1; ind<=qtdEventos; ind++)
	{
		document.getElementById("evento"+ind).style.display = 'none';	
	}
	
	//Mostra o evento selecionado
	document.getElementById("evento"+idEvento).style.display = 'block';	
	mostraFoto(idEvento,1,intPasta);
	//document.getElementById("titEvento").innerHTML = tituloEvento[idEvento];
}

function trocaEventoLinha(idEvento)
{
	//Colocar a quantidade de eventos
	var qtdEventos = 10;
	
	//Esconde o evento atual
	for(var ind=1; ind<=qtdEventos; ind++)
	{
		document.getElementById("linhaTempo"+ind).style.display = 'none';	
	}
	
	//Mostra o evento selecionado
	document.getElementById("linhaTempo"+idEvento).style.display = 'block';	
	
}

//aplica flash

function aplicaFlash(swf, width, height, wmode, cache) {
	var noCache = "";	
	if (cache == undefined || cache == '') {var noCache = "?" + new Date();}
	if (wmode != "opaque" && wmode != "transparent") {wmode = "transparent";}
	var monta_swf = "";
	monta_swf += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+ width +"' height='"+ height +"' title=''>";
	monta_swf += "<param name='movie' value='"+ swf + noCache +"'>";
	monta_swf += "<param name='quality' value='high'>";
	monta_swf += "<param name='menu' value='0'>";
	monta_swf += "<param name='wmode' value='"+ wmode +"'>";
	monta_swf += "<embed src='"+ swf + noCache +"' quality='high' wmode='"+ wmode +"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ width +"' height='"+ height +"'></embed>";
	monta_swf += "</object>";
	document.write(monta_swf);
}

function aplicaFlashHome(swf, width, height, wmode, cache) {
	var noCache = "";	
	if (cache == undefined || cache == '') {var noCache = "?" + new Date();}
	if (wmode != "opaque" && wmode != "quality") {wmode = "quality";}
	var monta_swf = "";
	monta_swf += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+ width +"' height='"+ height +"' title=''>";
	monta_swf += "<param name='movie' value='"+ swf + noCache +"'>";
	monta_swf += "<param name='quality' value='high'>";
	monta_swf += "<param name='menu' value='0'>";
	monta_swf += "<param name='wmode' value='"+ wmode +"'>";
	monta_swf += "<embed src='"+ swf + noCache +"' quality='high' wmode='"+ wmode +"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ width +"' height='"+ height +"'></embed>";
	monta_swf += "</object>";
	document.write(monta_swf);
}

/*function aplicaFlash ( fileSource , objIdName , width , height ) {
	document.write ('<object class="menuInterno" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + width + '" height="' + height + '" id="' + objIdName + '" align="top">');
	document.write ('	<param name="allowScriptAccess" value="sameDomain" />');
	document.write ('	<param name="allowFullScreen" value="false" />');
	document.write ('	<param name="movie" value="' + fileSource + '" />');
	document.write ('	<param name="quality" value="high" />');
	document.write ('	<param name="wmode" value="transparent" />');
	document.write ('	<param name="scale" value="noscale">');
	document.write ('	<embed src="' + fileSource + '" quality="high" wmode="transparent" width="' + width + '" height="' + height + '" name="' + objIdName + '" align="top" allowscriptaccess="sameDomain" allowfullscreen="false" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" scale="noscale" />');
	document.write ('</object>');
	document.body.style.overflow = 'hidden';
}*/

