/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide3=new Array()

//variableslide3[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide3[0]=['images/Merced-new-024t.jpg', 'images/Merced-new-024.jpg', 'Two full-size double beds with comfy pillows and linens'];
variableslide3[1]=['images/Merced-new-013t.jpg', 'images/Merced-new-013.jpg', '24" TV/DVD and Satellite TV'];
variableslide3[2]=['images/merced_bathroom.jpg', 'images/merced_bathroom-2.jpg', 'Bathroom'];

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth3='175px' //set to width of LARGEST image in your slideshow
var slideheight3='175px' //set to height of LARGEST image in your slideshow, plus any text description
var slidebgcolor=''

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay3=5000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide3.length;i++){
var cacheimage3=new Image()
cacheimage3.src=variableslide3[i][0]
}

var currentslide3=0

function rotateimages3(){
contentcontainer3='<center>'
if (variableslide3[currentslide3][1]!="")
contentcontainer3+='<a href="'+variableslide3[currentslide3][1]+'" rel="lightbox">'
contentcontainer3+='<img src="'+variableslide3[currentslide3][0]+'" border="0">'
if (variableslide3[currentslide3][1]!="")
contentcontainer3+='</a>'
contentcontainer3+='</center>'
if (variableslide3[currentslide3][2]!="")
contentcontainer3+='<p>'+variableslide3[currentslide3][2]+'</p>'

if (document.layers){
crossrotateobj3.document.write(contentcontainer3)
crossrotateobj3.document.close()
}
else if (ie||dom)
crossrotateobj3.innerHTML=contentcontainer3
if (currentslide3==variableslide3.length-1) currentslide3=0
else currentslide3++
setTimeout("rotateimages3()",slidedelay3)
}

if (ie||dom)
document.write('<div id="slidedom3" class="leftImageSlideshow" style="width:'+slidewidth3+';height:'+slideheight3+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj3=dom? document.getElementById("slidedom3") : ie? document.all.slidedom3 : document.slidensmain3.document.slidenssub3
if (document.layers)
document.slidensmain3.visibility="show"
rotateimages3()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider

//<ilayer id="slidensmain2" width=&{slidewidth3}; height=&{slideheight3}; bgColor=&{slidebgcolor}; visibility=hide><layer id="slidenssub" width=&{slidewidth3}; left=0 top=0></layer></ilayer>

//<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
//<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>