/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var tenerife=new Array()
tenerife[00]=["Images/t00.jpg", "", ""]
tenerife[01]=["Images/t01.jpg", "", ""]
tenerife[02]=["Images/t02.jpg", "", ""]
tenerife[03]=["Images/t03.jpg", "", ""]
tenerife[04]=["Images/t04.jpg", "", ""]
tenerife[05]=["Images/t05.jpg", "", ""]
tenerife[06]=["Images/t06.jpg", "", ""]
tenerife[07]=["Images/t07.jpg", "", ""]
tenerife[08]=["Images/t08.jpg", "", ""]
tenerife[09]=["Images/t09.jpg", "", ""]
tenerife[10]=["Images/t10.jpg", "", ""]
tenerife[11]=["Images/t11.jpg", "", ""]
tenerife[12]=["Images/t12.jpg", "", ""]
tenerife[13]=["Images/t13.jpg", "", ""]
tenerife[14]=["Images/t14.jpg", "", ""]
tenerife[15]=["Images/t15.jpg", "", ""]
tenerife[16]=["Images/t16.jpg", "", ""]
tenerife[17]=["Images/t17.jpg", "", ""]
tenerife[18]=["Images/t18.jpg", "", ""]
tenerife[19]=["Images/t19.jpg", "", ""]
tenerife[20]=["Images/t20.jpg", "", ""]
tenerife[21]=["Images/t21.jpg", "", ""]
tenerife[22]=["Images/t22.jpg", "", ""]
tenerife[23]=["Images/t23.jpg", "", ""]
tenerife[24]=["Images/t24.jpg", "", ""]
tenerife[25]=["Images/t25.jpg", "", ""]
tenerife[26]=["Images/t26.jpg", "", ""]
tenerife[27]=["Images/t27.jpg", "", ""]
tenerife[28]=["Images/t28.jpg", "", ""]

var gallery=new Array()
gallery[00]=["Images/gallery00.jpg", "", ""]
gallery[01]=["Images/gallery01.jpg", "", ""]
gallery[02]=["Images/gallery02.jpg", "", ""]
gallery[03]=["Images/gallery03.jpg", "", ""]
gallery[04]=["Images/gallery04.jpg", "", ""]
gallery[05]=["Images/gallery05.jpg", "", ""]
gallery[06]=["Images/gallery06.jpg", "", ""]
gallery[07]=["Images/gallery07.jpg", "", ""]
gallery[08]=["Images/gallery08.jpg", "", ""]
gallery[09]=["Images/gallery09.jpg", "", ""]
gallery[10]=["Images/gallery10.jpg", "", ""]
gallery[11]=["Images/gallery11.jpg", "", ""]
gallery[12]=["Images/gallery12.jpg", "", ""]
gallery[13]=["Images/gallery13.jpg", "", ""]
gallery[14]=["Images/gallery14.jpg", "", ""]
gallery[15]=["Images/gallery15.jpg", "", ""]
gallery[16]=["Images/gallery16.jpg", "", ""]
gallery[17]=["Images/gallery17.jpg", "", ""]
gallery[18]=["Images/gallery18.jpg", "", ""]
gallery[19]=["Images/gallery19.jpg", "", ""]
gallery[20]=["Images/gallery20.jpg", "", ""]
gallery[21]=["Images/gallery21.jpg", "", ""]
gallery[22]=["Images/gallery22.jpg", "", ""]
gallery[23]=["Images/gallery23.jpg", "", ""]
gallery[24]=["Images/gallery24.jpg", "", ""]
gallery[25]=["Images/gallery25.jpg", "", ""]
gallery[26]=["Images/gallery26.jpg", "", ""]
gallery[27]=["Images/gallery27.jpg", "", ""]
gallery[28]=["Images/gallery28.jpg", "", ""]
gallery[29]=["Images/gallery29.jpg", "", ""]
gallery[30]=["Images/gallery30.jpg", "", ""]
gallery[31]=["Images/gallery31.jpg", "", ""]
gallery[32]=["Images/gallery32.jpg", "", ""]
gallery[33]=["Images/gallery33.jpg", "", ""]
gallery[34]=["Images/gallery34.jpg", "", ""]
gallery[35]=["Images/gallery35.jpg", "", ""]
gallery[36]=["Images/gallery36.jpg", "", ""]
gallery[37]=["Images/gallery37.jpg", "", ""]
gallery[38]=["Images/gallery38.jpg", "", ""]
gallery[39]=["Images/gallery39.jpg", "", ""]
gallery[40]=["Images/gallery40.jpg", "", ""]
gallery[41]=["Images/gallery41.jpg", "", ""]
gallery[42]=["Images/gallery42.jpg", "", ""]
gallery[43]=["Images/gallery43.jpg", "", ""]
gallery[44]=["Images/gallery44.jpg", "", ""]
gallery[45]=["Images/gallery45.jpg", "", ""]
gallery[46]=["Images/gallery46.jpg", "", ""]
gallery[47]=["Images/gallery47.jpg", "", ""]
gallery[48]=["Images/gallery48.jpg", "", ""]
gallery[49]=["Images/gallery49.jpg", "", ""]
gallery[50]=["Images/gallery50.jpg", "", ""]
gallery[22]=["Images/gallery51.jpg", "", ""]
gallery[23]=["Images/gallery52.jpg", "", ""]
gallery[24]=["Images/gallery53.jpg", "", ""]
gallery[25]=["Images/gallery54.jpg", "", ""]
gallery[26]=["Images/gallery55.jpg", "", ""]
gallery[27]=["Images/gallery56.jpg", "", ""]
gallery[28]=["Images/gallery57.jpg", "", ""]
gallery[25]=["Images/gallery58.jpg", "", ""]
gallery[26]=["Images/gallery59.jpg", "", ""]
gallery[27]=["Images/gallery60.jpg", "", ""]

