// (c)2007 Zarr - http://www.zarr.com/ // To use this JS fader,use javascript in your template/page similar to below // // var homepage1 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage1[0] = ["/images/template/main_pic_1_blank.jpg", "", ""] //plain image syntax homepage1[1] = ["/images/template/main_pic_1a.jpg", "", ""] //plain image syntax homepage1[2] = ["/images/template/main_pic_1b.jpg", "", ""] //plain image syntax homepage1[3] = ["/images/template/main_pic_1c.jpg", "", ""] //plain image syntax var homepage2 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage2[0] = ["/images/template/main_pic_2_blank.jpg", "", ""] //plain image syntax homepage2[1] = ["/images/template/main_pic_2a.jpg", "", ""] //plain image syntax homepage2[2] = ["/images/template/main_pic_2b.jpg", "", ""] //plain image syntax homepage2[3] = ["/images/template/main_pic_2c.jpg", "", ""] //plain image syntax var homepage3 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage3[0] = ["/images/template/main_pic_3_blank.jpg", "", ""] //plain image syntax homepage3[1] = ["/images/template/main_pic_3a.jpg", "", ""] //plain image syntax homepage3[2] = ["/images/template/main_pic_3b.jpg", "", ""] //plain image syntax homepage3[3] = ["/images/template/main_pic_3c.jpg", "", ""] //plain image syntax var homepage4 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage4[0] = ["/images/template/main_pic_4_blank.jpg", "", ""] //plain image syntax homepage4[1] = ["/images/template/main_pic_4a.jpg", "", ""] //plain image syntax homepage4[2] = ["/images/template/main_pic_4b.jpg", "", ""] //plain image syntax homepage4[3] = ["/images/template/main_pic_4c.jpg", "", ""] //plain image syntax var homepage5 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage5[0] = ["/images/template/main_pic_5_blank.jpg", "", ""] //plain image syntax homepage5[1] = ["/images/template/main_pic_5a.jpg", "", ""] //plain image syntax homepage5[2] = ["/images/template/main_pic_5b.jpg", "", ""] //plain image syntax homepage5[3] = ["/images/template/main_pic_5c.jpg", "", ""] //plain image syntax var homepage6 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage6[0] = ["/images/template/main_pic_6_blank.jpg", "", ""] //plain image syntax homepage6[1] = ["/images/template/main_pic_6a.jpg", "", ""] //plain image syntax homepage6[2] = ["/images/template/main_pic_6b.jpg", "", ""] //plain image syntax homepage6[3] = ["/images/template/main_pic_6c.jpg", "", ""] //plain image syntax var homepage7 = new Array() //SET IMAGE PATHS. Extend or contract array as needed homepage7[0] = ["/images/template/main_pic_7_blank.jpg", "", ""] //plain image syntax homepage7[1] = ["/images/template/main_pic_7a.jpg", "", ""] //plain image syntax homepage7[2] = ["/images/template/main_pic_7b.jpg", "", ""] //plain image syntax homepage7[3] = ["/images/template/main_pic_7c.jpg", "", ""] //plain image 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.rotatecheck = 0 this.delay = delay this.degree = 30 //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('