// home page animations //
var fade_M=new Array()
fade_M[0]=["images/ani01.jpg", "pages/installation_stone.htm", "_self"] 
fade_M[1]=["images/ani02.jpg", "pages/installation_stone.htm", "_self"] 
fade_M[2]=["images/ani03.jpg", "pages/installation_stone.htm", "_self"] 
fade_M[3]=["images/ani04.jpg", "pages/nursery_current_specials.htm", "_self"] 

var fade_TV=new Array()
fade_TV[0]=["../images/trees/v/01.jpg", "#.htm", "_self"] 
fade_TV[1]=["../images/trees/v/02.jpg", "#.htm", "_self"] 
fade_TV[2]=["../images/trees/v/03.jpg", "#.htm", "_self"] 
fade_TV[3]=["../images/trees/v/04.jpg", "#.htm", "_self"] 
fade_TV[4]=["../images/trees/v/05.jpg", "#.htm", "_self"] 
fade_TV[5]=["../images/trees/v/06.jpg", "#.htm", "_self"] 
fade_TV[6]=["../images/trees/v/07.jpg", "#.htm", "_self"] 
fade_TV[7]=["../images/trees/v/08.jpg", "#.htm", "_self"] 
fade_TV[8]=["../images/trees/v/09.jpg", "#.htm", "_self"] 
fade_TV[9]=["../images/trees/v/10.jpg", "#.htm", "_self"] 
fade_TV[10]=["../images/trees/v/11.jpg", "#.htm", "_self"] 
fade_TV[11]=["../images/trees/v/12.jpg", "#.htm", "_self"] 
fade_TV[12]=["../images/trees/v/13.jpg", "#.htm", "_self"] 
fade_TV[13]=["../images/trees/v/14.jpg", "#.htm", "_self"] 
fade_TV[14]=["../images/trees/v/15.jpg", "#.htm", "_self"] 
fade_TV[15]=["../images/trees/v/16.jpg", "#.htm", "_self"] 
fade_TV[16]=["../images/trees/v/17.jpg", "#.htm", "_self"] 
fade_TV[17]=["../images/trees/v/18.jpg", "#.htm", "_self"] 
fade_TV[18]=["../images/trees/v/19.jpg", "#.htm", "_self"] 






var fade_TH=new Array()
fade_TH[0]=["../images/trees/h/01a.jpg", "#.htm", "_self"] 
fade_TH[1]=["../images/trees/h/02a.jpg", "#.htm", "_self"] 
fade_TH[2]=["../images/trees/h/03a.jpg", "#.htm", "_self"] 
fade_TH[3]=["../images/trees/h/04a.jpg", "#.htm", "_self"] 
fade_TH[4]=["../images/trees/h/05a.jpg", "#.htm", "_self"] 
fade_TH[5]=["../images/trees/h/06a.jpg", "#.htm", "_self"] 
fade_TH[6]=["../images/trees/h/07a.jpg", "#.htm", "_self"] 
fade_TH[7]=["../images/trees/h/08a.jpg", "#.htm", "_self"] 
fade_TH[8]=["../images/trees/h/09a.jpg", "#.htm", "_self"] 
fade_TH[9]=["../images/trees/h/10a.jpg", "#.htm", "_self"] 
fade_TH[10]=["../images/trees/h/11a.jpg", "#.htm", "_self"] 



var fade_B=new Array()
fade_B[0]=["../images/misc/01.jpg", "#.htm", "_self"] 
fade_B[1]=["../images/misc/02.jpg", "#.htm", "_self"] 
fade_B[2]=["../images/misc/03.jpg", "#.htm", "_self"] 
fade_B[3]=["../images/misc/04.jpg", "#.htm", "_self"] 
fade_B[4]=["../images/misc/05.jpg", "#.htm", "_self"] 
fade_B[5]=["../images/misc/06.jpg", "#.htm", "_self"] 
fade_B[6]=["../images/misc/07.jpg", "#.htm", "_self"] 
fade_B[7]=["../images/misc/08.jpg", "#.htm", "_self"] 
fade_B[8]=["../images/misc/09.jpg", "#.htm", "_self"] 
fade_B[9]=["../images/misc/10.jpg", "#.htm", "_self"] 
fade_B[10]=["../images/misc/11.jpg", "#.htm", "_self"] 
fade_B[11]=["../images/misc/12.jpg", "#.htm", "_self"] 
fade_B[12]=["../images/misc/13.jpg", "#.htm", "_self"] 
fade_B[13]=["../images/misc/14.jpg", "#.htm", "_self"] 
fade_B[14]=["../images/misc/15.jpg", "#.htm", "_self"] 
fade_B[15]=["../images/misc/16.jpg", "#.htm", "_self"] 
fade_B[16]=["../images/misc/17.jpg", "#.htm", "_self"] 
fade_B[17]=["../images/misc/18.jpg", "#.htm", "_self"] 
fade_B[18]=["../images/misc/19.jpg", "#.htm", "_self"] 
fade_B[19]=["../images/misc/20.jpg", "#.htm", "_self"] 
fade_B[20]=["../images/misc/21.jpg", "#.htm", "_self"] 
fade_B[21]=["../images/misc/22.jpg", "#.htm", "_self"] 
fade_B[22]=["../images/misc/23.jpg", "#.htm", "_self"] 
fade_B[23]=["../images/misc/24.jpg", "#.htm", "_self"] 
fade_B[24]=["../images/misc/25.jpg", "#.htm", "_self"] 
fade_B[25]=["../images/misc/26.jpg", "#.htm", "_self"] 
fade_B[26]=["../images/misc/27.jpg", "#.htm", "_self"] 
fade_B[27]=["../images/misc/28.jpg", "#.htm", "_self"] 
fade_B[28]=["../images/misc/29.jpg", "#.htm", "_self"] 
fade_B[29]=["../images/misc/30.jpg", "#.htm", "_self"] 
fade_B[30]=["../images/misc/31.jpg", "#.htm", "_self"] 
fade_B[31]=["../images/misc/32.jpg", "#.htm", "_self"] 
fade_B[32]=["../images/misc/33.jpg", "#.htm", "_self"] 
fade_B[33]=["../images/misc/34.jpg", "#.htm", "_self"] 
fade_B[34]=["../images/misc/35.jpg", "#.htm", "_self"] 
fade_B[35]=["../images/misc/36.jpg", "#.htm", "_self"] 