var indexpage=new Array()
indexpage[00]=["Images/index00.jpg", "", ""]
indexpage[01]=["Images/index01.jpg", "", ""]
indexpage[02]=["Images/index02.jpg", "", ""]
indexpage[03]=["Images/index03.jpg", "", ""]
indexpage[04]=["Images/index04.jpg", "", ""]
indexpage[05]=["Images/index05.jpg", "", ""]
indexpage[06]=["Images/index06.jpg", "", ""]
indexpage[07]=["Images/index07.jpg", "", ""]
indexpage[08]=["Images/index08.jpg", "", ""]
indexpage[09]=["Images/index09.jpg", "", ""]
indexpage[10]=["Images/index10.jpg", "", ""]
indexpage[11]=["Images/index11.jpg", "", ""]
indexpage[12]=["Images/index12.jpg", "", ""]
indexpage[13]=["Images/index13.jpg", "", ""]
indexpage[14]=["Images/index14.jpg", "", ""]
indexpage[15]=["Images/index15.jpg", "", ""]
indexpage[16]=["Images/index16.jpg", "", ""]
indexpage[17]=["Images/index17.jpg", "", ""]
indexpage[18]=["Images/index18.jpg", "", ""]
indexpage[19]=["Images/index19.jpg", "", ""]
indexpage[20]=["Images/index20.jpg", "", ""]
indexpage[21]=["Images/index21.jpg", "", ""]
indexpage[22]=["Images/index22.jpg", "", ""]
indexpage[23]=["Images/index23.jpg", "", ""]
indexpage[24]=["Images/index24.jpg", "", ""]

var apartment=new Array()
apartment[00]=["Images/ap00.jpg", "", ""]
apartment[01]=["Images/ap01.jpg", "", ""]
apartment[02]=["Images/ap02.jpg", "", ""]
apartment[03]=["Images/ap03.jpg", "", ""]
apartment[04]=["Images/ap04.jpg", "", ""]
apartment[05]=["Images/ap05.jpg", "", ""]
apartment[06]=["Images/ap06.jpg", "", ""]
apartment[07]=["Images/ap07.jpg", "", ""]
apartment[08]=["Images/ap08.jpg", "", ""]
apartment[09]=["Images/ap09.jpg", "", ""]
apartment[10]=["Images/ap10.jpg", "", ""]
apartment[11]=["Images/ap11.jpg", "", ""]
apartment[12]=["Images/ap12.jpg", "", ""]
apartment[13]=["Images/ap13.jpg", "", ""]
apartment[14]=["Images/ap14.jpg", "", ""]
apartment[15]=["Images/ap15.jpg", "", ""]

var climate=new Array()
climate[00]=["Images/c00.jpg", "", ""]
climate[01]=["Images/c01.jpg", "", ""]
climate[02]=["Images/c02.jpg", "", ""]
climate[03]=["Images/c03.jpg", "", ""]
climate[04]=["Images/c04.jpg", "", ""]
climate[05]=["Images/c05.jpg", "", ""]
climate[06]=["Images/c06.jpg", "", ""]
climate[07]=["Images/c07.jpg", "", ""]
climate[08]=["Images/c08.jpg", "", ""]
climate[09]=["Images/c09.jpg", "", ""]
climate[10]=["Images/c10.jpg", "", ""]

var golf=new Array()
golf[00]=["Images/g00.jpg", "", ""]
golf[01]=["Images/g01.jpg", "", ""]
golf[02]=["Images/g02.jpg", "", ""]


var things=new Array()
things[00]=["Images/things00.jpg", "", ""]
things[01]=["Images/things01.jpg", "", ""]
things[02]=["Images/things02.jpg", "", ""]
things[03]=["Images/things03.jpg", "", ""]
things[04]=["Images/things04.jpg", "", ""]
things[05]=["Images/things05.jpg", "", ""]
things[06]=["Images/things06.jpg", "", ""]
things[07]=["Images/things07.jpg", "", ""]

var gds=new Array()
gds[00]=["Images/gds00.jpg", "", ""]
gds[01]=["Images/gds01.jpg", "", ""]
gds[02]=["Images/gds02.jpg", "", ""]
gds[03]=["Images/gds03.jpg", "", ""]
gds[04]=["Images/gds04.jpg", "", ""]
gds[05]=["Images/gds05.jpg", "", ""]
gds[06]=["Images/gds06.jpg", "", ""]
gds[07]=["Images/gds07.jpg", "", ""]
gds[08]=["Images/gds08.jpg", "", ""]
gds[09]=["Images/gds09.jpg", "", ""]
gds[10]=["Images/gds10.jpg", "", ""]
var fadebgcolor="Black"

////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);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;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);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;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 if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
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='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
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=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
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()
}