
// JavaScript Document
//var fadeimages=new Array()
//fadeimages[0]=["../img/front/front1.jpg"] //plain image syntax
//fadeimages[1]=["../img/front/front2.jpg"] //plain image syntax
//fadeimages[2]=["../img/front/front3.jpg"] //plain image syntax
//fadeimages[3]=["../img/front/front4.jpg"] //plain image syntax
//fadeimages[4]=["../img/front/front5.jpg"] //plain image syntax
//fadeimages[5]=["../img/front/front6.jpg"] //plain image syntax
//fadeimages[6]=["../img/front/front7.jpg"] //plain image syntax



var fadeimages=new Array()
fadeimages[0]=["../img/front/1.jpg"] //plain image syntax
fadeimages[1]=["../img/front/2.jpg"] //plain image syntax
fadeimages[2]=["../img/front/3.1.jpg"] //plain image syntax
fadeimages[3]=["../img/front/4.jpg"] //plain image syntax
fadeimages[4]=["../img/front/5.jpg"] //plain image syntax
fadeimages[5]=["../img/front/6.jpg"] //plain image syntax
fadeimages[6]=["../img/front/7.jpg"] //plain image syntax
fadeimages[7]=["../img/front/8.jpg"] //plain image syntax
fadeimages[8]=["../img/front/9.jpg"] //plain image syntax
fadeimages[9]=["../img/front/10.jpg"] //plain image syntax
fadeimages[10]=["../img/front/11.jpg"] //plain image syntax

var fadeimages1=new Array()
fadeimages1[0]=["../img/front/1.jpg"] //plain image syntax
fadeimages1[1]=["../img/front/2.jpg"] //plain image syntax
fadeimages1[2]=["../img/front/3.jpg"] //plain image syntax
fadeimages1[3]=["../img/front/4.jpg"] //plain image syntax
fadeimages1[4]=["../img/front/5.jpg"] //plain image syntax
fadeimages1[5]=["../img/front/6.jpg"] //plain image syntax
fadeimages1[6]=["../img/front/7.jpg"] //plain image syntax
fadeimages1[7]=["../img/front/8.jpg"] //plain image syntax
fadeimages1[8]=["../img/front/9.jpg"] //plain image syntax
fadeimages1[9]=["../img/front/10.jpg"] //plain image syntax
fadeimages1[10]=["../img/front/11.jpg"] //plain image syntax



//var fadeimages1=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//fadeimages1[0]=["img/but/ro/rooms/top1.jpg"] //plain image syntax
//fadeimages1[1]=["img/but/ro/rooms/ap-top3.jpg"] //image with link syntax
//fadeimages1[2]=["img/but/ro/rooms/jra-top5.jpg"] //image with link syntax
//fadeimages1[3]=["img/but/ro/rooms/st-top3.jpg"] //image with link syntax
//fadeimages1[4]=["img/but/ro/rooms/top5.jpg"] //image with link syntax
//fadeimages1[5]=["../img/front/front7.jpg"] 	 //plain image syntax


// CAMERE

var fadestandard=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadestandard[0]=["img/but/ro/rooms/st-top1.jpg"] //plain image syntax
fadestandard[1]=["img/but/ro/rooms/st-top2.jpg"] //image with link syntax
fadestandard[2]=["img/but/ro/rooms/st-top3.jpg"] //image with link syntax
fadestandard[3]=["img/but/ro/rooms/st-top4.jpg"] //image with link syntax

var fadeexecutive=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeexecutive[0]=["img/but/ro/rooms/ex-top1.jpg"] //image with link syntax
fadeexecutive[1]=["img/but/ro/rooms/ex-top2.jpg"] //image with link syntax
fadeexecutive[2]=["img/but/ro/rooms/ex-top3.jpg"] //image with link syntax
fadeexecutive[3]=["img/but/ro/rooms/ex-top4.jpg"] //image with link syntax

var fadeapart=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//fadeapart[0]=["img/but/ro/rooms/top1.jpg"] //plain image syntax
fadeapart[0]=["img/but/ro/rooms/ap-top1.jpg"] //image with link syntax
fadeapart[1]=["img/but/ro/rooms/ap-top2.jpg"] //image with link syntax
fadeapart[2]=["img/but/ro/rooms/ap-top3.jpg"] //image with link syntax
fadeapart[3]=["img/but/ro/rooms/ap-top4.jpg"] //image with link syntax

var fadeapartjr=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//fadeapart[0]=["img/but/ro/rooms/top1.jpg"] //plain image syntax
fadeapartjr[0]=["img/but/ro/rooms/jra-top1.jpg"] //image with link syntax
fadeapartjr[1]=["img/but/ro/rooms/jra-top2.jpg"] //image with link syntax
fadeapartjr[2]=["img/but/ro/rooms/jra-top3.jpg"] //image with link syntax
fadeapartjr[3]=["img/but/ro/rooms/jra-top4.jpg"] //image with link syntax
fadeapartjr[4]=["img/but/ro/rooms/jra-top5.jpg"] //image with link syntax


