/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var themeparks=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
themeparks[0]=["slides/resources_attractions_theme_parks/castle_daytime.jpg", "", ""] //plain image syntax
themeparks[1]=["slides/resources_attractions_theme_parks/castle_night.jpg", "", ""] 
themeparks[2]=["slides/resources_attractions_theme_parks/dinosaur.jpg", "", ""] 
themeparks[3]=["slides/resources_attractions_theme_parks/epcot_ball.jpg", "", ""] 
themeparks[4]=["slides/resources_attractions_theme_parks/epcot_couple.jpg", "", ""] 
themeparks[5]=["slides/resources_attractions_theme_parks/hat.jpg", "", ""] 
themeparks[6]=["slides/resources_attractions_theme_parks/jurassic_park.jpg", "", ""]
 
var start=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
start[0]=["slides/start/house_1.jpg", "", ""] //plain image syntax
start[1]=["slides/start/house_2.jpg", "", ""] 
start[2]=["slides/start/house_3.jpg", "", ""] 
start[3]=["slides/start/house_4.jpg", "", ""] 
start[4]=["slides/start/house_5.jpg", "", ""] 
start[5]=["slides/start/house_6.jpg", "", ""] 
start[6]=["slides/start/house_7.jpg", "", ""] 
start[7]=["slides/start/house_8.jpg", "", ""] 
start[8]=["slides/start/house_9.jpg", "", ""] 
start[9]=["slides/start/house_10.jpg", "", ""] 
start[10]=["slides/start/house_11.jpg", "", ""] 

var neighborhood=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
neighborhood[0]=["slides/start/house_1.jpg", "", ""] //plain image syntax
neighborhood[1]=["slides/start/house_2.jpg", "", ""] 
neighborhood[2]=["slides/start/house_3.jpg", "", ""] 
neighborhood[3]=["slides/start/house_4.jpg", "", ""] 
neighborhood[4]=["slides/start/house_5.jpg", "", ""] 
neighborhood[5]=["slides/start/house_6.jpg", "", ""] 

var celebration=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
celebration[0]=["slides/buying_neighborhood_celebration/celebration_01.jpg", "", ""] 
celebration[1]=["slides/buying_neighborhood_celebration/celebration_02.jpg", "", ""] 
celebration[2]=["slides/buying_neighborhood_celebration/celebration_03.jpg", "", ""] 
celebration[3]=["slides/buying_neighborhood_celebration/celebration_04.jpg", "", ""] 
celebration[4]=["slides/buying_neighborhood_celebration/celebration_05.jpg", "", ""] 
celebration[5]=["slides/buying_neighborhood_celebration/celebration_06.jpg", "", ""] 
celebration[6]=["slides/buying_neighborhood_celebration/celebration_07.jpg", "", ""] 


var doctorphillips=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
doctorphillips[0]=["slides/buying_neighborhood_dr_phillips/cypress_point.jpg", "", ""] 
doctorphillips[1]=["slides/buying_neighborhood_dr_phillips/diamond_cove.jpg", "", ""] 
doctorphillips[2]=["slides/buying_neighborhood_dr_phillips/emerson_pointe.jpg", "", ""] 
doctorphillips[3]=["slides/buying_neighborhood_dr_phillips/kensington.jpg", "", ""]  
doctorphillips[4]=["slides/buying_neighborhood_dr_phillips/north_bay.jpg", "", ""]  
doctorphillips[5]=["slides/buying_neighborhood_dr_phillips/phillips_landing.jpg", "", ""]  
doctorphillips[6]=["slides/buying_neighborhood_dr_phillips/sand_lake_point.jpg", "", ""]  
doctorphillips[7]=["slides/buying_neighborhood_dr_phillips/torey_pines.jpg", "", ""]  
doctorphillips[8]=["slides/buying_neighborhood_dr_phillips/turtle_creek.jpg", "", ""]  
doctorphillips[9]=["slides/buying_neighborhood_dr_phillips/tuscana.jpg", "", ""]  
doctorphillips[10]=["slides/buying_neighborhood_dr_phillips/vizcaya.jpg", "", ""]  
doctorphillips[11]=["slides/buying_neighborhood_dr_phillips/isle_of_osprey.jpg", "", ""]  
doctorphillips[12]=["slides/buying_neighborhood_dr_phillips/palm_lake.jpg", "", ""]  
doctorphillips[13]=["slides/buying_neighborhood_dr_phillips/bay_hill.jpg", "", ""]  


