// JavaScript Document
<script language="JavaScript" type="text/JavaScript">
 
 // Set slideShowSpeed (milliseconds)
 var slideShowSpeed = 6000 
 // Duration of crossfade (seconds)
 var crossFadeDuration = 3
 
 // Specify the image files
 var Pic = new Array() // don't touch this
 // to add more images, just continue
 // the pattern, adding to the array below

/*
Pic[1] = 'textos/fotos/conceitosustentabilidade_mini.jpg'

Pic[2] = 'textos/fotos/Ecorun_logo_mini.jpg'

Pic[3] = 'textos/fotos/fabio_running_mini.jpg'

Pic[4] = 'textos/fotos/laercio_mini.jpg'
*/

<? return_foto(); ?>

 var t
 var j = 1
 var p = Pic.length
 var pos = j
 
 var preLoad = new Array()
 
 function preLoadPic(index)
 {
                 if (Pic[index] != ''){
                                 window.status='Loading : '+Pic[index]
                                 preLoad[index] = new Image()
                                 preLoad[index].src = Pic[index]
                                 Pic[index] = ''
                                 window.status=''
                 }
 }
 
 function runSlideShow(){
        if (document.all){
                         document.images.SlideShow.style.filter="blendTrans(duration=2)"
                                 document.images.SlideShow.style.filter= "blendTrans(duration=crossFadeDuration)"
           document.images.SlideShow.filters.blendTrans.Apply()
                 }
                 document.images.SlideShow.src = preLoad[j].src
                 if (document.all){
                        document.images.SlideShow.filters.blendTrans.Play()
                 }
                 
                 pos = j
 
                 j = j + 1
                 if (j > (p-1)) j=1
                 t = setTimeout('runSlideShow()', slideShowSpeed)
                 preLoadPic(j)
 }
 
 preLoadPic(j)

</script>