// Create the slideshow object
ss = new slideshow("ss");

// Set the delay between slides, 1000 = 1 sec
// ss.timeout = 3000;

// By default, all of the slideshow images are prefetched.
// If you have a large number of slides you can limit the
// number of images that are prefetched.
// ss.prefetch = 1;

// By default the slideshow will repeat when you get to the end.
// ss.repeat = false;

// Create the slides and add them to the slideshow.
s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_front.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_front.jpg";
s.title = "First slide";
s.text = "You'll enter the church throught the front door located on Colley Avenue...</p>";
//s.target = "";
//s.attr = "";
//s.filter = "";
//s.timeout = "";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_back.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_back.jpg";
s.title = "Second slide";
s.text = "or through the back door.";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_wcenter.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_wcenter.jpg";
s.title = "Third slide";
s.text = "If you enter from the back parking lot, you'll enter the Welcome Center. Here you'll find lots of information and pictures on the bulletin boards. On the tables, you'll find pamphlets on various subjects that you're welcome to take with you.";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_nave.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_nave.jpg";
s.title = "Fourth slide";
s.text = "If you enter through the front door on Colley Avenue, you'll go through a door in the lobby and be in the church. You will receive a program that has everything you need to enjoy the service. There are also two books in the pews that contain the words and music for the songs we sing.";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_sidedoor.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_sidedoor.jpg";
s.title = "Fifth slide";
s.text = "After church, you're invited to go through this door toward the Welcome Center and Reception Room. We have snacks and coffee while we enjoy a good chat with friends.";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_reception.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_reception.jpg";
s.title = "Sixth slide";
s.text = "This is the Reception Room where we enjoy coffee and snacks after church. We also use this room for one of the Sunday School classes at 9:45.";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_nursery.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_nursery.jpg";
s.title = "Seventh slide";
s.text = "Bring the kids! Down the hall past the Reception Room and Welcome Center we have a nursery full of friendly helpers, snacks and toys.";
ss.add_slide(s);

s = new slide();
s.src =  "http://www.soon2be1.com/church/images/tour_sundayschool.jpg";
s.link = "http://www.soon2be1.com/church/images/tour_sundayschool.jpg";
s.title = "Seventh slide";
s.text = "Upstairs we have rooms where Sunday School classes meet at 9:30. We have classes and activities for all ages!";
ss.add_slide(s);

// The following loop sets an attribute for all of the slides.
// This is easier than setting the attributes individually.

for (var i=0; i < ss.slides.length; i++) {

  s = ss.slides[i];
  s.target = "ss_popup";
  s.attr = "width=225,height=175,resizable=yes,scrollbars=no";

}