fotos = [] ;
    texto = [];
    i = 0 ;

    fotos[0] = 'Fotos_site/2008/2008.jpg' ;
    texto[0] = 'Foto - 2008' ;

    fotos[1] = 'Fotos_site/2008/2008_1.jpg' ;
    texto[1] = 'Foto - 2008' ;
	
    fotos[2] = 'Fotos_site/2008/2008_2.jpg' ;
    texto[2] = 'Foto - 2008' ;
	
	fotos[3] = 'Fotos_site/2008/2008_3.jpg' ;
    texto[3] = 'Foto - 2008' ;
	
	fotos[4] = 'Fotos_site/2008/2008_4.jpg' ;
    texto[4] = 'Foto - 2008' ;
	
	fotos[5] = 'Fotos_site/2008/2008_5.jpg' ;
    texto[5] = 'Foto - 2008' ;
	
	fotos[6] = 'Fotos_site/2008/2008_6.jpg' ;
    texto[6] = 'Foto - 2008' ;
	
	fotos[7] = 'Fotos_site/2008/2008_7.jpg' ;
    texto[7] = 'Foto - 2008' ;
	
	fotos[8] = 'Fotos_site/2008/2008_8.jpg' ;
    texto[8] = 'Foto - 2008' ;
	
	fotos[9] = 'Fotos_site/2008/2008_9.jpg' ;
    texto[9] = 'Foto - 2008' ;
	
	fotos[10] = 'Fotos_site/2008/2008_10.jpg' ;
    texto[10] = 'Foto - 2008' ;
	
	fotos[11] = 'Fotos_site/2008/2008_11.jpg' ;
    texto[11] = 'Foto - 2008' ;
	
	fotos[12] = 'Fotos_site/2008/2008_12.jpg' ;
    texto[12] = 'Foto - 2008' ;
	
	fotos[13] = 'Fotos_site/2008/2008_13.jpg' ;
    texto[13] = 'Foto - 2008' ;
	
	fotos[14] = 'Fotos_site/2008/2008_14.jpg' ;
    texto[14] = 'Foto - 2008' ;


   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 15 </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);
        }
    }

