// JavaScript Document
<!--

// Create the slideshow object for Restoration Doors
ss = new slideshow("ss");
ss.timeout = 3000;

// Create the slides and add them to the slideshow.
s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Doors_1.jpg";
ss.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Doors_3.jpg";
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.text = "<em class=slidetext>Match a weathered door or add matching doors on an addition. Paneling & Mantles can be replicated to almost any historic style.</em>";
  s.attr = "width=497,height=500,resizable=yes,scrollbars=yes";

}

// Create the slideshow object for Restoration Brackets
ss1 = new slideshow("ss1");
ss1.timeout = 3000;

// Create the slides and add them to the slideshow.
s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Brackets_1.jpg";
ss1.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Brackets_2.jpg";
ss1.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Brackets_3.jpg";
ss1.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Brackets_4.jpg";
ss1.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Brackets_5.jpg";
ss1.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 < ss1.slides.length; i++) {

  s = ss1.slides[i];
  s.target = "ss1_popup";
  s.text = "<em class=slidetext>Simply provide us with a sample from your home or our millwork specialist will profile or template any moulding, bracket, post, balluster, etc. on your project and re-create the element precisely.</em>";
  s.attr = "width=497,height=500,resizable=yes,scrollbars=yes";

}

// Create the slideshow object for Restoration Posts
ss2 = new slideshow("ss2");
ss2.timeout = 3000;

// Create the slides and add them to the slideshow.
s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Posts_1.jpg";
ss2.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Posts_2.jpg";
ss2.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Posts_3.jpg";
ss2.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Posts_4.jpg";
ss2.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-Posts_5.jpg";
ss2.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 < ss2.slides.length; i++) {

  s = ss2.slides[i];
  s.target = "ss2_popup";
  s.text = "<em class=slidetext>Our millwork shop has been reproducing architectural elements to specs and very often custom matching existing elements for many years. Match the exact style & design for any addition or restoration project.</em>";
  s.attr = "width=497,height=500,resizable=yes,scrollbars=yes";

}

// Create the slideshow object for Restoration Victorian
ss3 = new slideshow("ss3");

// Set the delay between slides, 1000 = 1 sec
ss3.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.
ss3.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 =  "assets/graphics/custom_millwork/restoration/Rest-VicBrackets_1.jpg";
ss3.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-VicBrackets_2.jpg";
ss3.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-VicBrackets_3.jpg";
ss3.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-VicBrackets_4.jpg";
ss3.add_slide(s);

s = new slide();
s.src =  "assets/graphics/custom_millwork/restoration/Rest-VicBrackets_5.jpg";
ss3.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 < ss3.slides.length; i++) {

  s = ss3.slides[i];
  s.target = "ss3_popup";
  s.text = "<em class=slidetext>This 1860's Victorian suffered storm damage on the entire back of the house. IL's Custom Millwork Shop recreated numerous elements from brackets to a full dormer and even the rear porch.</em>";
  s.attr = "width=497,height=500,resizable=yes,scrollbars=yes";

}

//-->