/*********************************************** * 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 fadeBabykind=new Array() fadeBabykind[0]=["images/slideshow/babykind1.jpg", "babykind.asp?mnu=2", ""] //plain image syntax fadeBabykind[1]=["images/slideshow/babykind2.jpg", "babykind.asp?mnu=2", ""] //plain image syntax fadeBabykind[2]=["images/slideshow/babykind3.jpg", "babykind.asp?mnu=2", ""] //plain image syntax fadeBabykind[3]=["images/slideshow/babykind4.jpg", "babykind.asp?mnu=2", ""] //plain image syntax fadeBabykind[4]=["images/slideshow/babykind5.jpg", "babykind.asp?mnu=2", ""] //plain image syntax var fadeBabyscan=new Array() fadeBabyscan[0]=["images/slideshow/babyscan1.jpg", "order_babyscan.asp?type=Babyscan&id=25", ""] //plain image syntax fadeBabyscan[1]=["images/slideshow/babyscan2.jpg", "order_babyscan.asp?type=Babyscan&id=25", ""] //plain image syntax fadeBabyscan[2]=["images/slideshow/babyscan3.jpg", "order_babyscan.asp?type=Babyscan&id=25", ""] //plain image syntax var fadeCastings=new Array() fadeCastings[0]=["images/slideshow/castings1.jpg", "baby-castings.asp?mnu=5", ""] //plain image syntax fadeCastings[1]=["images/slideshow/castings2.jpg", "baby-castings.asp?mnu=5", ""] //plain image syntax fadeCastings[2]=["images/slideshow/castings3.jpg", "baby-castings.asp?mnu=5", ""] //plain image syntax fadeCastings[3]=["images/slideshow/castings4.jpg", "baby-castings.asp?mnu=5", ""] //plain image syntax fadeCastings[4]=["images/slideshow/castings5.jpg", "baby-castings.asp?mnu=5", ""] //plain image syntax var fadeCrystal=new Array() fadeCrystal[0]=["images/slideshow/crystal1.jpg", "crystal-gifts.asp?mnu=3", ""] //plain image syntax fadeCrystal[1]=["images/slideshow/crystal2.jpg", "crystal-gifts.asp?mnu=3", ""] //plain image syntax fadeCrystal[2]=["images/slideshow/crystal3.jpg", "crystal-gifts.asp?mnu=3", ""] //plain image syntax fadeCrystal[3]=["images/slideshow/crystal4.jpg", "crystal-gifts.asp?mnu=3", ""] //plain image syntax fadeCrystal[4]=["images/slideshow/crystal5.jpg", "crystal-gifts.asp?mnu=3", ""] //plain image syntax var fadeGlassware=new Array() fadeGlassware[0]=["images/slideshow/glassware1.jpg", "glassware-gifts.asp?mnu=4", ""] //plain image syntax fadeGlassware[1]=["images/slideshow/glassware2.jpg", "glassware-gifts.asp?mnu=4", ""] //plain image syntax fadeGlassware[2]=["images/slideshow/glassware3.jpg", "glassware-gifts.asp?mnu=4", ""] //plain image syntax fadeGlassware[3]=["images/slideshow/glassware4.jpg", "glassware-gifts.asp?mnu=4", ""] //plain image syntax fadeGlassware[4]=["images/slideshow/glassware5.jpg", "glassware-gifts.asp?mnu=4", ""] //plain image syntax var fadeJewelery=new Array() fadeJewelery[0]=["images/slideshow/jewellery1.jpg", "jewellery-range.asp?mnu=1", ""] //plain image syntax fadeJewelery[1]=["images/slideshow/jewellery2.jpg", "jewellery-range.asp?mnu=1", ""] //plain image syntax fadeJewelery[2]=["images/slideshow/jewellery3.jpg", "jewellery-range.asp?mnu=1", ""] //plain image syntax fadeJewelery[3]=["images/slideshow/jewellery4.jpg", "jewellery-range.asp?mnu=1", ""] //plain image syntax fadeJewelery[4]=["images/slideshow/jewellery5.jpg", "jewellery-range.asp?mnu=1", ""] //plain image syntax fadeJewelery[5]=["images/slideshow/jewellery6.jpg", "jewellery-range.asp?mnu=1", ""] //plain image syntax var fadeClocks=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeClocks[0]=["images/slideshow/1-clocks.jpg", "", ""] //plain image syntax fadeClocks[1]=["images/slideshow/2-clocks.jpg", "", ""] //image with link syntax fadeClocks[2]=["images/slideshow/3-clocks.jpg", "", ""] //image with link and target syntax fadeClocks[3]=["images/slideshow/4-clocks.jpg", "", ""] //image with link syntax fadeClocks[4]=["images/slideshow/5-clocks.jpg", "", ""] //image with link and target syntax var fadeMoney=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeMoney[0]=["images/slideshow/1-money.jpg", "", ""] //plain image syntax fadeMoney[1]=["images/slideshow/2-money.jpg", "", ""] //image with link syntax var fadeMousemat=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeMousemat[0]=["images/slideshow/1-mousemat.jpg", "", ""] //plain image syntax fadeMousemat[1]=["images/slideshow/2-mousemat.jpg", "", ""] //image with link syntax var fadeMugs=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeMugs[0]=["images/slideshow/1-mugs.jpg", "", ""] //plain image syntax fadeMugs[1]=["images/slideshow/2-mugs.jpg", "", ""] //image with link syntax fadeMugs[2]=["images/slideshow/3-mugs.jpg", "", ""] //image with link and target syntax fadeMugs[3]=["images/slideshow/4-mugs.jpg", "", ""] //image with link syntax fadeMugs[4]=["images/slideshow/5-mugs.jpg", "", ""] //image with link and target syntax fadeMugs[5]=["images/slideshow/6-mugs.jpg", "", ""] //image with link syntax fadeMugs[6]=["images/slideshow/7-mugs.jpg", "", ""] //image with link and target syntax fadeMugs[7]=["images/slideshow/8-mugs.jpg", "", ""] //image with link syntax fadeMugs[8]=["images/slideshow/9-mugs.jpg", "", ""] //image with link and target syntax fadeMugs[9]=["images/slideshow/10-mugs.jpg", "", ""] //image with link syntax fadeMugs[10]=["images/slideshow/11-mugs.jpg", "", ""] //image with link and target syntax fadeMugs[11]=["images/slideshow/12-mugs.jpg", "", ""] //image with link syntax var fadeStdMugs=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeStdMugs[0]=["images/slideshow/1-mugs.jpg", "", ""] //plain image syntax fadeStdMugs[1]=["images/slideshow/7-mugs.jpg", "", ""] //image with link and target syntax var fadeChdMugs=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeChdMugs[0]=["images/slideshow/5-mugs.jpg", "", ""] //image with link and target syntax fadeChdMugs[1]=["images/slideshow/11-mugs.jpg", "", ""] //image with link and target syntax var fadeChnMugs=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeChnMugs[0]=["images/slideshow/3-mugs.jpg", "", ""] //image with link and target syntax fadeChnMugs[1]=["images/slideshow/9-mugs.jpg", "", ""] //image with link and target syntax var fadePlaques=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadePlaques[0]=["images/slideshow/1-plaques.jpg", "", ""] //plain image syntax fadePlaques[1]=["images/slideshow/2-plaques.jpg", "", ""] //image with link syntax fadePlaques[2]=["images/slideshow/3-plaques.jpg", "", ""] //image with link and target syntax fadePlaques[3]=["images/slideshow/4-plaques.jpg", "", ""] //image with link syntax var fadeWipekits=new Array() //2nd array set example. Remove or add more sets as needed. //SET IMAGE PATHS. Extend or contract array as needed fadeWipekits[0]=["images/slideshow/1-wipekits.jpg", "", ""] //plain image syntax fadeWipekits[1]=["images/slideshow/2-wipekits.jpg", "", ""] //image with link syntax var fadebgcolor="#f0f0f0" ////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
') 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+"])",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