
var photos=new Array()
var clicklink="http://www.mvol.com/click/?link=3260"
var photoslink = new Array()
var which=0

//Specify whether images should be linked to web site or not (0=not linked 1=linked)
var linkornot=0

//define images. You can have as many as you want:1b-windley.gif
photos[0]="images/testimonials/2008Comment.jpg"
photos[1]="images/testimonials/Comment2.jpg"
photos[2]="images/testimonials/Comment3.jpg"
photos[3]="images/testimonials/11washington.jpg"
photos[4]="images/testimonials/7mcdowell.jpg"
photos[5]="images/testimonials/10johnston.jpg"
photos[6]="images/testimonials/9boyle.jpg"
photos[7]="images/testimonials/8gardner.jpg"
photos[8]="images/testimonials/1a-glennies.jpg"
photos[9]="images/testimonials/1b-windley.gif"
photos[10]="images/testimonials/1heyer.jpg"
photos[11]="images/testimonials/2vigezzi.jpg"
photos[12]="images/testimonials/3owens.jpg"
photos[13]="images/testimonials/4gilliam.jpg"
photos[14]="images/testimonials/5harris.jpg"
photos[15]="images/testimonials/6potter.jpg"

var Caption=new Array()
Caption[0]="<span class='title' align='right'>Dr. Pearlie Peters</span>";
Caption[1]="<span class='title' align='right'>Joy & Bryant</span>";
Caption[2]="<span class='title' align='right'>Julie</span>";
Caption[3]="<span class='title' align='right'>Georgia Washington</span>";
Caption[4]="<span class='title' align='right'>Alton McDowell</span>";
Caption[5]="<span class='title' align='right'>The Johnstons and Paige</span>";
Caption[6]="<span class='title' align='right'>Lori Boyle</span>";
Caption[7]="<span class='title' align='right'>Sidney and Venita Gardner</span>";
Caption[8]="<span class='title' align='right'>Johnette Ellis, Jamielle Walker, Glennice Bowen, and Thelma DaSilva.</span>";
Caption[9]="<span class='title' align='right'>Jacqueline Windley</span>";
Caption[10]="<span class='title' align='right'>JoAnn and Robert Heyer</span>";
Caption[11]="<span class='title' align='right'>Nalda Vigezzi</span>";
Caption[12]="<span class='title' align='right'>William Owens</span>";
Caption[13]="<span class='title' align='right'>Terri Gilliam</span>";
Caption[14]="<span class='title' align='right'>Gail and Bill Harris</span>";
Caption[15]="<span class='title' align='right'>Judith Potter</span>";

var TopCaption=new Array()
TopCaption[0]="<span class='title' align='right'>Guest Comments<br>2008</span>";
TopCaption[1]="<span class='title' align='right'>Guest Comments<br>2008</span>";
TopCaption[2]="<span class='title' align='right'>Guest Comments<br>2008</span>";
TopCaption[3]="<span class='title' align='right'>Guest Comments<br>2005</span>";
TopCaption[4]="<span class='title' align='right'>Guest Comments<br>2005</span>";
TopCaption[5]="<span class='title' align='right'>Guest Comments<br>2005</span>";
TopCaption[6]="<span class='title' align='right'>Guest Comments<br>2005</span>";
TopCaption[7]="<span class='title' align='right'>Guest Comments<br>2005</span>";
TopCaption[8]="<span class='title' align='right'>Guest Comments<br>2004</span>";
TopCaption[9]="<span class='title' align='right'>Guest Comments<br>2004</span>";
TopCaption[10]="<span class='title' align='right'>Guest Comments<br>2003</span>";
TopCaption[11]="<span class='title' align='right'>Guest Comments<br>2003</span>";
TopCaption[12]="<span class='title' align='right'>Guest Comments<br>2003</span>";
TopCaption[13]="<span class='title' align='right'>Guest Comments<br>2003</span>";
TopCaption[14]="<span class='title' align='right'>Guest Comments<br>2003</span>";
TopCaption[15]="<span class='title' align='right'>Guest Comments<br>2003</span>";

var arrayLength = photos.length


//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""

//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=12
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]
document.getElementById("CaptionBox").innerHTML= Caption[which];
document.getElementById("TopCaptionBox").innerHTML= TopCaption[which];
playeffect()
keeptrack()
}else{
which = photos.length-1
applyeffect()
document.images.photoslider.src=photos[which]
document.getElementById("CaptionBox").innerHTML= Caption[which];
document.getElementById("TopCaptionBox").innerHTML= TopCaption[which];
playeffect()
keeptrack()
}
}

function forward(){

if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
document.getElementById("CaptionBox").innerHTML= Caption[which];
document.getElementById("TopCaptionBox").innerHTML= TopCaption[which];
playeffect()
keeptrack()
}else{
which = 0
applyeffect()
document.images.photoslider.src=photos[which]
document.getElementById("CaptionBox").innerHTML= Caption[which];
document.getElementById("TopCaptionBox").innerHTML= TopCaption[which];
playeffect()
keeptrack()
}
}

function transport(){
window.location=clicklink 
}

