﻿// JavaScript Document
// Setup for the slideshows - images and text
//
//Tracey Lewis Portfolio 2 Slideshow +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Create the slideshow object
ss = new slideshow("ss");

// Set the delay between slides, 1000 = 1 sec
ss.timeout = 4000;

// 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 =  "pics4/g21.jpg";
s.link = "pics4/g201.jpg";
s.title = "Title";
s.text = "Text";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g22.jpg";
s.link = "pics4/g202.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g23.jpg";
s.link = "pics4/g203.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g24.jpg";
s.link = "pics4/g204.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g25.jpg";
s.link = "pics4/g205.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g26.jpg";
s.link = "pics4/g206.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g27.jpg";
s.link = "pics4/g207.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g28.jpg";
s.link = "pics4/g208.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g29.jpg";
s.link = "pics4/g209.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics4/g30.jpg";
s.link = "pics4/g300.jpg";
s.title = "";
s.text = "";
ss.add_slide(s);






// The following loop sets an attribute for all of the slides.
// This is easier than setting the attributes individually.
// Hall farm Barn popup
for (var i=0; i < ss.slides.length; i++) {

  s = ss.slides[i];
  s.target = "ss_popup";
  s.attr = "width=620,height=620,resizable=no,scrollbars=no";

}


