Current Path :
/
home
/
develito
/
www
/
components
/
com_contactmap
/
floatbox
/
modules
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/www/components/com_contactmap/floatbox/modules/cycler.js
/* Floatbox v3.54.1 */ Floatbox.prototype.cyclePreload=function(f,c){var b=fb,e=b.cycleDivs[f],a=e.nodes[c].img,d=a.getAttribute("data-fb-src")||a.getAttribute("longdesc");if(d&&d!=="done"){a.src=d;a.setAttribute("data-fb-src","done")}};Floatbox.prototype.cyclePreloadNext=function(){var b=fb,a=b.cycleDivs.length;while(a--){var d=b.cycleDivs[a],c=d.showing+1;if(c>=d.nodes.length){c=0}b.cyclePreload(a,c);if(b.preloadAll&&fb.preloads.count&&d.nodes[d.showing].href){setTimeout(function(){fb.preload(d.nodes[d.showing].href)},200)}}};Floatbox.prototype.cycleShow=function(i,g,j){var k=fb,a=k.cycleDivs[i],c=j?0:k.cycleFadeDuration*2;if(g>=a.nodes.length){g=0}if(g<0){g=a.nodes.length-1}if(g===a.showing){return}var b=a.nodes[a.showing],e=a.nodes[g],f=(b.getElementsByTagName("img")||[])[0],d=(e.getElementsByTagName("img")||[])[0],h=(b.getElementsByTagName("span")||[])[0],l=(e.getElementsByTagName("span")||[])[0];k.setOpacity(d,0,0);if(l){if(k.ie){l.style.visibility="hidden"}else{k.setOpacity(l,0,0)}}e.style.display="block";if(a.div.offsetHeight<e.offsetHeight){a.div.style.height=e.offsetHeight+"px"}b.style.zIndex="10";e.style.zIndex="20";k.setOpacity(d,100,c,function(){b.style.display="none"},!k.ie?null:function(){if(h){h.style.visibility="hidden"}if(l){l.style.visibility="visible"}});if(h&&!k.ie){h.style.opacity="1";k.setOpacity(h,0,c)}if(l&&!k.ie){k.setOpacity(l,100,c)}a.showing=g;k.cyclePreloadNext()};Floatbox.prototype.cycleShowNext=function(){var b=fb,c=fb.children.length+(fb.lastChild.fbBox?1:0),a=b.cycleDivs.length;while(a--){if(b.cycleDivs[a].level===c){b.cycleShow(a,b.cycleDivs[a].showing+1)}}b.setTimeout("cycle",b.cycleShowNext,b.getCycleInterval()*1000)};Floatbox.prototype.cycleGo=function(){var a=fb;a.cycleStop();a.setTimeout("cycle",a.cycleShowNext,a.getCycleInterval()*700)};Floatbox.prototype.cycleStop=function(){fb.clearTimeout("cycle")};Floatbox.prototype.getCycleInterval=function(){var c=fb,e=fb.children.length+(fb.lastChild.fbBox?1:0),b=c.cycleDivs.length;while(b--){var d=c.cycleDivs[b];if(d.level===e){var a=d.nodes[d.showing].interval;if(a){return a}}}return c.cycleInterval};Floatbox.prototype.cycleInit=function(u){var v=fb,s,d=fb.children.length+(fb.lastChild.fbBox?1:0),q=v.getElementsByClassName(v.cycleClass,u),n=q.length;if(!(self.fb&&self.fb.strings)){return setTimeout(function(){v.cycleInit(u)},100)}v.cycleStop();while(n--){var e=q[n],p=e.childNodes,c=[],o=0;for(var h=0;h<p.length;h++){var f=p[h],b=f.nodeName;if(/A|DIV|IMG/.test(b)){if(b==="IMG"){var m=e.ownerDocument.createElement("div");m.style.display=fb.getStyle(f,"display");v.setInnerHTML(m,v.getOuterHTML(f));e.replaceChild(m,f);f=m}var l=(f.getElementsByTagName("img")||[])[0];if(l){l.style.display="inline";if(f.offsetWidth){o=c.length;if(e.offsetHeight<f.offsetHeight){e.style.height=f.offsetHeight+"px"}}f.interval=v.parseOptionString(f.getAttribute("data-fb-options")||f.getAttribute("rev")||"").cycleInterval||v.parseOptionString(l.getAttribute("data-fb-options")||l.getAttribute("rev")||"").cycleInterval||null;f.img=l;c.push(f)}}}if(c.length>1){var h=c.length;while(h--){var f=c[h];if(c[h].nodeName==="A"){var g=v.anchors.length;while(g--){var r=v.anchors[g];if(f===r.anchor){r.options.preloadCycleItem="fb.cyclePreload("+v.cycleDivs.length+", "+h+")";r.options.setCycleItem="fb.cycleShow("+v.cycleDivs.length+", "+h+", true)";break}}}}v.cycleDivs.push({nodes:c,showing:o,level:d,div:e})}}v.cyclePreloadNext();v.cycleGo()};fb.cycleInit(document.getElementsByTagName("body")[0]);