var global_transitions=["progid:DXImageTransform.Microsoft.Fade()",] function flashyslideshow(setting){this.wrapperid=setting.wrapperid this.imagearray=setting.imagearray this.pause=setting.pause this.transduration=setting.transduration/1000 this.currentimg=0 var preloadimages=[] for(var i=0;i
'+this.getSlideHTML(this.currentimg)+'
') var effectindex=Math.floor(Math.random()*global_transitions.length) var contentdiv=document.getElementById(this.wrapperid+"_inner") if(contentdiv.filters){contentdiv.style.filter=global_transitions[effectindex] this.pause+=setting.transduration} this.filtersupport=(contentdiv.filters&&contentdiv.filters.length>0)?true:false var slideshow=this flashyslideshow.addEvent(contentdiv,function(){slideshow.isMouseover=1},"mouseover") flashyslideshow.addEvent(contentdiv,function(){slideshow.isMouseover=0},"mouseout") setInterval(function(){slideshow.rotate()},this.pause)} flashyslideshow.addEvent=function(target,functionref,tasktype){if(target.addEventListener) target.addEventListener(tasktype,functionref,false);else if(target.attachEvent) target.attachEvent('on'+tasktype,function(){return functionref.call(target,window.event)});},flashyslideshow.setopacity=function(el,degree){if(typeof el.style.opacity!="undefined") el.style.opacity=degree else el.style.MozOpacity=degree el.currentopacity=degree},flashyslideshow.prototype.getSlideHTML=function(index){var slideHTML=(this.imagearray[index][1])?'\n':'' slideHTML+='' slideHTML+=(this.imagearray[index][1])?'
':'
' slideHTML+=(this.imagearray[index][3])?this.imagearray[index][3]:'' return slideHTML} flashyslideshow.prototype.rotate=function(){var contentdiv=document.getElementById(this.wrapperid+"_inner") if(this.isMouseover){return} this.currentimg=(this.currentimg