//--------------------------------------------------------------------------------------------------
// All material contained within this and associated downloaded pages is the property of 4thorder(TM) 
// Copyright © 2005.  All rights reserved.
//
// Author: Michael Falatine || Authors email: 4thorder@4thorder.us
//
// USAGE: You may use this script for commercial or personal use, however, the copyright is retained-
// by 4thorder (TM).
//
// For other free Scripts visit: http://www.4thorder.us/Scripts/
//---------------------------------------------------------------------------------------------------
// :::::::::::::::::::::::::
// ::: Initialize Page ::::
// :::::::::::::::::::::::::

var photos=new Array()
var photoslink=new Array()
var which=0
//define images.:
photos[0]="gallery/images/infamousnetwork_2_catalog.jpg" 
photos[1]="gallery/images/infamousnetwork_3_catalog.jpg"
photos[2]="gallery/images/infamousnetwork_4_catalog.jpg"
photos[3]="gallery/images/infamousnetwork_5_catalog.jpg"
photos[4]="gallery/images/infamousnetwork_6_catalog.jpg"
photos[5]="gallery/images/infamousnetwork_7_catalog.jpg"
photos[6]="gallery/images/rootconcepts_8_catalog.jpg"
photos[7]="gallery/images/rootconcepts_9_catalog.jpg"
photos[8]="gallery/images/rootconcepts_10_catalog.jpg"
photos[9]="gallery/images/rootconcepts_11_catalog.jpg"
photos[10]="gallery/images/rootconcepts_12_catalog.jpg"
photos[11]="gallery/images/rootconcepts_13_catalog.jpg"
photos[12]="gallery/images/rootconcepts_14_catalog.jpg"
photos[13]="gallery/images/rootconcepts_15_catalog.jpg"
photos[14]="gallery/images/rootconcepts_16_catalog.jpg"
//Specify images should be linked or not (1=linked)
var linkornot=0

//Set URLs for above images.
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""
photoslink[3]=""
photoslink[4]=""
photoslink[5]=""
photoslink[6]=""
photoslink[7]=""
photoslink[8]=""
photoslink[9]=""
photoslink[10]=""
photoslink[12]=""
photoslink[13]=""
photoslink[14]=""

//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]
}