var fadejrstand=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//fadeapart[0]=["img/but/ro/rooms/top1.jpg"] //plain image syntax
fadejrstand[0]=["img/but/ro/rooms/jrst-top1.jpg"] //image with link syntax
fadejrstand[1]=["img/but/ro/rooms/jrst-top2.jpg"] //image with link syntax
fadejrstand[2]=["img/but/ro/rooms/jrst-top3.jpg"] //image with link syntax
fadejrstand[3]=["img/but/ro/rooms/jrst-top4.jpg"] //image with link syntax
// end CAMERE



var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["img/but/ro/rooms/top1.jpg"] //plain image syntax
fadeimages2[1]=["img/but/ro/rooms/top2.jpg"] //image with link syntax
fadeimages2[2]=["img/but/ro/rooms/top3.jpg"] //image with link syntax
fadeimages2[3]=["../img/front/front1.jpg"] //plain image syntax
fadeimages2[4]=["../img/front/front2.jpg"] //plain image syntax
fadeimages2[5]=["../img/front/front3.jpg"] //plain image syntax

var fadeimages3=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages3[0]=["img/but/ro/rest/rest1.jpg"] //plain image syntax
fadeimages3[1]=["img/but/ro/rest/gr-top1.jpg"] //image with link syntax
fadeimages3[2]=["img/but/ro/rest/bar-top1.jpg"] //image with link syntax
//fadeimages3[3]=["img/but/ro/rest/rest4.jpg"] //plain image syntax
//fadeimages3[4]=["img/but/ro/rest/rest5.jpg"] //plain image syntax


var fadeimages4=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages4[0]=["img/but/ro/conf/conf1.jpg"] //plain image syntax
fadeimages4[1]=["img/but/ro/conf/conf2.jpg"] //image with link syntax
fadeimages4[2]=["img/but/ro/conf/conf3.jpg"] //image with link syntax
fadeimages4[3]=["img/but/ro/conf/conf4.jpg"] //plain image syntax

var fadeimages5=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages5[0]=["img/but/ro/health/health1.jpg"] //plain image syntax
fadeimages5[1]=["img/but/ro/health/health2.jpg"] //image with link syntax
fadeimages5[2]=["img/but/ro/health/health3.jpg"] //image with link syntax
fadeimages5[3]=["img/but/ro/health/health4.jpg"] //plain image syntax


//var fadeimages50=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//fadeimages2[0]=["img/but/ro/rooms/top1.jpg", "", ""] //plain image syntax
//fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
//fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
 
var fadebgcolor="#601323"
 
 
var rest1=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
rest1[0]=["img/but/ro/rest/rest1.jpg"] //plain image syntax
rest1[1]=["img/but/ro/rest/rest3.jpg"] //image with link syntax
//rest1[2]=["img/but/ro/rest/rest3.jpg"] //image with link syntax
rest1[2]=["img/but/ro/rest/rest5.jpg"] //plain image syntax
//rest1[4]=["img/but/ro/rest/rest5.jpg"] //plain image syntax

var rest2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
rest2[0]=["img/but/ro/rest/gr-top1.jpg"] //plain image syntax
rest2[1]=["img/but/ro/rest/gr-top2.jpg"] //image with link syntax
rest2[2]=["img/but/ro/rest/gr-top3.jpg"] //image with link syntax
rest2[3]=["img/but/ro/rest/gr-top3.jpg"] //image with link syntax
rest2[4]=["img/but/ro/rest/gr-top3.jpg"] //image with link syntax
 

var rest3=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
rest3[0]=["img/but/ro/rest/bar-top1.jpg"] //image with link syntax
rest3[1]=["img/but/ro/rest/bar-top2.jpg"] //image with link syntax
rest3[2]=["img/but/ro/rest/bar-top3.jpg"] //image with link syntax
rest3[3]=["img/but/ro/rest/bar-top4.jpg"] //image with link syntax
 
var rest4=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
//rest4[0]=["img/but/ro/rest/ev-top1.jpg"] //image with link syntax
//rest4[1]=["img/but/ro/rest/ev-top2.jpg"] //image with link syntax
rest4[0]=["img/but/ro/rest/ev-top3.jpg"] //image with link syntax
rest4[1]=["img/but/ro/rest/ev-top4.jpg"] //image with link syntax 
 
var cristal=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
cristal[0]=["img/but/ro/conf/top-crist1.jpg"] //image with link syntax
cristal[1]=["img/but/ro/conf/top-crist2.jpg"] //plain image syntax
cristal[2]=["img/but/ro/conf/top-crist3.jpg"] //plain image syntax
cristal[3]=["img/but/ro/conf/top-crist4.jpg"] //plain image syntax
 
var panoramic=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
panoramic[0]=["img/but/ro/conf/top-pan1"] //image with link syntax
panoramic[1]=["img/but/ro/conf/top-pan2.jpg"] //plain image syntax
panoramic[2]=["img/but/ro/conf/top-pan3.jpg"] //plain image syntax 
panoramic[3]=["img/but/ro/conf/top-pan4.jpg"] //plain image syntax 
 
var bc=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
bc[0]=["img/but/ro/conf/top-bc1.jpg"] //image with link syntax
bc[1]=["img/but/ro/conf/top-bc2.jpg"] //plain image syntax
bc[2]=["img/but/ro/conf/top-bc3.jpg"] //plain image syntax 
bc[3]=["img/but/ro/conf/top-bc4.jpg"] //plain image syntax 
 
 
 
 
 
 
 
////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image

picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=obj.degree/100
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
