
var g=1;
var photos=new Array()


photos[0]= "face1.jpg"
photos[1]= "dom3.jpg"
photos[2]= "pokojkoc.jpg"
photos[3]= "tv1.jpg"
photos[4]= "tv2.jpg"
photos[5]= "lazienka.jpg"
photos[6]= "kominek2.jpg"
photos[7]= "saunakab.jpg"
photos[8]= "sauna2.jpg"
photos[9]="sauna3.jpg"
photos[10]="sauna4.jpg"


photos[21]="dojazd.jpg"
photos[22]="polska2.JPG"
photos[23]="lotnicze.jpg"



function applyeffect()
{
if (document.all)
{
photo.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photo.filters.revealTrans.stop()
photo.filters.revealTrans.apply()
}
}

function playeffect()
{
if (document.all)
photo.filters.revealTrans.play()
}


function forward(wich)
{
applyeffect()
playeffect()

if (wich == 10)
  {
    g = 0
  } else
  
g++
document.images.photo.src=photos[wich]
}


function play(ktory)
{
applyeffect()
playeffect()
document.images.photo.src=photos[ktory]
}