var fade_S=new Array()
fade_S[0]=["../images/scaping/01.jpg", "#.htm", "_self"] 
fade_S[1]=["../images/scaping/02.jpg", "#.htm", "_self"] 
fade_S[2]=["../images/scaping/03.jpg", "#.htm", "_self"] 
fade_S[3]=["../images/scaping/04.jpg", "#.htm", "_self"] 
fade_S[4]=["../images/scaping/05.jpg", "#.htm", "_self"] 
fade_S[5]=["../images/scaping/06.jpg", "#.htm", "_self"] 
fade_S[6]=["../images/scaping/07.jpg", "#.htm", "_self"] 
fade_S[7]=["../images/scaping/08.jpg", "#.htm", "_self"] 
fade_S[8]=["../images/scaping/09.jpg", "#.htm", "_self"] 
fade_S[9]=["../images/scaping/10.jpg", "#.htm", "_self"] 
fade_S[10]=["../images/scaping/11.jpg", "#.htm", "_self"] 
fade_S[11]=["../images/scaping/12.jpg", "#.htm", "_self"] 
fade_S[12]=["../images/scaping/13.jpg", "#.htm", "_self"] 
fade_S[13]=["../images/scaping/14.jpg", "#.htm", "_self"] 
fade_S[14]=["../images/scaping/15.jpg", "#.htm", "_self"] 
fade_S[15]=["../images/scaping/16.jpg", "#.htm", "_self"] 
fade_S[16]=["../images/scaping/17.jpg", "#.htm", "_self"] 
fade_S[17]=["../images/scaping/18.jpg", "#.htm", "_self"] 
fade_S[18]=["../images/scaping/19.jpg", "#.htm", "_self"] 
fade_S[19]=["../images/scaping/20.jpg", "#.htm", "_self"] 
fade_S[20]=["../images/scaping/21.jpg", "#.htm", "_self"] 
fade_S[21]=["../images/scaping/22.jpg", "#.htm", "_self"] 
fade_S[22]=["../images/scaping/23.jpg", "#.htm", "_self"] 
fade_S[23]=["../images/scaping/24.jpg", "#.htm", "_self"] 
fade_S[24]=["../images/scaping/25.jpg", "#.htm", "_self"] 
fade_S[25]=["../images/scaping/26.jpg", "#.htm", "_self"] 
fade_S[26]=["../images/scaping/27.jpg", "#.htm", "_self"] 
fade_S[27]=["../images/scaping/28.jpg", "#.htm", "_self"] 
fade_S[28]=["../images/scaping/29.jpg", "#.htm", "_self"] 
fade_S[29]=["../images/scaping/30.jpg", "#.htm", "_self"] 
fade_S[30]=["../images/scaping/31.jpg", "#.htm", "_self"] 
fade_S[31]=["../images/scaping/32.jpg", "#.htm", "_self"] 
fade_S[32]=["../images/scaping/33.jpg", "#.htm", "_self"] 
fade_S[33]=["../images/scaping/34.jpg", "#.htm", "_self"] 
fade_S[34]=["../images/scaping/35.jpg", "#.htm", "_self"] 
fade_S[35]=["../images/scaping/36.jpg", "#.htm", "_self"] 
fade_S[36]=["../images/scaping/37.jpg", "#.htm", "_self"] 
fade_S[37]=["../images/scaping/38.jpg", "#.htm", "_self"] 
fade_S[38]=["../images/scaping/39.jpg", "#.htm", "_self"] 
fade_S[39]=["../images/scaping/40.jpg", "#.htm", "_self"] 
fade_S[40]=["../images/scaping/41.jpg", "#.htm", "_self"] 
fade_S[41]=["../images/scaping/42.jpg", "#.htm", "_self"] 
fade_S[42]=["../images/scaping/43.jpg", "#.htm", "_self"] 




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