﻿// JavaScript Document
// Setup for the 3 slideshows - images and text
//
//Swanmeadow Lodge 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 =  "pics/pic01.jpg";
s.link = "pics/pic01b.jpg";
s.title = "Living room";
s.text = "The living room of Swanmeadow Lodge";
//s.target = "";
//s.attr = "";
//s.filter = "";
//s.timeout = "";
ss.add_slide(s);

s = new slide();
s.src =  "pics/pic02.jpg";
s.link = "pics/pic02b.jpg";
s.title = "Garden";
s.text = "The  garden of Swanmeadow Lodge";
ss.add_slide(s);

s = new slide();
s.src =  "pics/pic03.jpg";
s.link = "pics/pic03b.jpg";
s.title = "Dining Room";
s.text = "Swanmeadow Lodge dining room";
ss.add_slide(s);

s = new slide();
s.src =  "pics/pic04.jpg";
s.link = "pics/pic04b.jpg";
s.title = "Kitchen";
s.text = "Swanmeadow Lodge kitchen";
ss.add_slide(s);

s = new slide();
s.src =  "pics/pic05.jpg";
s.link = "pics/pic05b.jpg";
s.title = "Armchair";
s.text = "An armchair in the corner of  a room at Swanmeadow Lodge";
ss.add_slide(s);

s = new slide();
s.src =  "pics/pic06.jpg";
s.link = "pics/pic06b.jpg";
s.title = "Bedroom";
s.text = "The double bedroom at Swanmeadow Lodge";
ss.add_slide(s);

// Creel Cottage Slideshow ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ss2 = new slideshow("ss2");

// Set the delay between slides, 1000 = 1 sec
ss2.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/pic01.jpg";
s.link = "pics2/pic01b.jpg";
s.title = "Kitchen";
s.text = "Creel Cottage Kitchen";
//s.target = "";
//s.attr = "";
//s.filter = "";
//s.timeout = "";
ss2.add_slide(s);

s = new slide();
s.src =  "pics2/pic02.jpg";
s.link = "pics2/pic02b.jpg";
s.title = "Lounge";
s.text = "The lounge at Creel Cottage";
ss2.add_slide(s);

s = new slide();
s.src =  "pics2/pic03.jpg";
s.link = "pics2/pic03b.jpg";
s.title = "Exterior";
s.text = "An exterior view of Creel Cottage";
ss2.add_slide(s);

s = new slide();
s.src =  "pics2/pic04.jpg";
s.link = "pics2/pic04b.jpg";
s.title = "Lounge";
s.text = "Creel Cottage lounge";
ss2.add_slide(s);

s = new slide();
s.src =  "pics2/pic05.jpg";
s.link = "pics2/pic05b.jpg";
s.title = "Bedroom";
s.text = "Creel Cottage bedroom";
ss2.add_slide(s);

s = new slide();
s.src =  "pics2/pic06.jpg";
s.link = "pics2/pic06b.jpg";
s.title = "Twin Bedroom";
s.text = "Twin bedroom at Creel Cottage";
ss2.add_slide(s);

//End Creel Cottage

//Fishermans Rest +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ss3 = new slideshow("ss3");

// Set the delay between slides, 1000 = 1 sec
ss3.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 =  "pics3/pic01.jpg";
s.link = "pics3/pic01b.jpg";
s.title = "Exterior";
s.text = "Fisherman's Rest exterior view";
//s.target = "";
//s.attr = "";
//s.filter = "";
//s.timeout = "";
ss3.add_slide(s);

s = new slide();
s.src =  "pics3/pic02.jpg";
s.link = "pics3/pic02b.jpg";
s.title = "Lounge";
s.text = "The lounge at Fisherman's Rest";
ss3.add_slide(s);

s = new slide();
s.src =  "pics3/pic03.jpg";
s.link = "pics3/pic03b.jpg";
s.title = "Single bedroom";
s.text = "The single bedroom at Fisherman's Rest";
ss3.add_slide(s);

s = new slide();
s.src =  "pics3/pic04.jpg";
s.link = "pics3/pic04b.jpg";
s.title = "Double bedroom";
s.text = "Double bedroom at Fisherman's Rest";
ss3.add_slide(s);

s = new slide();
s.src =  "pics3/pic05.jpg";
s.link = "pics3/pic05b.jpg";
s.title = "Hallway";
s.text = "Fisherman's Rest hall";
ss3.add_slide(s);

s = new slide();
s.src =  "pics3/pic06.jpg";
s.link = "pics3/pic06b.jpg";
s.title = "Kitchen";
s.text = "The kitchen at Fisherman's Rest";
ss3.add_slide(s);

//End Fishermans Rest +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

// The following loop sets an attribute for all of the slides.
// This is easier than setting the attributes individually.
//Creel Cottage popup
for (var i=0; i < ss2.slides.length; i++) {

  s = ss2.slides[i];
  s.target = "ss2_popup";
  s.attr = "width=610,height=600,resizable=yes,scrollbars=yes";

}
// Swanmeadow popup
for (var i=0; i < ss.slides.length; i++) {

  s = ss.slides[i];
  s.target = "ss_popup";
  s.attr = "width=610,height=600,resizable=yes,scrollbars=yes";

}
//Fishermans rest Popup
for (var i=0; i < ss3.slides.length; i++) {

  s = ss3.slides[i];
  s.target = "ss3_popup";
  s.attr = "width=610,height=600,resizable=yes,scrollbars=yes";

}


