ss = new slideshow('ss');
ss.prefetch = 3;
ss.timeout = 7000;

s = new slide();
s.src = 'gif/userpics/1thumb.jpg';
s.link = 'gif/userpics/1.jpg';
s.title = 'Matthew 1';
s.text = 'Matt Johnston is introduced to the Newport HT70 by Jim Seeley, Newport Medical product manager.';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/2thumb.jpg';
s.link = 'gif/userpics/2.jpg';
s.title = 'Matthew 2';
s.text = 'Matt Johnston working on his computer<br/><a href=\"javascript:void();\" onclick=\"window.open(\'matthew.johnston.testimonial.htm\', \'Testimonial\', config=\'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=750,left=40,top=40\'); return false\">Read a letter from Matt.</a>';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/3thumb.jpg';
s.link = 'gif/userpics/3.jpg';
s.title = 'Matthew 3';
s.text = 'Matthew Johnston and friends, diving with the dolphins ';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/4thumb.jpg';
s.link = 'gif/userpics/4.jpg';
s.title = 'Matthew 4';
s.text = 'Matthew Johnston in his customized dive suit. Learn more about Matt\'s diving experience at <br/><a href=\"http://www.divingadream.org\" target=\"_blank\"> www.divingadream.org. </a>';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/5thumb.jpg';
s.link = 'gif/userpics/5.jpg';
s.title = 'Zach 1';
s.text = 'Zach Wargo ready to go on a cruise';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/6thumb.jpg';
s.link = 'gif/userpics/6.jpg';
s.title = 'Zack 2';
s.text = 'Zach Wargo on family trip to Yosemite National Park.';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/7thumb.jpg';
s.link = 'gif/userpics/7.jpg';
s.title = 'Connor 1';
s.text = 'Connor Millard and Casey, Buckeye fans, all set to watch the game. <br/><a href=\"javascript:void();\" onclick=\"window.open(\'user-testimonial01.htm\', \'Testimonial\', config=\'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=360,left=40,top=40\'); return false\">Read a note from the Millard Family.</a>';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/8thumb.jpg';
s.link = 'gif/userpics/8.jpg';
s.title = 'Connor 2';
s.text = 'Connor Millard and his best pal, Casey the Wonderdog';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/9thumb.jpg';
s.link = 'gif/userpics/9.jpg';
s.title = 'Ashley 1';
s.text = 'Ashley Hughes on the go with her grandparents, Linda and Gerry';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/10thumb.jpg';
s.link = 'gif/userpics/10.jpg';
s.title = 'Christian 1';
s.text = 'Christian Perez and his parents meet Dr. Du, president of Newport Medical';
ss.add_slide(s);

s = new slide();
s.src = 'gif/userpics/11thumb.jpg';
s.link = 'gif/userpics/11.jpg';
s.title = 'Christian 2';
s.text = 'Christian Perez and his family enjoy breakfast with Pluto before going to Disneyland';
ss.add_slide(s);

// end slide info

// 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 = "slideshow_popup";
  s.attr = "width=620,height=420,resizable=no,scrollbars=no";
}

var show_popup = true;
function showpopup() {
  // Display a message (once)
  if (show_popup) {
    show_popup = false;
    alert("");
  }
}