var lakemary=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
lakemary[0]=["slides/buying_neighborhood_lake_mary/heathrow_woods_01.jpg", "", ""] 
lakemary[1]=["slides/buying_neighborhood_lake_mary/heathrow_woods_02.jpg", "", ""] 
lakemary[2]=["slides/buying_neighborhood_lake_mary/heathrow_woods_03.jpg", "", ""] 
lakemary[3]=["slides/buying_neighborhood_lake_mary/heathrow_woods_04.jpg", "", ""] 
lakemary[4]=["slides/buying_neighborhood_lake_mary/magnolia_plantation_01.jpg", "", ""] 
lakemary[5]=["slides/buying_neighborhood_lake_mary/magnolia_plantation_02.jpg", "", ""] 


var lakenona=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
lakenona[0]=["slides/lake_nona/lake_nona_1.jpg", "", ""] 
lakenona[1]=["slides/lake_nona/lake_nona_2.jpg", "", ""] 
lakenona[2]=["slides/lake_nona/lake_nona_3.jpg", "", ""] 
lakenona[3]=["slides/lake_nona/lake_nona_4.jpg", "", ""]  
lakenona[4]=["slides/lake_nona/lake_nona_5.jpg", "", ""]  

var metrowest=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
metrowest[0]=["slides/buying_neighborhood_metrowest/stonebridge_01.jpg", "", ""] 
metrowest[1]=["slides/buying_neighborhood_metrowest/stonebridge_02.jpg", "", ""] 
metrowest[2]=["slides/buying_neighborhood_metrowest/stonebridge_03.jpg", "", ""] 
metrowest[3]=["slides/buying_neighborhood_metrowest/vista_royale_01.jpg", "", ""] 
metrowest[4]=["slides/buying_neighborhood_metrowest/vista_royale_02.jpg", "", ""] 
metrowest[5]=["slides/buying_neighborhood_metrowest/vista_royale_03.jpg", "", ""] 
metrowest[6]=["slides/buying_neighborhood_metrowest/veranda_park_01.jpg", "", ""] 

var hunterscreek=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
hunterscreek[0]=["slides/hunters_creek/hunters_creek_01.jpg", "", ""] 
hunterscreek[1]=["slides/hunters_creek/hunters_creek_02.jpg", "", ""] 
hunterscreek[2]=["slides/hunters_creek/hunters_creek_03.jpg", "", ""] 
hunterscreek[3]=["slides/hunters_creek/hunters_creek_04.jpg", "", ""] 
hunterscreek[4]=["slides/hunters_creek/hunters_creek_05.jpg", "", ""] 
hunterscreek[5]=["slides/hunters_creek/hunters_creek_06.jpg", "", ""] 
hunterscreek[6]=["slides/hunters_creek/hunters_creek_07.jpg", "", ""] 


var windermere=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
windermere[0]=["slides/buying_neighborhood_windermere/windermere_balmoral.jpg", "", ""] //plain image syntax
windermere[1]=["slides/buying_neighborhood_windermere/windermere_belmere_village.jpg", "", ""] 
windermere[2]=["slides/buying_neighborhood_windermere/windermere_butler_bay.jpg", "", ""] 
windermere[3]=["slides/buying_neighborhood_windermere/windermere_chaine_du_lac.jpg", "", ""] 
windermere[4]=["slides/buying_neighborhood_windermere/windermere_glenmuir.jpg", "", ""] 
windermere[5]=["slides/buying_neighborhood_windermere/windermere_isleworth.jpg", "", ""] 
windermere[6]=["slides/buying_neighborhood_windermere/windermere_lake_butler_soun.jpg", "", ""] 
windermere[7]=["slides/buying_neighborhood_windermere/windermere_lake_down_crest.jpg", "", ""] 
windermere[8]=["slides/buying_neighborhood_windermere/windermere_lakes_of_winderm.jpg", "", ""] 
windermere[9]=["slides/buying_neighborhood_windermere/windermere_oxford_moor.jpg", "", ""] 
windermere[10]=["slides/buying_neighborhood_windermere/windermere_reserve_at_belme.jpg", "", ""] 
windermere[11]=["slides/buying_neighborhood_windermere/windermere_summerport.jpg", "", ""] 
windermere[12]=["slides/buying_neighborhood_windermere/windermere_tildens_grove.jpg", "", ""] 
windermere[13]=["slides/buying_neighborhood_windermere/windermere_weatherstone.jpg", "", ""] 
windermere[14]=["slides/buying_neighborhood_windermere/windermere_westover_reserve.jpg", "", ""] 
windermere[15]=["slides/buying_neighborhood_windermere/windermere_windermere_downs.jpg", "", ""] 

