//if (screen) {szer=screen.width;} else {szer=800;}
top.moveTo(0,0)
top.resizeTo(screen.availWidth,screen.availHeight)

var GalMax = 3
var ArchMax = 4
var j = 0
var k = 0
var Gal = new Array()
var Arch = new Array()
var preLoad = new Array()
var pL = new Array()
for (i = 0; i < GalMax; i++){
   Gal[i] = 'foto/galeria/male/'+i+'.jpg'
   preLoad[i] = new Image()
   preLoad[i].src = Gal[i]
}
for (l = 0; l < ArchMax; l++){
   Arch[l] = 'foto/archiwum/male/'+l+'.jpg'
   pL[l] = new Image()
   pL[l].src = Arch[l]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=3)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j ++
   if (j >= GalMax) j=0
   setTimeout('runSlideShow()', 5000)
}

function runSS(){
   if (document.all){
      document.images.SS.style.filter="blendTrans(duration=3)"
      document.images.SS.filters.blendTrans.Apply()      
   }
   document.images.SS.src = pL[k].src
   if (document.all){
      document.images.SS.filters.blendTrans.Play()
   }
   k ++
   if (k >= ArchMax) k=0
   setTimeout('runSS()', 4000)
}
