// (c)2007 Zarr - http://www.zarr.com/ // To use this JS fader,use javascript in your template/page similar to below // // var Home1 = new Array() Home1[0] = ["/images/template/pic_home.jpg", "", ""] Home1[1] = ["/images/template/Homepage2.jpg", "", ""] Home1[2] = ["/images/template/Homepage3.jpg", "", ""] Home1[3] = ["/images/template/Homepage4.jpg", "", ""] Home1[4] = ["/images/template/Homepage5.jpg", "", ""] Home1[5] = ["/images/template/Homepage6.jpg", "", ""] Home1[6] = ["/images/template/Homepage7.jpg", "", ""] Home1[7] = ["/images/template/Homepage8.jpg", "", ""] Home1[8] = ["/images/template/Homepage9.jpg", "", ""] Home1[9] = ["/images/template/Homepage10.jpg", "", ""] Home1[10] = ["/images/template/Homepage11.jpg", "", ""] var Care1=new Array() Care1[0] = ["/images/template/Care1.jpg", "", ""] Care1[1] = ["/images/template/Care2.jpg", "", ""] Care1[2] = ["/images/template/Care3.jpg", "", ""] Care1[3] = ["/images/template/Care4.jpg", "", ""] var MeetTheTeam1 = new Array() MeetTheTeam1[0] = ["/images/template/MeetTheTeam1.jpg", "", ""] MeetTheTeam1[1] = ["/images/template/MeetTheTeam2.jpg", "", ""] var Craftmanship1 = new Array() Craftmanship1[0] = ["/images/template/Craftsmanship1.jpg", "", ""] Craftmanship1[1] = ["/images/template/Craftsmanship2.jpg", "", ""] Craftmanship1[2] = ["/images/template/Craftsmanship3.jpg", "", ""] Craftmanship1[3] = ["/images/template/Craftsmanship4.jpg", "", ""] Craftmanship1[4] = ["/images/template/Craftsmanship5.jpg", "", ""] var Timbers1 = new Array() Timbers1[0] = ["/images/template/IMG_Ash.jpg", "", ""] Timbers1[1] = ["/images/template/IMG_Cherry_1.jpg", "", ""] Timbers1[2] = ["/images/template/IMG_Elm.jpg", "", ""] Timbers1[3] = ["/images/template/IMG_Maple.jpg", "", ""] Timbers1[4] = ["/images/template/IMG_Oak.jpg", "", ""] Timbers1[5] = ["/images/template/IIMG_Walnut.jpg", "", ""] var Finishes1 = new Array() Finishes1[0] = ["/images/template/IMG1_Harvest.jpg", "", ""] Finishes1[1] = ["/images/template/IMG2_Antique-Pine.jpg", "", ""] Finishes1[2] = ["/images/template/IMG3_Antique-Yew.jpg", "", ""] Finishes1[3] = ["/images/template/IMG4_Polished-Chestnut.jpg", "", ""] Finishes1[4] = ["/images/template/IMG5_Dark-Oak.jpg", "", ""] Finishes1[5] = ["/images/template/IMG6_Medium-Oak.jpg", "", ""] var Challenge1 = new Array() Challenge1[0] = ["/images/template/Challenge1.jpg", "", ""] Challenge1[1] = ["/images/template/Challenge2.jpg", "", ""] Challenge1[2] = ["/images/template/Challenge3.jpg", "", ""] Challenge1[3] = ["/images/template/Challenge4.jpg", "", ""] Challenge1[4] = ["/images/template/Challenge5.jpg", "", ""] var fadebgcolor = "white" 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 = 50 //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('