/*********************************************** * 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 florida=new Array() //SET IMAGE PATHS. Extend or contract array as needed florida[0]=["img/florida/florida1.jpg", "", ""] //plain image syntax florida[1]=["img/florida/florida2.jpg", "", ""] //image with link syntax florida[2]=["img/florida/florida3.jpg", "", ""] //image with link syntax florida[3]=["img/florida/florida4.jpg", "", ""] //image with link syntax florida[4]=["img/florida/florida5.jpg", "", ""] //image with link syntax var silchester=new Array() //SET IMAGE PATHS. Extend or contract array as needed silchester[0]=["img/silchester-house/silchester-house-1.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //plain image syntax silchester[1]=["img/silchester-house/silchester-house-2.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[2]=["img/silchester-house/silchester-house-3.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[3]=["img/silchester-house/silchester-house-5.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[4]=["img/silchester-house/silchester-house-6.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[5]=["img/silchester-house/silchester-house-7.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[6]=["img/silchester-house/silchester-house-9.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[7]=["img/silchester-house/silchester-house-10.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[8]=["img/silchester-house/silchester-house-11.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[9]=["img/silchester-house/silchester-house-12.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[10]=["img/silchester-house/silchester-house-13.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax silchester[11]=["img/silchester-house/silchester-house-14.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax var botleys=new Array() //SET IMAGE PATHS. Extend or contract array as needed botleys[0]=["img/botleys-mansion/botleys-mansion-1.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[1]=["img/botleys-mansion/botleys-mansion-2.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[2]=["img/botleys-mansion/botleys-mansion-3.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[3]=["img/botleys-mansion/botleys-mansion-4.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[4]=["img/botleys-mansion/botleys-mansion-5.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[5]=["img/botleys-mansion/botleys-mansion-6.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[6]=["img/botleys-mansion/botleys-mansion-7.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[7]=["img/botleys-mansion/botleys-mansion-8.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[8]=["img/botleys-mansion/botleys-mansion-9.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[9]=["img/botleys-mansion/botleys-mansion-10.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[10]=["img/botleys-mansion/botleys-mansion-11.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax botleys[11]=["img/botleys-mansion/botleys-mansion-12.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax var notley=new Array() //SET IMAGE PATHS. Extend or contract array as needed notley[0]=["img/notley-abbey/notley-abbey-1.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //plain image syntax notley[1]=["img/notley-abbey/notley-abbey-2.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[2]=["img/notley-abbey/notley-abbey-3.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[3]=["img/notley-abbey/notley-abbey-6.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[4]=["img/notley-abbey/notley-abbey-7.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[5]=["img/notley-abbey/notley-abbey-8.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[6]=["img/notley-abbey/notley-abbey-9.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[7]=["img/notley-abbey/notley-abbey-10.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[8]=["img/notley-abbey/notley-abbey-11.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[9]=["img/notley-abbey/notley-abbey-12.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[10]=["img/notley-abbey/notley-abbey-14.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax notley[11]=["img/notley-abbey/notley-abbey-15.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax var cain=new Array() //SET IMAGE PATHS. Extend or contract array as needed cain[0]=["img/cain-manor/cain-manor-1.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //plain image syntax cain[1]=["img/cain-manor/cain-manor-2.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[2]=["img/cain-manor/cain-manor-3.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[3]=["img/cain-manor/cain-manor-5.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[4]=["img/cain-manor/cain-manor-6.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[5]=["img/cain-manor/cain-manor-7.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[6]=["img/cain-manor/cain-manor-8.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[7]=["img/cain-manor/cain-manor-9.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[8]=["img/cain-manor/cain-manor-10.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[9]=["img/cain-manor/cain-manor-11.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[10]=["img/cain-manor/cain-manor-12.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax cain[11]=["img/cain-manor/cain-manor-13.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax var chateau=new Array() //SET IMAGE PATHS. Extend or contract array as needed chateau[0]=["img/chateau-du-bijou/chateau-du-bijou-1.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //plain image syntax chateau[1]=["img/chateau-du-bijou/chateau-du-bijou-2.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[2]=["img/chateau-du-bijou/chateau-du-bijou-3.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[3]=["img/chateau-du-bijou/chateau-du-bijou-4.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[4]=["img/chateau-du-bijou/chateau-du-bijou-5.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[5]=["img/chateau-du-bijou/chateau-du-bijou-6.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[6]=["img/chateau-du-bijou/chateau-du-bijou-7.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[7]=["img/chateau-du-bijou/chateau-du-bijou-8.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[8]=["img/chateau-du-bijou/chateau-du-bijou-9.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[9]=["img/chateau-du-bijou/chateau-du-bijou-10.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[10]=["img/chateau-du-bijou/chateau-du-bijou-11.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax chateau[11]=["img/chateau-du-bijou/chateau-du-bijou-12.jpg", "http://www.chateaudubijou.com/wedding-venue-slideshow.php", ""] //image with link syntax var foodandwine=new Array() //SET IMAGE PATHS. Extend or contract array as needed foodandwine[0]=["img/food-and-wine/fig-and-serrano-ham.jpg", "", "Dutch Apple Tart"] //plain image syntax foodandwine[1]=["img/food-and-wine/filo-parcel-bacon-and-brie.jpg", "", "Figs wrapped in Serrano ham"] //plain image syntax foodandwine[2]=["img/food-and-wine/scallops-black-pudding-pea-puree.jpg", "", "Moneybag filo parcels with bacon and brie"] //plain image syntax foodandwine[3]=["img/food-and-wine/fillet-of-beef-and-potato-rosti.jpg", "", "Scallops, black pudding and pea puree"] //plain image syntax foodandwine[4]=["img/food-and-wine/smoked-chicken-and-mango-salad.jpg", "", "Fillet of beef on potato rosti"] //plain image syntax foodandwine[5]=["img/food-and-wine/pannacotta.jpg", "", "Smoked chicken and mango salad"] //plain image syntax foodandwine[6]=["img/food-and-wine/dutch-apple-tart.jpg", "", "Pannacotta"] //plain image syntax var availability=new Array() //SET IMAGE PATHS. Extend or contract array as needed availability[0]=["img/availability/cain-manor-1.jpg", "http://www.cainmanor.co.uk/wedding-venue-slideshow.php", ""] //plain image syntax availability[1]=["img/availability/botleys-mansion-1.jpg", "http://www.botleys-mansion.co.uk/wedding-venue-slideshow.php", ""] //image with link syntax availability[2]=["img/availability/notley-abbey-1.jpg", "http://www.notleyabbey.co.uk/wedding-venue-slideshow.php", ""] //plain image syntax availability[3]=["img/availability/silchester-house-1.jpg", "http://www.silchesterhouse.co.uk/wedding-venue-slideshow.php", ""] //plain image syntax 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="#000" ////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=1 //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
') else document.write('
') 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' slideHTML+='' if (this.theimages[picindex][1]!="") //if associated link exists for image slideHTML+=''; 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+"])",75) // rob - adjust speed of fade 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