// JavaScript Document
ss = new slideshow("ss");
s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-1.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-1.jpg";
s.title = "First slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-2.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-2.jpg";
s.title = "Second slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-3.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-3.jpg";
s.title = "Third slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-4.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-4.jpg";
s.title = "Fourth slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-5.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-5.jpg";
s.title = "Fifth slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-6.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-6.jpg";
s.title = "Sixth slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-7.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-7.jpg";
s.title = "Seventh slide";
ss.add_slide(s);

s = new slide();
s.src =  "images/photo_gallery/restaurant/thumb/rst-8.jpg";
s.link = "images/photo_gallery/restaurant/large-size/rst-8.jpg";
s.title = "Eight slide";
ss.add_slide(s);


for (var i=0; i < ss.slides.length; i++) {

  s = ss.slides[i];
  s.target = "ss_popup";
  s.attr = "width=500px,height=318px,resizable=yes,scrollbars=yes";

}

// functions of titles


function config_ss_select() {
  var selectlist = document.ss_form.ss_select;
  selectlist.options.length = 0;
  for (var i = 0; i < ss.slides.length; i++) {
    selectlist.options[i] = new Option();
    selectlist.options[i].text = (i + 1) + '. ' + ss.slides[i].title;
  }
  selectlist.selectedIndex = ss.current;
}
ss.pre_update_hook = function() {
  return;
}
ss.post_update_hook = function() {
  document.ss_form.ss_select.selectedIndex = this.current;
  return;
}

if (document.images) {
  ss.image = document.images.ss_img;
    ss.textid = "ss_text";
	  config_ss_select();
	    ss.update();
		}
