/*==================================================*
House slideshow setup 
 
 
 *==================================================*/

// Create the slideshow object
ssHouse = new slideshow("ssHouse");

// Set the delay between slides, 1000 = 1 sec
 ssHouse.timeout = 3500;

// 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.
 ssHouse.prefetch = 1;

// By default the slideshow will repeat when you get to the end.
// ss.repeat = false;
//"wp AUG 03 001.jpg"
// Create the slides and add them to the slideshow.

addHome("Front of house","/2257WPW/images/housefront.jpg");

addHome("3rd Bedroom", "/2257WPW/images/houses020.jpg" );

addHome("Pool", "/2257WPW/images/pool.jpg" );

addHome("Pool Area","/2257WPW/images/wp AUG 03 001.jpg");

addHome("Kitchen", "/2257WPW/images/houses021.jpg");

addHome("Television", "/2257WPW/images/wp AUG 03 015.jpg");

addHome("Upstairs","/2257WPW/images/houses024.jpg");

addHome("Second Master","/2257WPW/images/houses025.jpg");

addHome("Kids Bedroom", "/2257WPW/images/houses029.jpg");

addHome("First Master","/2257WPW/images/masterbedroom.jpg");

/*
s = new slide();
s.src =  "2257WPW/images/houses023.jpg";
s.link = "2257WPW/images/houses023.jpg";
s.title = "Living Room";
s.text = "Living Room";
ssHouse.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 < ssHouse.slides.length; i++) {

  s = ssHouse.slides[i];
  s.target = "ss_popup";
  s.attr = "width=320,height=420,resizable=yes,scrollbars=yes";

}

function addHome(txtTitle, imageLocation){
	s = new slide();
	s.src =  imageLocation;
	s.link = imageLocation;
	s.title = txtTitle;
	s.text = txtTitle;
	ssHouse.add_slide(s);

}
