fotos = [] ;
    texto = [];
    i = 0 ;

    fotos[0] = 'Fotos_site/2009/faixas/faixas.jpg' ;
    texto[0] = 'Entrega das faixas e botons aos Peões e Prendas do CTG Barbosa Lessa' ;

    fotos[1] = 'Fotos_site/2009/faixas/faixas1.jpg' ;
    texto[1] = 'Entrega do boton ao 1º Peão Monarca - Edson Machado' ;
	
    fotos[2] = 'Fotos_site/2009/faixas/faixas2.jpg' ;
    texto[2] = 'Entrega do boton ao 1º Peão Xiru - Ademir Kreling' ;
	
	fotos[3] = 'Fotos_site/2009/faixas/faixas3.jpg' ;
    texto[3] = 'Entrega da faixa à 2ª Prenda Xiru - Maria Lene Z. Kreling' ;
	
	fotos[4] = 'Fotos_site/2009/faixas/faixas4.jpg' ;
    texto[4] = 'Entrega da faixa à 1ª Prenda Xiru - Rose Mieko' ;
	
	fotos[5] = 'Fotos_site/2009/faixas/faixas5.jpg' ;
    texto[5] = 'Entrega do boton ao 1º Peão Adulto - Estevan Schultz' ;
	
	fotos[6] = 'Fotos_site/2009/faixas/faixas6.jpg' ;
    texto[6] = 'Entrega da faixa à 2ª Prenda Juvenil - Deise Maders' ;
	
	fotos[7] = 'Fotos_site/2009/faixas/faixas7.jpg' ;
    texto[7] = 'Entrega da faixa à 1ª Prenda Juvenil - Camilla Koch Wagner' ;
	
	fotos[8] = 'Fotos_site/2009/faixas/faixas8.jpg' ;
    texto[8] = 'Entrega da faixa à 2ª Prenda Adulta - Emanuely Schultz' ;
	
	fotos[9] = 'Fotos_site/2009/faixas/faixas9.jpg' ;
    texto[9] = 'Entrega da faixa à 1ª Prenda Adulta - Priscilla Koch Wagner' ;
	

   function next() {
	if ( (i+1) < fotos.length ) show( i+1 ) ;
}
   
    function prev() {
	if ( i > 0 ) show( i-1 ) ;
}
   

    function show( n ) {
        i = n ;
        document.getElementById("foto").src = fotos[i] ;
        document.getElementById("legenda").innerHTML ='<p>' + texto[i] + '</p>' ;
        document.getElementById("contador").innerHTML = '<p>Foto ' + (n+1) + ' de 10 </p>' ;
        setOpacities();
    }
  
    function setOpacities() {
        var browser = navigator.appName;
       
        if (browser == "Netscape") {
            filtro1 = ".MozOpacity = '0.5'";
            filtro2 = ".MozOpacity = '1.0'";
        } else {
            filtro1 = ".filter = 'alpha(opacity=50)'";
            filtro2 = ".filter = 'alpha(opacity=100)'";
        }
       
        if (i == 0) {
            eval("document.getElementById('antes').style" + filtro1);
        } else {
            eval("document.getElementById('antes').style" + filtro2);
        }
   
        if ((i+1) == fotos.length) {
            eval("document.getElementById('depois').style" + filtro1);
        } else {
            eval("document.getElementById('depois').style" + filtro2);
        }
    }
