// 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 =  "gallery/1.jpg";
s.link = "gallery/1c.jpg";
s.target = "ss_popup";
s.attr = "width=580,height=530,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/2.jpg";
s.link = "gallery/2c.jpg";
s.target = "ss_popup";
s.attr = "width=465,height=625,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/3.jpg";
s.link = "gallery/3c.jpg";
s.target = "ss_popup";
s.attr = "width=565,height=505,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/4.jpg";
s.link = "gallery/4c.jpg";
s.target = "ss_popup";
s.attr = "width=620,height=405,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/5.jpg";
s.link = "gallery/5c.jpg";
s.target = "ss_popup";
s.attr = "width=520,height=615,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/6.jpg";
s.link = "gallery/6c.jpg";
s.target = "ss_popup";
s.attr = "width=565,height=530,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/7.jpg";
s.link = "gallery/7c.jpg";
s.target = "ss_popup";
s.attr = "width=620,height=475,resizable=yes";
ss.add_slide(s);

s = new slide();
s.src =  "gallery/8.jpg";
s.link = "gallery/8c.jpg";
s.target = "ss_popup";
s.attr = "width=440,height=585,resizable=yes";
ss.add_slide(s);