/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslideMariposa=new Array()

//variableslideMariposa[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslideMariposa[0]=['images/Mariposa-2-t.jpg', 'images/Mariposa-2.jpg', 'King Size Bed with luxurious comforter, pillows and linens'];
variableslideMariposa[1]=['images/Mariposa-1-t.jpg', 'images/Mariposa-1.jpg', 'Gas fireplace with guest-regulated thermostat'];
variableslideMariposa[2]=['images/Mariposa-chairth.jpg', 'images/Mariposa-chair.jpg', 'Comfortable chair with ottoman'];
variableslideMariposa[3]=['images/Mariposa-Entryth.jpg', 'images/Mariposa-Entry.jpg', 'Entrance to the Mariposa Room'];
variableslideMariposa[4]=['images/Mariposa-Fireplaceth.jpg', 'images/Mariposa-Fireplace.jpg', 'Gas fireplace with guest-regulated thermostat'];
variableslideMariposa[5]=['images/King-today038-th.jpg', 'images/King-today038.jpg', 'Sitting Area'];

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth1='175px' //set to width of LARGEST image in your slideshow
var slideheight1='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 slidedelay1=4000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslideMariposa.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslideMariposa[i][0]
}

var currentslide1=0

function rotateimages1(){
contentcontainer1Mariposa='<center>'
if (variableslideMariposa[currentslide1][1]!="")
contentcontainer1Mariposa+='<a href="'+variableslideMariposa[currentslide1][1]+'" rel="lightbox">'
contentcontainer1Mariposa+='<img src="'+variableslideMariposa[currentslide1][0]+'" border="0">'
if (variableslideMariposa[currentslide1][1]!="")
contentcontainer1Mariposa+='</a>'
contentcontainer1Mariposa+='</center>'
if (variableslideMariposa[currentslide1][2]!="")
contentcontainer1Mariposa+='<p>'+variableslideMariposa[currentslide1][2]+'</p>'

if (document.layers){
crossrotateobj.document.write(contentcontainer1Mariposa)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer1Mariposa
if (currentslide1==variableslideMariposa.length-1) currentslide1=0
else currentslide1++
setTimeout("rotateimages1()",slidedelay1)
}

if (ie||dom)
document.write('<div id="slidedomMariposa" class="rightImageSlideshow" style="width:'+slidewidth1+';height:'+slideheight1+'; background-color:'+slidebgcolor+'"></div>')

function start_slider1(){
crossrotateobj=dom? document.getElementById("slidedomMariposa") : ie? document.all.slidedomMariposa : document.slidensmainMariposa.document.slidenssub1
if (document.layers)
document.slidensmainMariposa.visibility="show"
rotateimages1()
}

if (ie||dom)
start_slider1()
else if (document.layers)
window.onload=start_slider1

//<ilayer id="slidensmainMariposa" width=&{slidewidth1}; height=&{slideheight1}; bgColor=&{slidebgcolor}; visibility=hide><layer id="slidenssub" width=&{slidewidth1}; 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>