<!--
NewImg = new Array (
"photos/backstage/1.jpg",   
"photos/backstage/2.jpg",   
"photos/backstage/3.jpg",   
"photos/backstage/4.jpg",   
"photos/backstage/5.jpg",   
"photos/backstage/6.jpg",
"photos/backstage/7.jpg",
"photos/backstage/8.jpg",
"photos/backstage/9.jpg",
"photos/backstage/10.jpg",
"photos/backstage/11.jpg",
"photos/backstage/12.jpg",   
"photos/backstage/13.jpg",   
"photos/backstage/14.jpg",   
"photos/backstage/15.jpg",   
"photos/backstage/16.jpg",   
"photos/backstage/17.jpg",
"photos/backstage/18.jpg",
"photos/backstage/19.jpg",
"photos/backstage/20.jpg",
"photos/backstage/21.jpg",
"photos/backstage/22.jpg", 
"photos/backstage/23.jpg", 
"photos/backstage/24.jpg"
);

var captionsArray = new Array(
"Celebrate 25 years of Wheel with this exclusive New York Backstage Pass photo gallery!",//01
"Crew members stand by while Prop Master Jeff Schwartz secures one of the newest features on the Wheel, an electronically-lit wedge.",//02
"The first audience at Radio City Music Hall anticipating Pat and Vanna's entrance.",//03
"'N', 'Y', '5K' and 'Z' never miss out on a photo op with Pat and Vanna.",//04
"Emmy-nominated director Mark Corwin takes a second to strike a pose in the Radio City Music Hall auditorium.",//05
"After waiting for the snail-pace elevator, Jason Seals squeezes in a smile for the camera as he takes a long ride to the main stage.",//06
"Dan Ellis caught on film while he is hard at work behind the monitor wall.",//07
"Debbie pauses to show off her pearly whites while Steve Simpson and Randy Berke joke around.",//08
"Dave Irete, Rob Kimpel, Bob Sofia and his PA take a five outside Radio City Music Hall.",//09
"Michele Hampton shares a lovely smile with us while she's working on the graphics for the show.",//10
"Bob Cisneros, Mark Corwin, and Bob Ennis are happy to see us as we peak in for a quick snapshot.",//11
"The Marketing and Promotions Team poses behind the wheel after the final taping.",//12
"Who's that on the big screen? Oh, it's our Stage Manager, John Lauderdale! Crack a smile for us, John.",//13
"Lighting Designer, Jeff Engel jokingly shoos us off the stage.",//14
"Assistant Production Supervisor, Debbie Williams fills in for Vanna during rehearsal.",//15
"Photographer Carol Kaelson and Marketing Coordinator Darcy Altwarg review some photos on the New York set.",//16
"Pat Sajak and Stage Manager John Lauderdale discuss some of the previous takes in between tapings.",//17
"Stage Operations Supervisor June Nogosek and Locations Manager Russ Fisher express their love for New York during an on-location shoot outside of Radio City Music Hall.",//18
"Hair Stylist Cynthia Romo puts the finishing touches on Vanna.",//19
"Executive Producer Harry Friedman gives a powerful opening speech at the 25th Anniversary Celebration",//20
"'5K' and the Letters make their entrance to the celebration party.",//21
"Everybody wants a piece of $5K",//22
"Kim Malcolm, Patty Durkin, and Brian Triano of Sony Card Marketing and Services smile for the camera at the 25th Anniversary Celebration.",//23
"Pat and Vanna toast for Wheel's 25th Anniversary!"//24
 );

var ImgNum = 0;
var ImgLength = NewImg.length - 1;

//Time delay between Slides in milliseconds
var delay = 200;

var lock = false;
var run;
function chgImg(direction) {
	if (document.images) {
		ImgNum = ImgNum + direction;
		if (ImgNum > ImgLength) {
			ImgNum = 0;
		}
		if (ImgNum < 0) {
			ImgNum = ImgLength;
		}
		document.slideshow.src = NewImg[ImgNum];
		document.getElementById("targettext").innerHTML = captionsArray[ImgNum];
		
   }
}

function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
   }
}
//-->
