var linkornot=0; //images linked? 0 = no; 1 = yes

var delay=4; //delay in seconds

var which=0;



var photos=new Array(

"images/home_rotate1.jpg",

"images/home_rotate2.jpg",

"images/home_rotate3.jpg",

"images/home_rotate4.jpg",

"images/home_rotate5.jpg",

"images/home_rotate6.jpg",

"images/home_rotate7.jpg",

"images/home_rotate8.jpg",

"images/home_rotate9.jpg",

"images/home_rotate10.jpg",

"images/home_rotate11.jpg",

"images/home_rotate12.jpg"


)



var photoslink=new Array("","")



var photosname=new Array("","")



var preloadedimages=new Array()



for (i=0;i<photos.length;i++){

  preloadedimages[i]=new Image()

  preloadedimages[i].src=photos[i]

}



function applyeffect(){

  

  if (document.all){

  

    photoslider.filters.revealTrans.Transition=Math.floor(5)

	 

//Math.floor(5) //Math.random()*23  // Math.floor(Math.random()*23)



    photoslider.filters.revealTrans.stop()



    photoslider.filters.revealTrans.apply()

		

  }

}



function playeffect(){

  if (document.all) photoslider.filters.revealTrans.play()

}



function keeptrack(){

  document.images.photoslider.title=photosname[which]

}



function forward(){

if (which<photos.length-1){

  which++

  applyeffect()

  document.images.photoslider.src=photos[which]

  playeffect()

  keeptrack()

}

else which=-1

  setTimeout("forward()",delay*1000)

}



function transport(){

  window.location=photoslink[which]

}



if (linkornot==1)

document.write('<a href="javascript:transport()">')

document.write('<img src="'+photos[0]+'" name="photoslider" style="filter:revealTrans(duration=2,transition=23)" border=0>')

if (linkornot==1)

document.write('</a>')

setTimeout("forward()",delay*1000)
