/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide2Madera44=new Array()

//variableslide2Madera44[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide2Madera44[0]=['images/Madera-2t.jpg', 'images/NewMadera2.jpg', 'Gas fireplace with guest-regulated thermostat'];
variableslide2Madera44[1]=['images/Madera-1t.jpg', 'images/NewMadera1.jpg', 'Queen size bed with plush spread, pillows and linens'];
variableslide2Madera44[2]=['images/Madera-3t.jpg', 'images/NewMadera3.jpg', 'Bathroom'];
variableslide2Madera44[3]=['images/Madera-Fireplaceth.jpg', 'images/Madera-Fireplace.jpg', 'Gas fireplace'];
variableslide2Madera44[4]=['images/Madera-Bistro-Tableth.jpg', 'images/Madera-Bistro-Table.jpg', 'Bistro Table'];
variableslide2Madera44[5]=['images/Maderath.jpg', 'images/Madera.jpg', 'Queen size bed with plush spread, pillows and linens'];

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth2='175px' //set to width of LARGEST image in your slideshow
var slideheight2='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 slidedelay2=4500

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide2Madera44.length;i++){
var cacheimage2=new Image()
cacheimage2.src=variableslide2Madera44[i][0]
}

var currentslide2=0

function rotateimages2(){
contentcontainer2='<center>'
if (variableslide2Madera44[currentslide2][1]!="")
contentcontainer2+='<a href="'+variableslide2Madera44[currentslide2][1]+'" rel="lightbox">'
contentcontainer2+='<img src="'+variableslide2Madera44[currentslide2][0]+'" border="0">'
if (variableslide2Madera44[currentslide2][1]!="")
contentcontainer2+='</a>'
contentcontainer2+='</center>'
if (variableslide2Madera44[currentslide2][2]!="")
contentcontainer2+='<p>'+variableslide2Madera44[currentslide2][2]+'</p>'

if (document.layers){
crossrotateobj2.document.write(contentcontainer2)
crossrotateobj2.document.close()
}
else if (ie||dom)
crossrotateobj2.innerHTML=contentcontainer2
if (currentslide2==variableslide2Madera44.length-1) currentslide2=0
else currentslide2++
setTimeout("rotateimages2()",slidedelay2)
}

if (ie||dom)
document.write('<div id="slidedom2" class="leftImageSlideshow" style="width:'+slidewidth2+';height:'+slideheight2+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj2=dom? document.getElementById("slidedom2") : ie? document.all.slidedom2 : document.slidensmain2.document.slidenssub2
if (document.layers)
document.slidensmain2.visibility="show"
rotateimages2()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider

//<ilayer id="slidensmain2" width=&{slidewidth2}; height=&{slideheight2}; bgColor=&{slidebgcolor}; visibility=hide><layer id="slidenssub" width=&{slidewidth2}; 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>