var winterpark=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
metrowest[0]=["slides/buying_neighborhood_metrowest/stonebridge_01.jpg", "", ""] 
metrowest[1]=["slides/buying_neighborhood_metrowest/stonebridge_02.jpg", "", ""] 
metrowest[2]=["slides/buying_neighborhood_metrowest/stonebridge_03.jpg", "", ""] 
metrowest[3]=["slides/buying_neighborhood_metrowest/vista_royale_01.jpg", "", ""] 
metrowest[4]=["slides/buying_neighborhood_metrowest/vista_royale_02.jpg", "", ""] 
metrowest[5]=["slides/buying_neighborhood_metrowest/vista_royale_03.jpg", "", ""] 

var winterpark=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
winterpark[0]=["slides/buying_neighborhood_winter_park/windsong_01.jpg", "", ""] 
winterpark[1]=["slides/buying_neighborhood_winter_park/windsong_02.jpg", "", ""] 
winterpark[2]=["slides/buying_neighborhood_winter_park/windsong_03.jpg", "", ""] 
winterpark[3]=["slides/buying_neighborhood_winter_park/windsong_04.jpg", "", ""] 
winterpark[4]=["slides/buying_neighborhood_winter_park/windsong_05.jpg", "", ""] 

var wintergarden=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
wintergarden[0]=["slides/buying_neighborhood_winter_garden/stoneybrook_01.jpg", "", ""] 
wintergarden[1]=["slides/buying_neighborhood_winter_garden/stoneybrook_03.jpg", "", ""] 
wintergarden[2]=["slides/buying_neighborhood_winter_garden/stoneybrook_04.jpg", "", ""] 
wintergarden[3]=["slides/buying_neighborhood_winter_garden/stoneybrook_05.jpg", "", ""] 

var dining=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
dining[0]=["slides/dining/dining_1.jpg", "", ""] //plain image syntax
dining[1]=["slides/dining/dining_2.jpg", "", ""] 
dining[2]=["slides/dining/dining_4.jpg", "", ""] 
dining[3]=["slides/dining/dining_5.jpg", "", ""] 
dining[4]=["slides/dining/dining_6.jpg", "", ""] 

var accommodations=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
accommodations[0]=["slides/resources_attractions_accommodations/accommodations_temp_1.jpg", "", ""] //plain image syntax
accommodations[1]=["slides/resources_attractions_accommodations/accommodations_temp_2.jpg", "", ""] 

var beaches=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
beaches[0]=["slides/resources_attractions_beaches/beaches_temp_1.jpg", "", ""] //plain image syntax
beaches[1]=["slides/resources_attractions_beaches/beaches_temp_2.jpg", "", ""] 

var golf=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
golf[0]=["slides/resources_attractions_golf/golf_temp_1.jpg", "", ""] //plain image syntax
golf[1]=["slides/resources_attractions_golf/golf_temp_2.jpg", "", ""] 

var movies=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
movies[0]=["slides/resources_attractions_movies/movies_temp_1", "", ""] //plain image syntax
movies[1]=["slides/resources_attractions_movies/movies_temp_2.jpg", "", ""] 

var night_life=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
night_life[0]=["slides/resources_attractions_night_life/night_life_temp_1.jpg", "", ""] //plain image syntax
night_life[1]=["slides/resources_attractions_night_life/night_life_temp_2.jpg", "", ""] 

var shopping=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
shopping[0]=["slides/resources_attractions_shopping/mall_1.jpg", "", ""] //plain image syntax
shopping[1]=["slides/resources_attractions_shopping/mall_2.jpg", "", ""] 
shopping[2]=["slides/resources_attractions_shopping/shopping_temp_1.jpg", "", ""] //plain image syntax
shopping[3]=["slides/resources_attractions_shopping/shopping_temp_2.jpg", "", ""] 

var sports=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
sports[0]=["slides/resources_attractions_sports/sports_temp_1.jpg", "", ""] //plain image syntax
sports[1]=["slides/resources_attractions_sports/sports_temp_2.jpg", "", ""] 

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]=["photo1.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="white"

////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()
}
