﻿// JavaScript Document
// Setup for the 3 slideshows - images and text
//
//Tracey Lewis Mirrors 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 =  "pics2/mirror1.jpg";
s.link = "pics2/mirror1b.jpg";
s.title = "Mirror";
s.text = "Size: 3 ft x 3 ft<br\/>Price on application";
ss.add_slide(s);

s = new slide();
s.src =  "pics2/mirror2.jpg";
s.link = "pics2/mirror2b.jpg";
s.title = "Mirror";
s.text = "Size: 1 ft x 1 ft<br\/>Price on application";
ss.add_slide(s);

s = new slide();
s.src =  "pics2/mirror3.jpg";
s.link = "pics2/mirror3b.jpg";
s.title = "Time for Tea";
s.text = "Size: 2 ft x 2 ft<br\/>Price on application";
ss.add_slide(s);

s = new slide();
s.src =  "pics2/mirror4.jpg";
s.link = "pics2/mirror4b.jpg";
s.title = "Mirror";
s.text = "Size: 4 ft x 4 ft<br\/>Price on application";
ss.add_slide(s);

s = new slide();
s.src =  "pics2/mirror5.jpg";
s.link = "pics2/mirror5b.jpg";
s.title = "Mirror";
s.text = "Size: 4 ft x 4 ft<br\/>Price on application";
ss.add_slide(s);

s = new slide();
s.src =  "pics2/mirror6.jpg";
s.link = "pics2/mirror6b.jpg";
s.title = "Mirror";
s.text = "Size: 4 ft x 4 ft<br\/>Price on application";
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";

}



