// 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 =  "tour-images/orthodontist-8.jpg";
s.link = "tour-images/orthodontist-8.jpg";
s.title = "Front of office";
s.text = "Dr Byrne's Office, Front of Office";
//s.target = "";
//s.attr = "";
//s.filter = "";
//s.timeout = "";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-7.jpg";
s.link = "tour-images/orthodontist-7.jpg";
s.title = "Rear of Office";
s.text = "Outside Rear of Office";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-4.jpg";
s.link = "tour-images/orthodontist-4.jpg";
s.title = "Reception Room";
s.text = "Reception Room";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-5.jpg";
s.link = "tour-images/orthodontist-5.jpg";
s.title = "Video Games";
s.text = "Reception Room - X-Box Video Games";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-3.jpg";
s.link = "tour-images/orthodontist-3.jpg";
s.title = "Consultation Room";
s.text = "Consultation Room";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-6.jpg";
s.link = "tour-images/orthodontist-6.jpg";
s.title = "Records Room";
s.text = "Records Room";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-2.jpg";
s.link = "tour-images/orthodontist-2.jpg";
s.title = "Treatment Room";
s.text = "Treatment Room";
//s.target = "";
//s.attr = "";
//s.filter = "";
//s.timeout = "";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-1.jpg";
s.link = "tour-images/orthodontist-1.jpg";
s.title = "X-Ray Room";
s.text = "X-Ray Room";
ss.add_slide(s);

s = new slide();
s.src =  "tour-images/orthodontist-0.jpg";
s.link = "tour-images/orthodontist-0.jpg";
s.title = "Sterilization Room";
s.text = "Sterilization Room";
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:400,height:266,resizable=yes,scrollbars=yes";

}
