/*********************************************** * Ultimate Fade-In Slideshow (v1.5): © 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. ***********************************************/ // USAGE: //new fadeshow7770(fadeimages7770, 808, 308, 0, 5000, 0); var fadeimages7770 = new Array() //SET IMAGE PATHS. Extend or contract array as needed //fadeimages7770[0] = ["/path/image.jpg", "http://link-to-site.com/", "_blank"] fadeimages7770[0] = ["/sitecm/i/ors_rotator1.jpg", "", "", 603, 201]; fadeimages7770[1] = ["/sitecm/i/ors_rotator2.jpg", "", "", 603, 201]; fadeimages7770[2] = ["/sitecm/i/ors_rotator3.jpg", "", "", 603, 201]; fadeimages7770[3] = ["/sitecm/i/ors_rotator4.jpg", "", "", 603, 201]; var url7770 = document.location.href; var showAlternate7770 = true; var fadebgcolor7770 = "#ffffff"; var fadearray7770 = new Array() //array to cache fadeshow instances var fadeclear7770 = new Array() //array to cache corresponding clearinterval pointers function fadepic7770(obj){ if (obj.degree<100){ obj.degree += 10 if (obj.tempobj.filters && obj.tempobj.filters[0]){ //if IE6+ if (typeof obj.tempobj.filters[0].opacity == "number"){ obj.tempobj.filters[0].opacity = obj.degree }else{ 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){ //alert(obj.degree); obj.tempobj.style.KhtmlOpacity = obj.degree/100 } }else{ clearInterval(fadeclear7770[obj.slideshowid]) obj.nextcanvas = (obj.curcanvas == obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1" obj.tempobj = this.iebrowser && this.dom ? document.all[obj.nextcanvas] : document.getElementById(obj.nextcanvas) obj.populateslide(obj.tempobj, obj.nextimageindex) obj.nextimageindex = (obj.nextimageindex
'); }else{ document.write('
'); } //if IE5+ or modern browsers such as Firefox if (this.iebrowser && this.dom || this.dom){ this.startit() }else{ this.curimageindex++ setInterval("fadearray7770["+this.slideshowid+"].rotateimage()", this.delay) } } fadeshow7770.prototype.populateslide = function(picobj, picindex){ var slideHTML7770 = "" //if associated link exists for image if (this.theimages[picindex][1] != ""){ slideHTML7770 = '' } slideHTML7770 += '' //if associated link exists for image if (this.theimages[picindex][1] != ""){ slideHTML7770 += '' } picobj.innerHTML = slideHTML7770 } fadeshow7770.prototype.rotateimage = function(){ //if pause onMouseover enabled, cache object if (this.pausecheck == 1) { var cacheobj = this } if (this.mouseovercheck == 1){ setTimeout(function(){cacheobj.rotateimage()}, 100) }else if (this.iebrowser && this.dom || this.dom){ this.resetit() var crossobj = this.tempobj = this.iebrowser && this.dom ? document.all[this.curcanvas] : document.getElementById(this.curcanvas) crossobj.style.zIndex++ fadeclear7770[this.slideshowid] = setInterval("fadepic7770(fadearray7770["+this.slideshowid+"])",50) this.curcanvas = (this.curcanvas == this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0" }else{ var ns4imgobj7770 = document.images['defaultslide'+this.slideshowid] ns4imgobj7770.src = this.postimages[this.curimageindex].src ns4imgobj7770.width = this.postimages[this.curimageindex].width ns4imgobj7770.height = this.postimages[this.curimageindex].height } this.curimageindex = (this.curimageindex 0 && parseInt(603) > 0 && parseInt(201) > 0){ //fadeshow7770(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder) var myFadeshow7770 = new fadeshow7770(fadeimages7770, 603, 201, '0', 5000, 1, 1); }else{ // get border details var imageborder7770 = "0"; if(imageborder7770.indexOf(" ") != -1){ var borderinfo7770 = imageborder7770.split(" "); if(borderinfo7770.length == 3){ imagebordertype7770 = borderinfo7770[0]+" "; if(borderinfo7770[1].indexOf("px") == -1){ imageborderwidth7770 = parseInt(borderinfo7770[1]); }else{ imageborderwidth7770 = parseInt(borderinfo7770[1].substring(0, borderinfo7770[1].indexOf("px"))); } imagebordercolor7770 = " #"+borderinfo7770[2]; }else{ imagebordertype7770 = ""; imageborderwidth7770 = parseInt(imageborder7770); imagebordercolor7770 = ""; } }else{ imagebordertype7770 = ""; imageborderwidth7770 = parseInt(imageborder7770); imagebordercolor7770 = ""; } if(url7770.toLowerCase().indexOf("/sitecm3/manager/") == -1 && showAlternate7770){ document.write(' 0) ? ' width = "603"' : '') + '' + ((parseInt(201) > 0) ? ' height = "201"' : '') + ' alt = "" style="border: '+imagebordertype7770+''+imageborderwidth7770+'px'+''+imagebordercolor7770+';" />'); } } //-->