var photos=new Array()
var photoslink=new Array()
var which=0
photos[0]="../wedding-photos/000/00.jpg"
photos[1]="../wedding-photos/000/01.jpg"
photos[2]="../wedding-photos/000/02.jpg"
photos[3]="../wedding-photos/000/03.jpg"
photos[4]="../wedding-photos/000/04.jpg"
photos[5]="../wedding-photos/000/05.jpg"
photos[6]="../wedding-photos/000/06.jpg"
photos[7]="../wedding-photos/000/07.jpg"
var linkornot=0
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""
photoslink[3]=""
photoslink[4]=""
photoslink[5]=""
photoslink[6]=""
photoslink[7]=""
photoslink[8]=""
photoslink[9]=""
var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}
function applyeffectnext(){
if (document.all){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*1+7)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}}
function applyeffectprev(){
if (document.all){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*1+6)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}}
function playeffect(){
if (document.all)
photoslider.filters.revealTrans.play()
}
function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}
function backward(){
if (which>0){
which--
applyeffectprev()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}}
function forward(){
if (which<photos.length-1){
which++
applyeffectnext()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}}
function transport(){
window.location=photoslink[which]
}
var m3images=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
m3images[i]=new Image()
m3images[i].src=preloadimages.arguments[i]
}}
preloadimages("../wedding-photos/000/01.jpg","../wedding-photos/000/02.jpg","../wedding-photos/000/03.jpg","../wedding-photos/000/04.jpg","../wedding-photos/000/05.jpg","../wedding-photos/000/06.jpg","../wedding-photos/000/07.jpg")