var SlideShowSpeed = 4000;
var CrossFadeDuration = 50;
var Picture = new Array(); 
var Caption = new Array();

Picture[1]  = 'images/slideshow/gazebo_small.jpg';
Picture[2]  = 'images/slideshow/03070236_small.jpg';
Picture[3]  = 'images/slideshow/hayride_small.jpg';
Picture[4]  = 'images/slideshow/renaissance_small.jpg';
//Picture[2]	= 'images/slideshow/swimming_small.jpg';
//Picture[3]  = 'images/slideshow/leavelake_small.jpg';
//Picture[4]  = 'images/slideshow/clubhouse_small.jpg';
//Picture[5]  = 'images/slideshow/deer_spring.jpg';
//Picture[7]  = 'images/slideshow/pool_small.jpg';
//Picture[8]  = 'images/slideshow/potluck_small.jpg';


var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=50)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;

if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
