var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want:
photos[0]="/images/gallery/p3.jpg"
photos[1]="/images/gallery/p1.jpg"
photos[2]="/images/gallery/p2.jpg"
photos[3]="/images/gallery/p6.jpg"
photos[4]="/images/gallery/p9.jpg"
photos[5]="/images/gallery/p7.jpg"
photos[6]="/images/gallery/p8.jpg"
photos[7]="/images/gallery/p10.jpg"
photos[8]="/images/gallery/p11.jpg"
photos[9]="/images/gallery/p12.jpg"
photos[10]="/images/gallery/p13.jpg"
photos[11]="/images/gallery/p14.jpg"
photos[12]="/images/gallery/p15.jpg"

//Specify whether images should be linked or not (1=linked)
var linkornot=0

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]="/images/gallery/models.htm"
photoslink[1]="/images/gallery/models.htm"
photoslink[2]="/images/gallery/models.htm"
photoslink[3]="/images/gallery/models.htm"
photoslink[4]="/images/gallery/models.htm"
photoslink[5]="/images/gallery/models.htm"
photoslink[6]="/images/gallery/models.htm"
photoslink[7]="/images/gallery/models.htm"
photoslink[8]="/images/gallery/models.htm"
photoslink[9]="/images/gallery/models.htm"
photoslink[10]="/images/gallery/models.htm"
photoslink[11]="/images/gallery/models.htm"
photoslink[12]="/images/gallery/models.htm"

//do NOT edit pass this line

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){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}


function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}

// +++++++++++++++++++ left-col thumb gallery ++++++++++++++++++++++ //

var thumbs=new Array()
var thumbslink=new Array()
var whicht=0

var preloadedtimages=new Array()
for (i=0;i<thumbs.length;i++){
preloadedtimages[i]=new Imaget()
preloadedtimages[i].src=thumbs[i]
}

function applyeffectt(){
if (document.all && photoslidert.filters){
photoslidert.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslidert.filters.revealTrans.stop()
photoslidert.filters.revealTrans.apply()
}
}

function playeffectt(){
if (document.all && photoslidert.filters)
photoslidert.filters.revealTrans.play()
}


//define images. You can have as many as you want:
thumbs[0]="/images/gallery/p3t.jpg"
thumbs[1]="/images/gallery/p1t.jpg"
thumbs[2]="/images/gallery/p2t.jpg"
thumbs[3]="/images/gallery/p6t.jpg"
thumbs[4]="/images/gallery/p9t.jpg"
thumbs[5]="/images/gallery/p7t.jpg"
thumbs[6]="/images/gallery/p8t.jpg"
thumbs[7]="/images/gallery/p10t.jpg"
thumbs[8]="/images/gallery/p11t.jpg"
thumbs[9]="/images/gallery/p12t.jpg"
thumbs[10]="/images/gallery/p13t.jpg"
thumbs[11]="/images/gallery/p14t.jpg"
thumbs[12]="/images/gallery/p15t.jpg"

function keeptrackt(){
window.status="Imaget "+(whicht+1)+" of "+thumbs.length
}

function backwardt(){
if (whicht>0){
whicht--
applyeffect()
document.images.photoslidert.src=thumbs[whicht]
playeffect()
keeptrack()
}
}

function forwardt(){
if (whicht<thumbs.length-1){
whicht++
applyeffectt()
document.images.photoslidert.src=thumbs[whicht]
playeffectt()
keeptrackt()
}
}

function transportt(){
window.location=photoslinkt[whicht]
}

