text: (function(D){var P;D.fn.undoChanges=function(){P.undoChanges();return this};D.fn.updateChanges=function(){P.updateChanges();return this};D.fn.setTransition=function(X){P.setTransition(X);return this};D.fn.setEasing=function(X){P.setEasing(X);return this};D.fn.setTextEffect=function(X){P.setTextEffect(X);return this};D.fn.setTooltipType=function(X){P.setTooltipType(X);return this};D.fn.setCpanelAlign=function(X){P.setCpanelAlign(X);return this};D.fn.setCpanelPos=function(X){P.setCpanelPos(X);return this};D.fn.setThumbType=function(X){P.setThumbType(X);return this};D.fn.setDButtonsType=function(X){P.setDButtonsType(X);return this};D.fn.setPlayButton=function(X){P.setPlayButton(X);return this};D.fn.setTooltip=function(X){P.setTooltip(X);return this};D.fn.setTimerBar=function(X){P.setTimerBar(X);return this};D.fn.setMouseoverPause=function(X){P.setMouseoverPause(X);return this};D.fn.setMouseoverCPanel=function(X){P.setMouseoverCPanel(X);return this};D.fn.setMouseoverText=function(X){P.setMouseoverText(X);return this};D.fn.setMouseoverDButtons=function(X){P.setMouseoverDButtons(X);return this};L.prototype.undoChanges=function(){this.resetTimer();if(this.vStripeEffect){this.vStripes.clear()}if(this.hStripeEffect){this.hStripes.clear()}if(this.blockEffect){this.blocks.clear()}D(".rotator-tooltip").remove();this._$obj.empty();this._$obj.append(this._$cloneDom)};L.prototype.updateChanges=function(){this.init()};L.prototype.setMouseoverPause=function(X){this._pauseMouseover=window.Touch?false:X};L.prototype.setMouseoverText=function(X){this._textMousover=window.Touch?false:X};L.prototype.setMouseoverCPanel=function(X){this._cpMouseover=window.Touch?false:X};L.prototype.setTransition=function(X){this._globalEffect=X};L.prototype.setEasing=function(X){this._easing=X};L.prototype.setTextEffect=function(X){this._textEffect=X};L.prototype.setThumbType=function(X){this._thumbType=X;this._thumbWidth=("text"==this._thumbType)?70:24};L.prototype.setDButtonsType=function(X){this._dbuttonsType=X};L.prototype.setPlayButton=function(X){this._displayPlayBtn=X};L.prototype.setTimerBar=function(X){this._displayTimer=X};L.prototype.setCpanelAlign=function(X){this._cpAlign=X};L.prototype.setCpanelPos=function(X){this._cpOutside=("outside"==X)};L.prototype.setTooltipType=function(X){this._tipType=X};L.prototype.setMouseoverDButtons=function(X){this._buttonsMouseover=window.Touch?false:X};var U=0;var w=1;var N=0;var W={TL:N++,TC:N++,TR:N++,BL:N++,BC:N++,BR:N++,LT:N++,LC:N++,LB:N++,RT:N++,RC:N++,RB:N++};N=0;var u={"block.top":N,blockExpandDown:N++,"block.bottom":N,blockExpandUp:N++,"block.left":N,blockExpandRight:N++,"block.right":N,blockExpandLeft:N++,"diag.fade":N,diagonalFade:N++,"diag.exp":N,diagonalExpand:N++,"rev.diag.fade":N,reverseDiagonalFade:N++,"rev.diag.exp":N,reverseDiagonalExpand:N++,"block.fade":N,blockRandomFade:N++,"block.exp":N,blockRandomExpand:N++,"block.drop":N,blockRandomDrop:N++,"block.top.zz":N,zigZagDown:N++,"block.bottom.zz":N,zigZagUp:N++,"block.left.zz":N,zigZagRight:N++,"block.right.zz":N,zigZagLeft:N++,"spiral.in":N,spiralIn:N++,"spiral.out":N,spiralOut:N++,"vert.tl":N,sliceDownRight:N++,"vert.tr":N,sliceDownLeft:N++,"vert.bl":N,sliceUpRight:N++,"vert.br":N,sliceUpLeft:N++,"fade.left":N,sliceFadeRight:N++,"fade.right":N,sliceFadeLeft:N++,"alt.left":N,sliceAltRight:N++,"alt.right":N,sliceAltLeft:N++,"blinds.left":N,blindsRight:N++,"blinds.right":N,blindsLeft:N++,"vert.random.fade":N,verticalSliceRandomFade:N++,"horz.tl":N,sliceRightDown:N++,"horz.tr":N,sliceLeftDown:N++,"horz.bl":N,sliceRightUp:N++,"horz.br":N,sliceLeftUp:N++,"fade.top":N,sliceFadeDown:N++,"fade.bottom":N,sliceFadeUp:N++,"alt.top":N,sliceAltDown:N++,"alt.bottom":N,sliceAltUp:N++,"blinds.top":N,blindsDown:N++,"blinds.bottom":N,blindsUp:N++,"horz.random.fade":N,horizontalSliceRandomFade:N++,none:N++,fade:N++,crossFade:N++,"h.slide":N,horizontalSlide:N++,"v.slide":N,verticalSlide:N++,random:N++};var o=N;N=0;var n={none:N++,fade:N++,down:N,expandDown:N++,right:N,expandRight:N++,up:N,expandUp:N++,left:N,expandLeft:N++,moveDown:N++,moveRight:N++,moveUp:N++,moveLeft:N++};var C=250;var G=75;var F=50;var d=5000;var B=800;var Q=500;var J=4;var h=50;var E="updateLayers";var e="resetLayers";var r="updatelist";var A=/MSIE (\d+\.\d+);/.test(navigator.userAgent);var l=b(7);var O=new Array();O.linear="cubic-bezier(0.250, 0.250, 0.750, 0.750)";O[""]=O.swing="cubic-bezier(0.250, 0.100, 0.250, 1.000)";O.easeInQuad="cubic-bezier(0.550, 0.085, 0.680, 0.530)";O.easeOutQuad="cubic-bezier(0.250, 0.460, 0.450, 0.940)";O.easeInOutQuad="cubic-bezier(0.455, 0.030, 0.515, 0.955)";O.easeInCubic="cubic-bezier(0.550, 0.055, 0.675, 0.190)";O.easeOutCubic="cubic-bezier(0.215, 0.610, 0.355, 1.000)";O.easeInOutCubic="cubic-bezier(0.645, 0.045, 0.355, 1.000)";O.easeInQuart="cubic-bezier(0.895, 0.030, 0.685, 0.220)";O.easeOutQuart="cubic-bezier(0.165, 0.840, 0.440, 1.000)";O.easeInOutQuart="cubic-bezier(0.770, 0.000, 0.175, 1.000)";O.easeInQuint="cubic-bezier(0.755, 0.050, 0.855, 0.060)";O.easeOutQuint="cubic-bezier(0.230, 1.000, 0.320, 1.000)";O.easeInOutQuint="cubic-bezier(0.860, 0.000, 0.070, 1.000)";O.easeInSine="cubic-bezier(0.470, 0.000, 0.745, 0.715)";O.easeOutSine="cubic-bezier(0.390, 0.575, 0.565, 1.000)";O.easeInOutSine="cubic-bezier(0.445, 0.050, 0.550, 0.950)";O.easeInExpo="cubic-bezier(0.950, 0.050, 0.795, 0.035)";O.easeOutExpo="cubic-bezier(0.190, 1.000, 0.220, 1.000)";O.easeInOutExpo="cubic-bezier(1.000, 0.000, 0.000, 1.000)";O.easeInCirc="cubic-bezier(0.600, 0.040, 0.980, 0.335)";O.easeOutCirc="cubic-bezier(0.075, 0.820, 0.165, 1.000)";O.easeInOutCirc="cubic-bezier(0.785, 0.135, 0.150, 0.860)";O.easeInBack="cubic-bezier(0.600, -0.280, 0.735, 0.045)";O.easeOutBack="cubic-bezier(0.175, 0.885, 0.320, 1.275)";O.easeInOutBack="cubic-bezier(0.680, -0.550, 0.265, 1.550)";var R={transition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};var M={transition:"transition",MozTransition:"-moz-transition",WebkitTransition:"-webkit-transition"};var y=H("transition");var V="trsn";var m="randTrsn";var c="diagTrsn";var v="zigzagTrsn";var p="dirTrsn";var K="spiralTrsn";var q="clearTrsn";function a(X){this._$stripes;this._arr;this._total;this._intervalId=null;this._rotator=X;this._areaWidth=X._screenWidth;this._areaHeight=X._screenHeight;this._size=X._vertSize;this._delay=X._vertDelay;this.init()}a.prototype.init=function(){this._total=Math.ceil(this._areaWidth/this._size);if(this._total>C){this._size=Math.ceil(this._areaWidth/C);this._total=Math.ceil(this._areaWidth/this._size)}var Y="";for(var X=0;X<this._total;X++){Y+="<div class='vpiece' id='"+X+"' style='left:"+(X*this._size)+"px; height:"+this._areaHeight+"px'></div>"}this._rotator.addToScreen(Y);this._$stripes=this._rotator._$screen.find("div.vpiece");this._arr=this._$stripes.toArray();if(false!==y&&false!==this._rotator._cssTrsn){D(this).bind(V,this.cssAnimate).bind(m,this.cssRandom).bind(q,this.cssClear)}else{D(this).bind(V,this.jsAnimate).bind(m,this.jsRandom).bind(q,this.jsClear)}};a.prototype.clear=function(){D(this).trigger(q)};a.prototype.jsClear=function(){clearInterval(this._intervalId);this._intervalId=null;this._$stripes.stop(true).css({"z-index":2,opacity:0})};a.prototype.cssClear=function(){this._$stripes.unbind(R[y]).cssTransitionStop(false).css({"z-index":2,opacity:0,display:"none"})};a.prototype.displayContent=function(X,Y,Z,aa){this.setPieces(X,Y);if(Y==u.verticalSliceRandomFade){D(this).trigger(m,[X,Z,aa])}else{this.animate(X,Y,Z,aa)}};a.prototype.setPieces=function(X,Y){switch(Y){case u.sliceDownRight:case u.sliceDownLeft:this.setVertPieces(X,-this._areaHeight,1,this._size,false);break;case u.sliceUpRight:case u.sliceUpLeft:this.setVertPieces(X,this._areaHeight,1,this._size,false);break;case u.sliceAltRight:case u.sliceAltLeft:this.setVertPieces(X,0,1,this._size,true);break;case u.blindsRight:case u.blindsLeft:this.setVertPieces(X,0,1,0,false);break;default:this.setVertPieces(X,0,0,this._size,false)}};a.prototype.setVertPieces=function(X,ae,af,aa,ad){var ah=X.attr("src");var ag=0;var Z=0;if(this._rotator._autoCenter){ag=(this._areaHeight-X.height())/2;Z=(this._areaWidth-X.width())/2}for(var ab=0;ab<this._total;ab++){var Y=this._$stripes.eq(ab);var ac=((-ab*this._size)+Z);if(ad){ae=(ab%2)==0?-this._areaHeight:this._areaHeight}Y.css({background:"url('"+ah+"') no-repeat",backgroundPosition:ac+"px "+ag+"px",opacity:af,top:ae,width:aa,"z-index":3})}};a.prototype.animate=function(Y,Z,aa,ad){var ac,X,ab;switch(Z){case u.sliceDownRight:case u.sliceUpRight:case u.sliceFadeRight:case u.blindsRight:case u.sliceAltRight:ac=0;X=this._total-1;ab=1;break;default:ac=this._total-1;X=0;ab=-1}D(this).trigger(V,[Y,aa,ad,ac,X,ab])};a.prototype.jsAnimate=function(ab,Y,aa,ae,ad,X,ac){var Z=this;this._intervalId=setInterval(function(){Z._$stripes.eq(ad).animate({top:0,opacity:1,width:Z._size},aa,ae,function(){if(D(this).attr("id")==X){Z._rotator.showContent(Y)}});if(ad==X){clearInterval(Z._intervalId);Z._intervalId=null}ad+=ac},this._delay)};a.prototype.cssAnimate=function(ad,X,aa,ae,Y,ab,Z){var ac=this;var af=0;this._$stripes.show();while(true){this._$stripes.eq(Y).cssTransition({top:0,opacity:1,width:this._size},aa,ae,af,function(){if(D(this).attr("id")==ab){ac._rotator.showContent(X)}});if(Y==ab){break}Y+=Z;af+=this._delay}};a.prototype.jsRandom=function(ac,Y,ab,ad){var aa=this;s(this._arr);var X=0;var Z=0;this._intervalId=setInterval(function(){D(aa._arr[X++]).animate({opacity:1},ab,ad,function(){if(++Z==aa._total){aa._rotator.showContent(Y)}});if(X==aa._total){clearInterval(aa._intervalId);aa._intervalId=null}},this._delay)};a.prototype.cssRandom=function(ac,Y,ab,ad){var aa=this;var Z=0;s(this._arr);this._$stripes.show();for(var X=0;X<=this._total;X++){D(this._arr[X]).cssTransition({opacity:1},ab,ad,X*this._delay,function(){if(++Z==aa._total){aa._rotator.showContent(Y)}})}};function x(X){this._$stripes;this._arr;this._total;this._intervalId=null;this._rotator=X;this._areaWidth=X._screenWidth;this._areaHeight=X._screenHeight;this._size=X._horzSize;this._delay=X._horzDelay;this.init()}x.prototype.init=function(){this._total=Math.ceil(this._areaHeight/this._size);if(this._total>C){this._size=Math.ceil(this._areaHeight/C);this._total=Math.ceil(this._areaHeight/this._size)}var Y="";for(var X=0;X<this._total;X++){Y+="<div class='hpiece' id='"+X+"' style='top:"+(X*this._size)+"px; width:"+this._areaWidth+"px'><!-- --></div>"}this._rotator.addToScreen(Y);this._$stripes=this._rotator._$screen.find("div.hpiece");this._arr=this._$stripes.toArray();if(false!==y&&false!==this._rotator._cssTrsn){D(this).bind(V,this.cssAnimate).bind(m,this.cssRandom).bind(q,this.cssClear)}else{D(this).bind(V,this.jsAnimate).bind(m,this.jsRandom).bind(q,this.jsClear)}};x.prototype.clear=function(){D(this).trigger(q)};x.prototype.jsClear=function(){clearInterval(this._intervalId);this._intervalId=null;this._$stripes.stop(true).css({"z-index":2,opacity:0})};x.prototype.cssClear=function(){this._$stripes.unbind(R[y]).cssTransitionStop(false).css({"z-index":2,opacity:0,display:"none"})};x.prototype.displayContent=function(X,Y,Z,aa){this.setPieces(X,Y);if(Y==u.horizontalSliceRandomFade){D(this).trigger(m,[X,Z,aa])}else{this.animate(X,Y,Z,aa)}};x.prototype.setPieces=function(X,Y){switch(Y){case u.sliceLeftDown:case u.sliceLeftUp:this.setHorzPieces(X,this._areaWidth,1,this._size,false);break;case u.sliceRightDown:case u.sliceRightUp:this.setHorzPieces(X,-this._areaWidth,1,this._size,false);break;case u.sliceAltDown:case u.sliceAltUp:this.setHorzPieces(X,0,1,this._size,true);break;case u.blindsDown:case u.blindsUp:this.setHorzPieces(X,0,1,0,false);break;default:this.setHorzPieces(X,0,0,this._size,false)}};x.prototype.setHorzPieces=function(X,ab,ae,ag,ad){var ah=X.attr("src");var af=0;var Z=0;if(this._rotator._autoCenter){af=(this._areaHeight-X.height())/2;Z=(this._areaWidth-X.width())/2}for(var ac=0;ac<this._total;ac++){var Y=this._$stripes.eq(ac);var aa=((-ac*this._size)+af);if(ad){ab=(ac%2)==0?-this._areaWidth:this._areaWidth}Y.css({background:"url('"+ah+"') no-repeat",backgroundPosition:Z+"px "+aa+"px",opacity:ae,left:ab,height:ag,"z-index":3})}};x.prototype.animate=function(Y,Z,aa,ad){var ac,X,ab;switch(Z){case u.sliceRightDown:case u.sliceLeftDown:case u.sliceFadeDown:case u.blindsDown:case u.sliceAltDown:ac=0;X=this._total-1;ab=1;break;default:ac=this._total-1;X=0;ab=-1}D(this).trigger(V,[Y,aa,ad,ac,X,ab])};x.prototype.jsAnimate=function(ab,Y,aa,ae,ad,X,ac){var Z=this;this._intervalId=setInterval(function(){Z._$stripes.eq(ad).animate({left:0,opacity:1,height:Z._size},aa,ae,function(){if(D(this).attr("id")==X){Z._rotator.showContent(Y)}});if(ad==X){clearInterval(Z._intervalId);Z._intervalId=null}ad+=ac},this._delay)};x.prototype.cssAnimate=function(ad,X,aa,ae,Y,ab,Z){var ac=this;var af=0;this._$stripes.show();while(true){this._$stripes.eq(Y).cssTransition({left:0,opacity:1,height:this._size},aa,ae,af,function(){if(D(this).attr("id")==ab){ac._rotator.showContent(X)}});if(Y==ab){break}Y+=Z;af+=this._delay}};x.prototype.jsRandom=function(ac,Y,ab,ad){var aa=this;s(this._arr);var X=0;var Z=0;this._intervalId=setInterval(function(){D(aa._arr[X++]).animate({opacity:1},ab,ad,function(){if(++Z==aa._total){aa._rotator.showContent(Y)}});if(X==aa._total){clearInterval(aa._intervalId);aa._intervalId=null}},this._delay)};x.prototype.cssRandom=function(ac,Y,ab,ad){var aa=this;var Z=0;s(this._arr);this._$stripes.show();for(var X=0;X<=this._total;X++){D(this._arr[X]).cssTransition({opacity:1},ab,ad,X*this._delay,function(){if(++Z==aa._total){aa._rotator.showContent(Y)}})}};function z(X){this._$blockArr;this._$blocks;this._arr;this._numRows;this._numCols;this._total;this._intervalId;this._rotator=X;this._areaWidth=X._screenWidth;this._areaHeight=X._screenHeight;this._size=X._blockSize;this._delay=X._blockDelay;this.init()}z.prototype.init=function(){this._numRows=Math.ceil(this._areaHeight/this._size);this._numCols=Math.ceil(this._areaWidth/this._size);this._total=this._numRows*this._numCols;if(this._total>C){this._size=Math.ceil(Math.sqrt((this._areaHeight*this._areaWidth)/C));this._numRows=Math.ceil(this._areaHeight/this._size);this._numCols=Math.ceil(this._areaWidth/this._size);this._total=this._numRows*this._numCols}var aa="";for(var Z=0;Z<this._numRows;Z++){for(var Y=0;Y<this._numCols;Y++){aa+="<div class='block' id='"+Z+"-"+Y+"'></div>"}}this._rotator.addToScreen(aa);this._$blocks=this._rotator._$screen.find("div.block");this._$blocks.data({tlId:"0-0",trId:"0-"+(this._numCols-1),blId:(this._numRows-1)+"-0",brId:(this._numRows-1)+"-"+(this._numCols-1)});var X=0;this._arr=this._$blocks.toArray();this._$blockArr=new Array(this._numRows);for(var Z=0;Z<this._numRows;Z++){this._$blockArr[Z]=new Array(this._numCols);for(var Y=0;Y<this._numCols;Y++){this._$blockArr[Z][Y]=this._$blocks.filter("#"+(Z+"-"+Y)).data("top",Z*this._size)}}if(false!==y&&false!==this._rotator._cssTrsn){D(this).bind(V,this.cssAnimate).bind(c,this.cssDiagonal).bind(v,this.cssZigZag).bind(p,this.cssDirectional).bind(K,this.cssSpiral).bind(m,this.cssRandom).bind(q,this.cssClear)}else{D(this).bind(V,this.jsAnimate).bind(c,this.jsDiagonal).bind(v,this.jsZigZag).bind(p,this.jsDirectional).bind(K,this.jsSpiral).bind(m,this.jsRandom).bind(q,this.jsClear)}};z.prototype.clear=function(){D(this).trigger(q)};z.prototype.jsClear=function(){clearInterval(this._intervalId);this._intervalId=null;this._$blocks.stop(true).css({"z-index":2,opacity:0})};z.prototype.cssClear=function(){this._$blocks.unbind(R[y]).cssTransitionStop(false).css({"z-index":2,opacity:0,display:"none"})};z.prototype.displayContent=function(X,Y,Z,aa){switch(Y){case u.diagonalFade:this.setBlocks(X,0,this._size,0);this.diagAnimate(X,{opacity:1},false,Z,aa);break;case u.diagonalExpand:this.setBlocks(X,0,0,0);this.diagAnimate(X,{opacity:1,width:this._size,height:this._size},false,Z,aa);break;case u.reverseDiagonalFade:this.setBlocks(X,0,this._size,0);this.diagAnimate(X,{opacity:1},true,Z,aa);break;case u.reverseDiagonalExpand:this.setBlocks(X,0,0,0);this.diagAnimate(X,{opacity:1,width:this._size,height:this._size},true,Z,aa);break;case u.blockRandomFade:this.setBlocks(X,0,this._size,0);D(this).trigger(m,[X,Z,aa]);break;case u.blockRandomExpand:this.setBlocks(X,1,0,0);D(this).trigger(m,[X,Z,aa]);break;case u.blockRandomDrop:this.setBlocks(X,1,this._size,-(this._numRows*this._size));D(this).trigger(m,[X,Z,aa]);break;case u.zigZagDown:case u.zigZagUp:case u.zigZagRight:case u.zigZagLeft:this.setBlocks(X,0,this._size,0);this.zigZagAnimate(X,Y,Z,aa);break;case u.spiralIn:this.setBlocks(X,0,this._size,0);this.spiralAnimate(X,false,Z,aa);break;case u.spiralOut:this.setBlocks(X,0,this._size,0);this.spiralAnimate(X,true,Z,aa);break;default:this.setBlocks(X,1,0,0);this.dirAnimate(X,Y,Z,aa)}};z.prototype.setBlocks=function(X,ad,ah,ac){var ae=0;var Z=0;if(this._rotator._autoCenter){ae=(this._areaHeight-X.height())/2;Z=(this._areaWidth-X.width())/2}var af=X.attr("src");for(var ab=0;ab<this._numRows;ab++){for(var aa=0;aa<this._numCols;aa++){var ag=((-ab*this._size)+ae);var Y=((-aa*this._size)+Z);this._$blockArr[ab][aa].css({background:"url('"+af+"') no-repeat",backgroundPosition:Y+"px "+ag+"px",opacity:ad,top:(ab*this._size)+ac,left:(aa*this._size),width:ah,height:ah,"z-index":3})}}};z.prototype.diagAnimate=function(X,ah,ad,ab,ag){var af=new Array(this._total);var Z,ac,Y,aa;var ai=(this._numRows-1)+(this._numCols-1);if(ad){Z=ai;ac=-1;Y=-1;aa=this._$blocks.data("tlId")}else{Z=0;ac=ai+1;Y=1;aa=this._$blocks.data("brId")}var ae=0;while(Z!=ac){i=Math.min(this._numRows-1,Z);while(i>=0){j=Math.abs(i-Z);if(j>=this._numCols){break}af[ae++]=this._$blockArr[i][j];i--}Z+=Y}D(this).trigger(c,[X,ah,ab,ag,af,aa])};z.prototype.jsDiagonal=function(ad,X,af,Z,ae,ab,Y){var ac=this;var aa=0;this._intervalId=setInterval(function(){ab[aa++].animate(af,Z,ae,function(){if(D(this).attr("id")==Y){ac._rotator.showContent(X)}});if(aa==ac._total){clearInterval(ac._intervalId);ac._intervalId=null}},this._delay)};z.prototype.cssDiagonal=function(ad,X,af,Z,ae,ab,Y){var ac=this;this._$blocks.show();for(var aa=0;aa<this._total;aa++){ab[aa].cssTransition(af,Z,ae,aa*this._delay,function(){if(D(this).attr("id")==Y){ac._rotator.showContent(X)}})}};z.prototype.zigZagAnimate=function(Y,af,ab,ae){var ad=0,ac=0,Z,aa,X;if(af==u.zigZagRight){aa=(this._numCols%2==0)?this._$blocks.data("trId"):this._$blocks.data("brId");ac=0;Z=1;X=false}else{if(af==u.zigZagLeft){aa=(this._numCols%2==0)?this._$blocks.data("tlId"):this._$blocks.data("blId");ac=this._numCols-1;Z=-1;X=false}else{if(af==u.zigZagDown){aa=(this._numRows%2==0)?this._$blocks.data("blId"):this._$blocks.data("brId");ad=0;Z=1;X=true}else{aa=(this._numRows%2==0)?this._$blocks.data("tlId"):this._$blocks.data("trId");ad=this._numRows-1;Z=-1;X=true}}}D(this).trigger(v,[Y,ab,ae,ad,ac,Z,aa,X])};z.prototype.jsZigZag=function(ag,Y,ab,ah,ae,ac,Z,aa,X){var af=this;var ad=true;this._intervalId=setInterval(function(){af._$blockArr[ae][ac].animate({opacity:1},ab,ah,function(){if(D(this).attr("id")==aa){af._rotator.showContent(Y)}});if(af._$blockArr[ae][ac].attr("id")==aa){clearInterval(af._intervalId);af._intervalId=null}if(X){(ad?ac++:ac--);if(ac==af._numCols||ac<0){ad=!ad;ac=(ad?0:af._numCols-1);ae+=Z}}else{(ad?ae++:ae--);if(ae==af._numRows||ae<0){ad=!ad;ae=(ad?0:af._numRows-1);ac+=Z}}},this._delay)};z.prototype.cssZigZag=function(ag,Y,ab,ah,ae,ac,Z,aa,X){var af=this;var ad=true;var ai=0;this._$blocks.show();while(true){this._$blockArr[ae][ac].cssTransition({opacity:1},ab,ah,ai,function(){if(D(this).attr("id")==aa){af._rotator.showContent(Y)}});if(this._$blockArr[ae][ac].attr("id")==aa){break}if(X){(ad?ac++:ac--);if(ac==this._numCols||ac<0){ad=!ad;ac=(ad?0:this._numCols-1);ae+=Z}}else{(ad?ae++:ae--);if(ae==this._numRows||ae<0){ad=!ad;ae=(ad?0:this._numRows-1);ac+=Z}}ai+=this._delay}};z.prototype.dirAnimate=function(X,af,Z,ae){var ac=new Array(this._total);var Y;var ad=0;switch(af){case u.blockExpandRight:Y=this._$blocks.data("brId");for(var aa=0;aa<this._numCols;aa++){for(var ab=0;ab<this._numRows;ab++){ac[ad++]=this._$blockArr[ab][aa]}}break;case u.blockExpandLeft:Y=this._$blocks.data("blId");for(var aa=this._numCols-1;aa>=0;aa--){for(var ab=0;ab<this._numRows;ab++){ac[ad++]=this._$blockArr[ab][aa]}}break;case u.blockExpandDown:Y=this._$blocks.data("brId");for(var ab=0;ab<this._numRows;ab++){for(var aa=0;aa<this._numCols;aa++){ac[ad++]=this._$blockArr[ab][aa]}}break;default:Y=this._$blocks.data("trId");for(var ab=this._numRows-1;ab>=0;ab--){for(var aa=0;aa<this._numCols;aa++){ac[ad++]=this._$blockArr[ab][aa]}}}D(this).trigger(p,[X,Z,ae,ac,Y])};z.prototype.jsDirectional=function(ac,X,ab,ae,aa,ad){var Z=this;var Y=0;this._intervalId=setInterval(function(){aa[Y++].animate({width:Z._size,height:Z._size},ab,ae,function(){if(D(this).attr("id")==ad){Z._rotator.showContent(X)}});if(Y==Z._total){clearInterval(Z._intervalId);Z._intervalId=null}},this._delay)};z.prototype.cssDirectional=function(ac,Y,ab,ae,aa,ad){var Z=this;this._$blocks.show();for(var X=0;X<this._total;X++){aa[X].cssTransition({width:this._size,height:this._size},ab,ae,X*this._delay,function(){if(D(this).attr("id")==ad){Z._rotator.showContent(Y)}})}};z.prototype.jsRandom=function(ac,Y,ab,ad){var aa=this;var X=0,Z=0;s(this._arr);this._intervalId=setInterval(function(){D(aa._arr[X]).animate({top:D(aa._arr[X]).data("top"),width:aa._size,height:aa._size,opacity:1},ab,ad,function(){if(++Z==aa._total){aa._rotator.showContent(Y)}});X++;if(X==aa._total){clearInterval(aa._intervalId);aa._intervalId=null}},this._delay)};z.prototype.cssRandom=function(ac,Y,ab,ad){var aa=this;var Z=0;s(this._arr);this._$blocks.show();for(var X=0;X<this._total;X++){D(this._arr[X]).cssTransition({top:D(this._arr[X]).data("top"),width:this._size,height:this._size,opacity:1},ab,ad,X*this._delay,function(){if(++Z==aa._total){aa._rotator.showContent(Y)}})}};z.prototype.spiralAnimate=function(X,ad,aa,ag){var ac=0,ab=0;var ah=this._numRows-1;var ai=this._numCols-1;var Y=0;var Z=ai;var af=new Array();while(ah>=0&&ai>=0){var ae=0;while(true){af[af.length]=this._$blockArr[ac][ab];if((++ae)>Z){break}switch(Y){case 0:ab++;break;case 1:ac++;break;case 2:ab--;break;case 3:ac--}}switch(Y){case 0:Y=1;Z=(--ah);ac++;break;case 1:Y=2;Z=(--ai);ab--;break;case 2:Y=3;Z=(--ah);ac--;break;case 3:Y=0;Z=(--ai);ab++}}if(af.length>0){if(ad){af.reverse()}D(this).trigger(K,[X,aa,ag,af])}};z.prototype.jsSpiral=function(ae,X,Z,af,ad){var ab=ad.length-1;var Y=ad[ab].attr("id");var aa=0;var ac=this;this._intervalId=setInterval(function(){ad[aa].animate({opacity:1},Z,af,function(){if(D(this).attr("id")==Y){ac._rotator.showContent(X)}});if(aa==ab){clearInterval(ac._intervalId);ac._intervalId=null}aa++},this._delay)};z.prototype.cssSpiral=function(ae,X,Z,af,ac){var ad=this;var aa=ac.length-1;var Y=ac[aa].attr("id");this._$blocks.show();for(var ab=0;ab<=aa;ab++){ac[ab].cssTransition({opacity:1},Z,af,(ab*this._delay),function(){if(D(this).attr("id")==Y){ad._rotator.showContent(X)}})}};function L(Y,X){this._screenWidth=isNaN(X.width)?"auto":k(X.width,825);this._screenHeight=isNaN(X.height)?"auto":k(X.height,300);this._margin=g(f(X.button_margin,X.margin),4);this._globalEffect=f(X.transition,X.effect);this._duration=k(f(X.transition_speed,X.duration),B);this._globalDelay=k(X.delay,d);this._rotate=X.auto_start;this._cpOutside=("undefined"!=typeof X.cpanel_position)?("outside"===X.cpanel_position):X.outside_cpanel;this._cpAlign=X.cpanel_align.toUpperCase();this._thumbWidth=k(X.thumb_width,24);this._thumbHeight=k(X.thumb_height,24);this._buttonWidth=k(X.button_width,24);this._buttonHeight=k(X.button_height,24);this._tooltipWidth=isNaN(X.tooltip_width)?"auto":k(X.tooltip_width,50);this._tooltipHeight=isNaN(X.tooltip_height)?"auto":k(X.tooltip_height,50);this._bgImg=X.background_image;this._bgRepeat=X.background_repeat;this._bgPosition=X.background_position;this._displayPlayBtn=X.display_playbutton;this._displayTimer=X.display_timer;this._cpMouseover=window.Touch?false:f(X.cpanel_mouseover,X.cpanel_onmouseover);this._textMousover=window.Touch?false:f(X.text_mouseover,X.text_onmouseover);this._pauseMouseover=window.Touch?false:f(X.mouseover_pause,X.pause_onmouseover);this._selectMouseover=window.Touch?false:f(X.mouseover_select,X.select_onmouseover);this._buttonsMouseover=window.Touch?false:X.dbuttons_onmouseover;this._tipType=S(X.tooltip_type,["none","text","image"],"none");this._tooltipDelay=g(X.tooltip_delay,0);this._textEffect=X.text_effect;this._textDuration=k(X.text_duration,500);this._textEasing=X.text_easing;this._textDelay=g(X.text_delay,0);this._textSync=X.text_sync;this._playOnce=X.play_once;this._autoCenter=f(X.auto_center,X.center_image);this._easing=X.easing;this._timerAlign=X.timer_align.toLowerCase();this._shuffle=X.shuffle;this._mousewheelScroll=f(X.mousewheel_scroll,X.mousewheel);this._swipe=X.swipe;this._vertSize=k(f(X.vert_size,X.vslice_size),F);this._horzSize=k(f(X.horz_size,X.hslice_size),F);this._blockSize=k(X.block_size,G);this._vertDelay=k(f(X.vstripe_delay,X.vslice_delay),75);this._horzDelay=k(f(X.hstripe_delay,X.hslice_delay),75);this._blockDelay=k(X.block_delay,25);this._preload=X.preload;this._cssTransition=X.css_transition;if("undefined"!=(typeof X.display_thumbs)){if(X.display_thumbs){if("undefined"!=(typeof X.display_thumbimg)&&X.display_thumbimg){this._thumbType="image"}else{if("undefined"!=(typeof X.display_numbers)&&X.display_numbers){this._thumbType="number"}else{this._thumbType="empty"}}}else{this._thumbType="none"}}else{this._thumbType=S(X.thumb_type,["none","empty","image","number","text"],"none")}if("undefined"!=(typeof X.display_dbuttons)){if(X.display_dbuttons){this._dbuttonsType=("undefined"!=(typeof X.display_side_buttons)&&X.display_side_buttons)?"large":"small"}else{this._dbuttonsType="none"}}else{this._dbuttonsType=S(X.dbuttons_type,["none","large","small"],"none")}this._numItems;this._currIndex;this._prevIndex;this._delay;this._vStripes;this._hStripes;this._blocks;this._timerId;this._blockEffect;this._hStripeEffect;this._vStripeEffect;this._dir;this._cpVertical;this._zIndex;this._syncId;this._layerId;this._layerDelay;this._cssTrsnLayer;this._cssTrsn;this._slideTransition;this._verticalSlide;this._startX;this._startY;this._swipeDist;this._scrolling;this._$rotator;this._$screen;this._$strip;this._$mainLink;this._$layers;this._$preloader;this._$cpWrapper;this._$cpanel;this._$thumbPanel;this._$list;this._$thumbs;this._$buttonPanel;this._$playBtn;this._$sPrev;this._$sNext;this._$timer;this._$tooltip;this._$items;this._$contentBoxes;this._$obj=Y;this._$cloneDom;this.init()}L.prototype.getRotator=function(Z,Y){if(Z.hasClass(Y)){return Z}var X=Z.find("."+Y);if(0<X.length){return X.eq(0)}return undefined};L.prototype.init=function(){this._$cloneDom=this._$obj.find(">div:first").clone();this._$rotator=this._$obj.find(".banner-rotator").eq(0);this._cssTrsnLayer=this._cssTrsn=(y&&this._cssTransition&&!window.Touch);var Z=this._$rotator.parent();if("auto"===this._screenWidth){var Y=this._$rotator.outerWidth()-this._$rotator.width();this._screenWidth=(0<Z.length&&0<Z.width())?(Z.width()-Y):825}if("auto"===this._screenHeight){var X=this._$rotator.outerHeight()-this._$rotator.height();this._screenHeight=(0<Z.length&&0<Z.height())?(Z.height()-X):300}this._$screen=this._$rotator.find(">div.screen");if(0==this._$screen.length){this._$rotator.append("<div class='screen'></div>");this._$screen=this._$rotator.find(">div.screen")}this._$list=this._$rotator.find(">ul");if(0<this._$list.length){this._$list.wrap("<div class='c-panel'><div class='thumbnails'></div></div>")}this._$cpanel=this._$rotator.find(">div.c-panel");this._$buttonPanel=this._$cpanel.find(">div.buttons");if(0==this._$buttonPanel.length){this._$cpanel.append("<div class='buttons'><div class='prev-btn'></div><div class='play-btn'></div><div class='next-btn'></div></div>");this._$buttonPanel=this._$cpanel.find(">div.buttons")}this._$thumbPanel=this._$cpanel.find(">div.thumbnails");this._$list=this._$thumbPanel.find(">ul");this._$thumbs=this._$list.find(">li");this._timerId=this._syncId=this._layerId=null;this._currIndex=0;this._prevIndex=-1;this._numItems=this._$thumbs.length;this._$items=new Array(this._numItems);this._blockEffect=this._hStripeEffect=this._vStripeEffect=false;this.checkEffect(u[this._globalEffect]);this._slideTransition=(u[this._globalEffect]===u.horizontalSlide||u[this._globalEffect]===u.verticalSlide);this._cpVertical=W[this._cpAlign]>=W.LT?true:false;if(this._numItems<=1){this._rotate=this._displayPlayBtn=this._displayTimer=this._mousewheelScroll=this._pauseMouseover=false;this._dbuttonsType="none"}if(this._shuffle){this.shuffleItems()}this._$rotator.css({width:this._screenWidth,height:this._screenHeight});this.initScreen();this.initButtons();this.initItems();if("large"==this._dbuttonsType){this._zIndex++;this._$sPrev.css("z-index",this._zIndex);this._$sNext.css("z-index",this._zIndex)}this.initCPanel();this.initTimerBar();if(this._textMousover){if(false!==y&&false!==this._cssTrsnLayer){this._$rotator.bind("mouseenter",{elem:this},this.displayCssLayers).bind("mouseleave",{elem:this},this.hideLayers).bind(e,{elem:this},this.resetCssLayers)}else{this._$rotator.bind("mouseenter",{elem:this},this.displayLayers).bind("mouseleave",{elem:this},this.hideLayers).bind(e,{elem:this},this.resetLayers)}}else{if(false!==y&&false!==this._cssTrsnLayer){this._$rotator.bind(E,{elem:this},this.updateCssLayers).bind(e,{elem:this},this.resetCssLayers)}else{this._$rotator.bind(E,{elem:this},this.updateLayers).bind(e,{elem:this},this.resetLayers)}}if(this._vStripeEffect){this._vStripes=new a(this)}if(this._hStripeEffect){this._hStripes=new x(this)}if(this._blockEffect){this._blocks=new z(this)}if(window.Touch){if(this._swipe){this._startX=this._startY=this._swipeDist=null;this._verticalSlide=(u[this._globalEffect]==u.verticalSlide);this._$rotator.bind("touchstart",{elem:this},this.touchStart)}}else{if(this._mousewheelScroll){this._$rotator.bind("mousewheel",{elem:this},this.mouseScrollContent).bind("DOMMouseScroll",{elem:this},this.mouseScrollContent)}}if(!b(6)&&this._preload){this.loadImg(0)}else{this.loadAll()}if(this._$items.length>0){this.loadContent(this._currIndex)}};L.prototype.touchStart=function(Y){if(1===Y.originalEvent.touches.length){var X=Y.data.elem;X._startX=Y.originalEvent.touches[0].pageX;X._startY=Y.originalEvent.touches[0].pageY;X._$rotator.bind("touchmove",{elem:X},X.touchMove).one("touchend",{elem:X},X.touchEnd)}};L.prototype.touchMove=function(aa){var Z=aa.data.elem;var X=Z._startX-aa.originalEvent.touches[0].pageX;var Y=Z._startY-aa.originalEvent.touches[0].pageY;if(Z._verticalSlide){Z._swipeDist=Y;Z._scrolling=Math.abs(Z._swipeDist)<Math.abs(X)}else{Z._swipeDist=X;Z._scrolling=Math.abs(Z._swipeDist)<Math.abs(Y)}if(!Z._scrolling){aa.preventDefault()}};L.prototype.touchEnd=function(Y){var X=Y.data.elem;X._$rotator.unbind("touchmove");if(!X._scrolling){if(null!==X._swipeDist&&Math.abs(X._swipeDist)>h){if(X._swipeDist>0){X.nextImg()}else{X.prevImg()}}}X._startX=X._startY=X._swipeDist=null};L.prototype.addToScreen=function(X){this._$mainLink.append(X)};L.prototype.initScreen=function(){var Y="<div class='preloader'></div><div class='timer'></div>";var Z=this.getMaxLayers();for(var X=0;X<Z;X++){Y+="<div class='desc'><div class='inner-bg'></div><div class='inner-text'></div></div>"}this._$screen.append(Y);this._$layers=this._$screen.find(">div.desc");this._$preloader=this._$screen.find(">div.preloader");this._$screen.css({width:this._screenWidth,height:this._screenHeight});if(""!=this._bgImg){this._$screen.css({"background-image":"url("+this._bgImg+")","background-repeat":this._bgRepeat,"background-position":this._bgPosition})}this._$strip=D("<div class='strip'></div>");if(u[this._globalEffect]==u.horizontalSlide){this._$screen.append(this._$strip);this._$strip.css({width:2*this._screenWidth,height:this._screenHeight});this._$thumbs.removeAttr("effect")}else{if(u[this._globalEffect]==u.verticalSlide){this._$screen.append(this._$strip);this._$strip.css({width:this._screenWidth,height:2*this._screenHeight});this._$thumbs.removeAttr("effect")}else{this._$screen.append("<a href='#'></a>");this._$mainLink=this._$screen.find(">a:first")}}Y="";if(this._slideTransition){for(var X=0;X<this._numItems;X++){Y+="<div class='content-box'><img class='main-img'/></div>"}this._$strip.append(Y);this._$contentBoxes=this._$strip.find(">div.content-box");this._$contentBoxes.css({width:this._screenWidth,height:this._screenHeight})}else{for(var X=0;X<this._numItems;X++){Y+="<img class='main-img'/>"}this._$mainLink.append(Y)}};L.prototype.initCPanel=function(){if("none"!=this._thumbType||"small"==this._dbuttonsType||this._displayPlayBtn){if(!this._cpOutside){this._$cpanel.css("z-index",++this._zIndex);switch(W[this._cpAlign]){case W.BL:this.setHPanel("left");this.setInsideHP("bottom");break;case W.BC:this.setHPanel("center");this.setInsideHP("bottom");break;case W.BR:this.setHPanel("right");this.setInsideHP("bottom");break;case W.TL:this.setHPanel("left");this.setInsideHP("top");break;case W.TC:this.setHPanel("center");this.setInsideHP("top");break;case W.TR:this.setHPanel("right");this.setInsideHP("top");break;case W.LT:this.setVPanel("top");this.setInsideVP("left");break;case W.LC:this.setVPanel("center");this.setInsideVP("left");break;case W.LB:this.setVPanel("bottom");this.setInsideVP("left");break;case W.RT:this.setVPanel("top");this.setInsideVP("right");break;case W.RC:this.setVPanel("center");this.setInsideVP("right");break;case W.RB:this.setVPanel("bottom");this.setInsideVP("right");break}if(this._cpMouseover){var X=this._cpVertical?"left":"top";this._$rotator.bind("mouseenter",{elem:this,dir:X},this.displayCPanel).bind("mouseleave",{elem:this,dir:X},this.hideCPanel)}}else{switch(W[this._cpAlign]){case W.BL:this.setHPanel("left");this.setOutsideHP(false);break;case W.BC:this.setHPanel("center");this.setOutsideHP(false);break;case W.BR:this.setHPanel("right");this.setOutsideHP(false);break;case W.TL:this.setHPanel("left");this.setOutsideHP(true);break;case W.TC:this.setHPanel("center");this.setOutsideHP(true);break;case W.TR:this.setHPanel("right");this.setOutsideHP(true);break;case W.LT:this.setVPanel("top");this.setOutsideVP(true);break;case W.LC:this.setVPanel("center");this.setOutsideVP(true);break;case W.LB:this.setVPanel("bottom");this.setOutsideVP(true);break;case W.RT:this.setVPanel("top");this.setOutsideVP(false);break;case W.RC:this.setVPanel("center");this.setOutsideVP(false);break;case W.RB:this.setVPanel("bottom");this.setOutsideVP(false);break}}this._$cpanel.css("visibility","visible").click(I)}};L.prototype.setHPanel=function(Y){this._$cpanel.css({"margin-top":this._margin,"margin-bottom":this._margin,height:Math.max(this._$thumbPanel.outerHeight(true),this._$buttonPanel.outerHeight(true))});var X;if(Y=="center"){X=Math.round((this._screenWidth-this._$cpanel.width()-this._margin)/2)}else{if(Y=="left"){X=this._margin}else{X=this._screenWidth-this._$cpanel.width()}}this._$cpanel.css("left",X)};L.prototype.setVPanel=function(Y){this._$cpanel.css({"margin-left":this._margin,"margin-right":this._margin,width:Math.max(this._$thumbPanel.outerWidth(true),this._$buttonPanel.outerWidth(true))});var X;if(Y=="center"){X=Math.round((this._screenHeight-this._$cpanel.height()-this._margin)/2)}else{if(Y=="top"){X=this._margin}else{X=this._screenHeight-this._$cpanel.height()}}this._$cpanel.css("top",X)};L.prototype.setInsideHP=function(Z){var Y,X;if(Z=="top"){X=0;Y=-this._$cpanel.outerHeight(true)}else{X=this._screenHeight-this._$cpanel.outerHeight(true);Y=this._screenHeight}this._$cpanel.data({offset:Y,pos:X}).css({top:(this._cpMouseover?Y:X)})};L.prototype.setInsideVP=function(Z){var Y,X;if(Z=="left"){X=0;Y=-this._$cpanel.outerWidth(true)}else{X=this._screenWidth-this._$cpanel.outerWidth(true);Y=this._screenWidth}this._$cpanel.data({offset:Y,pos:X}).css({left:(this._cpMouseover?Y:X)})};L.prototype.setOutsideHP=function(X){this._$cpanel.wrap("<div class='outer-hp'></div>");this._$cpWrapper=this._$rotator.find(".outer-hp");this._$cpWrapper.height(this._$cpanel.outerHeight(true));if(X){this._$cpWrapper.css({"border-top":"none",top:0});this._$screen.css("top",this._$cpWrapper.outerHeight())}else{this._$cpWrapper.css({"border-bottom":"none",top:this._screenHeight});this._$screen.css("top",0)}this._$rotator.css({height:this._screenHeight+this._$cpWrapper.outerHeight()})};L.prototype.setOutsideVP=function(X){this._$cpanel.wrap("<div class='outer-vp'></div>");this._$cpWrapper=this._$rotator.find(".outer-vp");this._$cpWrapper.width(this._$cpanel.outerWidth(true));if(X){this._$cpWrapper.css({"border-left":"none",left:0});this._$screen.css("left",this._$cpWrapper.outerWidth())}else{this._$cpWrapper.css({"border-right":"none",left:this._screenWidth});this._$screen.css("left",0)}this._$rotator.css({width:this._screenWidth+this._$cpWrapper.outerWidth()})};L.prototype.initButtons=function(){this._$playBtn=this._$buttonPanel.find("div.play-btn");var Z=this._$buttonPanel.find("div.prev-btn");var aa=this._$buttonPanel.find("div.next-btn");if("small"==this._dbuttonsType){Z.bind("click",{elem:this},this.prevImg);aa.bind("click",{elem:this},this.nextImg)}else{Z.hide();aa.hide()}if(this._displayPlayBtn){this._$playBtn.toggleClass("pause",this._rotate).bind("click",{elem:this},this.togglePlay)}else{this._$playBtn.hide()}if(this._pauseMouseover){this._$rotator.bind("mouseenter",{elem:this},this.pause).bind("mouseleave",{elem:this},this.play)}if("large"==this._dbuttonsType){this._$screen.append("<div class='s-prev'></div><div class='s-next'></div>");this._$sPrev=this._$screen.find(".s-prev");this._$sNext=this._$screen.find(".s-next");this._$sPrev.bind("click",{elem:this},this.prevImg).mousedown(I);this._$sNext.bind("click",{elem:this},this.nextImg).mousedown(I);if(this._buttonsMouseover){this._$sPrev.css("left",-this._$sPrev.width());this._$sNext.css("margin-left",0);this._$rotator.bind("mouseenter",{elem:this},this.showSideButtons).bind("mouseleave",{elem:this},this.hideSideButtons)}}var Y=this._$buttonPanel.find(">div").css({width:this._buttonWidth,height:this._buttonHeight}).mousedown(I);if(this._cpVertical){Z.addClass("up");aa.addClass("down");Y.css("margin-bottom",this._margin);this._$buttonPanel.width(Y.outerWidth());if(l){this._$buttonPanel.height(this._$buttonPanel.find(">div:visible").length*Y.outerHeight(true))}if("none"!=this._thumbType&&this._thumbWidth>this._buttonWidth){var X=this._thumbWidth-this._buttonWidth;switch(W[this._cpAlign]){case W.RT:case W.RC:case W.RB:this._$buttonPanel.css("margin-left",X);break;default:this._$buttonPanel.css("margin-right",X)}}}else{Y.css("margin-right",this._margin);this._$buttonPanel.height(Y.outerHeight());if(l){this._$buttonPanel.width(this._$buttonPanel.find(">div:visible").length*Y.outerWidth(true))}if("none"!=this._thumbType&&this._thumbHeight>this._buttonHeight){var X=this._thumbHeight-this._buttonHeight;switch(W[this._cpAlign]){case W.TL:case W.TC:case W.TR:this._$buttonPanel.css("margin-bottom",X);break;default:this._$buttonPanel.css("margin-top",X)}}}};L.prototype.initTimerBar=function(){this._$timer=this._$screen.find(".timer").data("pct",1);if(this._displayTimer){this._$timer.css("visibility","visible");this._$timer.css("top",this._timerAlign=="top"?0:this._screenHeight-this._$timer.height())}else{this._$timer.hide()}};L.prototype.initItems=function(){var ab=this;var ai=parseInt(this._$layers.css("z-index"));this._zIndex=ai;for(var am=0;am<this._numItems;am++){var ae=this._$thumbs.eq(am);var Z=ae.find(">a").eq(0);var ar=f(Z.attr("href"),"");var aq=f(Z.attr("title"),"");var ah=ae.find(">a").eq(1);var an=f(ah.attr("href"),"");var at=f(ah.attr("target"),"");var ak=u[ae.attr("data-effect")];if((typeof ak=="undefined")||ak==u.horizontalSlide||ak==u.verticalSlide){ak=u[this._globalEffect]}else{this.checkEffect(ak)}var X=k(ae.attr("data-duration"),this._duration);var ao=f(ae.attr("data-easing"),this._easing);var af=k(ae.attr("data-delay"),this._globalDelay);if(T(ao,"Elastic")||T(ao,"Bounce")){this._cssTrsn=false}ae.data({imgurl:ar,caption:aq,ttText:ae.find(">.tt-text").html(),href:an,target:at,effect:ak,duration:X,easing:ao,delay:af,complete:false});this.initLayerData(ae,ai);this._$items[am]=ae;if("number"==this._thumbType){ae.append(am+1)}else{if("text"==this._thumbType){ae.append(ae.data("caption"))}}var ac;if(this._slideTransition){ac=this._$contentBoxes.eq(am).find(">img.main-img")}else{ac=this._$mainLink.find(">img.main-img").eq(am)}ae.data({img:ac})}this._$layers.find(">div.inner-text").css({width:"auto",height:"auto"}).html("");this._$layers.css({visibility:"visible",display:"none"});if("none"==this._thumbType){this._$thumbs.hide()}else{if("image"==this._thumbType){this._$thumbs.addClass("image").each(function(aw){var av=D(this).find(">a").eq(0).removeAttr("title");var au=av.find(">img");if(0<au.length){au.removeAttr("alt");au.one("load",function(){ab.maximizeImage(D(this),ab._thumbWidth,ab._thumbHeight)});if(au[0].complete||"complete"==au[0].readyState){au.trigger("load")}}})}this._$thumbs.css({width:this._thumbWidth,height:this._thumbHeight,"line-height":this._thumbHeight+"px"}).mousedown(I);if(this._selectMouseover){this._$thumbs.bind("mouseover",{elem:this},this.selectItem)}else{this._$thumbPanel.bind("click",{elem:this},this.selectItem)}if(this._cpVertical){this._$thumbs.css("margin-bottom",this._margin);this._$list.width(this._$thumbs.outerWidth());this._$thumbPanel.width(this._$list.width());if(l){this._$thumbPanel.height(this._numItems*this._$thumbs.outerHeight(true))}if(("small"==this._dbuttonsType||this._displayPlayBtn)&&(this._buttonWidth>this._thumbWidth)){var al=this._buttonWidth-this._thumbWidth;switch(W[this._cpAlign]){case W.RT:case W.RC:case W.RB:this._$thumbPanel.css("margin-left",al);break;default:this._$thumbPanel.css("margin-right",al)}}var aj=this._screenHeight-(this._$buttonPanel.height()+this._margin);if(this._$thumbPanel.height()>aj){var Y=this._$thumbs.outerHeight(true);this._$list.addClass("inside").height(this._numItems*Y);this._$thumbPanel.css({height:Math.floor(aj/Y)*Y-this._margin,"margin-bottom":this._margin});var ag=this._$thumbPanel.height()-(this._$list.height()-this._margin);this._$thumbPanel.append("<div class='back-scroll'></div><div class='fwd-scroll'></div>");var ad=this._$thumbPanel.find(".back-scroll");var aa=this._$thumbPanel.find(".fwd-scroll");ad.css({height:Y,width:"100%"});aa.css({height:Y,width:"100%",top:"100%","margin-top":-Y});if(!window.Touch){ad.bind("mouseenter",function(){aa.show();var au=-ab._$list.stop(true).position().top*J;ab._$list.stop(true).animate({top:0},au,"linear",function(){ad.hide()})}).bind("mouseleave",{elem:this},this.stopList);aa.bind("mouseenter",function(){ad.show();var au=(-ag+ab._$list.stop(true).position().top)*J;ab._$list.stop(true).animate({top:ag},au,"linear",function(){aa.hide()})}).bind("mouseleave",{elem:this},this.stopList)}else{ad.hide();aa.hide()}this._$rotator.bind(r,function(){if(!ab._$list.is(":animated")){var au=ab._$list.position().top+(ab._currIndex*Y);if(au<0||au>ab._$thumbPanel.height()-ab._$thumbs.outerHeight()){au=-ab._currIndex*Y;if(au<ag){au=ag}ab._$list.stop(true).animate({top:au},Q,function(){if(!window.Touch){D(this).position().top==0?ad.hide():ad.show();D(this).position().top==ag?aa.hide():aa.show()}})}}})}}else{this._$thumbs.css("margin-right",this._margin);this._$list.height(this._$thumbs.outerHeight());this._$thumbPanel.height(this._$list.height());if(l){this._$thumbPanel.width(this._numItems*this._$thumbs.outerWidth(true))}if(("small"==this._dbuttonsType||this._displayPlayBtn)&&this._buttonHeight>this._thumbHeight){var al=this._buttonHeight-this._thumbHeight;switch(W[this._cpAlign]){case W.TL:case W.TC:case W.TR:this._$thumbPanel.css("margin-bottom",al);break;default:this._$thumbPanel.css("margin-top",al)}}var ap=this._screenWidth-(this._$buttonPanel.width()+this._margin);if(this._$thumbPanel.width()>ap){var Y=this._$thumbs.outerWidth(true);this._$list.addClass("inside").width(this._numItems*Y);this._$thumbPanel.css({width:Math.floor(ap/Y)*Y-this._margin,"margin-right":this._margin});var ag=this._$thumbPanel.width()-(this._$list.width()-this._margin);this._$thumbPanel.append("<div class='back-scroll'></div><div class='fwd-scroll'></div>");var ad=this._$thumbPanel.find(".back-scroll");var aa=this._$thumbPanel.find(".fwd-scroll");ad.css({width:Y,height:"100%"});aa.css({width:Y,height:"100%",left:"100%","margin-left":-Y});if(!window.Touch){ad.bind("mouseenter",function(){aa.show();var au=-ab._$list.stop(true).position().left*J;ab._$list.stop(true).animate({left:0},au,"linear",function(){ad.hide()})}).bind("mouseleave",{elem:this},this.stopList);aa.bind("mouseenter",function(){ad.show();var au=(-ag+ab._$list.stop(true).position().left)*J;ab._$list.stop(true).animate({left:ag},au,"linear",function(){aa.hide()})}).bind("mouseleave",{elem:this},this.stopList)}this._$rotator.bind(r,function(){if(!ab._$list.is(":animated")){var au=ab._$list.position().left+(ab._currIndex*Y);if(au<0||au>ab._$thumbPanel.width()-ab._$thumbs.outerWidth()){au=-ab._currIndex*Y;if(au<ag){au=ag}ab._$list.stop(true).animate({left:au},Q,function(){D(this).position().left==0?ad.hide():ad.show();D(this).position().left==ag?aa.hide():aa.show()})}}})}}this.initTooltip()}};L.prototype.initLayerData=function(aa,ad){var ac=this;var Z=aa.find(">div:hidden").not(".tt-text");var Y=Z.sort(function(af,ae){return g(D(af).attr("data-delay"),0)-g(D(ae).attr("data-delay"),0)});Z.remove();aa.append(Y);var X=this._$layers.eq(0);var ab=X.find(">div.inner-text");Y.each(function(ah){var av,aj,al,ak;var am=D(this);var af=k(am.width(),"auto");var au=k(am.height(),"auto");var ag=am.outerWidth()-am.width();var ap=Math.round(ag/2);var at=!isNaN(parseInt(am.css("bottom")));var ar=!isNaN(parseInt(am.css("right")));var ao="",ae="",ai="",aq="";if(at){ae=g(am.css("bottom"),0)}else{ao=g(am.css("top"),0)}if(ar){aq=g(am.css("right"),0)}else{ai=g(am.css("left"),0)}X.css({top:ao,bottom:ae,left:ai,right:aq});ab.css({padding:ap,width:af,height:au}).html(am.html());if("auto"==au){au=ab.height()+1}au+=ag;if("auto"==af){af=ab.width()+1}af+=ag;var an=g(am.css("z-index"),0)+ad;if(an>ac._zIndex){ac._zIndex=an}am.css({width:af,height:au});av=f(am.attr("data-effect"),ac._textEffect);aj=k(am.attr("data-duration"),ac._textDuration);al=f(am.attr("data-easing"),ac._textEasing);ak=g(am.attr("data-delay"),(ah*ac._textDelay));if(T(al,"Elastic")||T(al,"Bounce")){ac._cssTrsnLayer=false}am.data({top:ao,bottom:ae,left:ai,right:aq,padding:ap,zindex:an,usebottom:at,useright:ar,effect:av,duration:aj,easing:al,delay:ak})})};L.prototype.initTooltip=function(){if("text"==this._tipType){var Y="tip-"+D("body").find(".rotator-tooltip").length;D("body").append("<div class='rotator-tooltip' id='"+Y+"'><div class='tt-txt'></div></div>");this._$tooltip=D("body").find("#"+Y);this._$tooltip.find(">.tt-txt").css({width:this._tooltipWidth,height:this._tooltipHeight});this._$thumbs.bind("mouseover",{elem:this},this.showTooltip).bind("mouseout",{elem:this},this.hideTooltip).bind("mousemove",{elem:this},this.moveTooltip);switch(W[this._cpAlign]){case W.TL:case W.TC:case W.TR:this._$tooltip.data("bottom",true).addClass("txt-down");break;default:this._$tooltip.data("bottom",false).addClass("txt-up")}}else{if("image"==this._tipType){var aa=this;var Y="tip-"+D("body").find(".rotator-tooltip").length;D("body").append("<div class='rotator-tooltip' id='"+Y+"'><div class='img-frame'></div></div>");this._$tooltip=D("body").find("#"+Y);var Z=this._$tooltip.find(">div.img-frame");Z.css({width:this._tooltipWidth,height:this._tooltipHeight});this._$thumbs.each(function(ac){var ab=D(this).find(">img.tt-img");if(0<ab.length){ab.attr("id","tt-img-"+ac);Z.append(ab);ab.one("load",function(){aa.maximizeImage(D(this),aa._tooltipWidth,aa._tooltipHeight)});if(ab[0].complete||"complete"==ab[0].readyState){ab.trigger("load")}}});switch(W[this._cpAlign]){case W.TL:case W.TC:case W.TR:this._$thumbs.bind("mouseover",{elem:this},this.showHImgTooltip);this._$tooltip.data("bottom",true).addClass("img-down");break;case W.LT:case W.LC:case W.LB:this._$thumbs.bind("mouseover",{elem:this},this.showVImgTooltip);this._$tooltip.data("right",true).addClass("img-right");break;case W.RT:case W.RC:case W.RB:this._$thumbs.bind("mouseover",{elem:this},this.showVImgTooltip);this._$tooltip.data("right",false).addClass("img-left");break;default:this._$thumbs.bind("mouseover",{elem:this},this.showHImgTooltip);this._$tooltip.data("bottom",false).addClass("img-up")}this._$thumbs.bind("mouseout",{elem:this},this.hideTooltip)}}if(b(6)){try{this._$tooltip.css("background-image","none").children().css("margin",0)}catch(X){}}};L.prototype.showHImgTooltip=function(Z){var Y=Z.data.elem;var X=Y._$tooltip.find("img#tt-img-"+D(this).index());if(X.attr("src")){Y._$tooltip.find("img").css({zIndex:0}).hide();X.css({zIndex:1}).show();var ab=Y._$tooltip.data("bottom")?D(this).outerHeight():-Y._$tooltip.outerHeight();var aa=D(this).offset();Y._$tooltip.css({top:aa.top+ab,left:aa.left+((D(this).outerWidth()-Y._$tooltip.outerWidth())/2)}).stop(true,true).delay(Y._tooltipDelay).fadeIn(300)}};L.prototype.showVImgTooltip=function(aa){var Z=aa.data.elem;var X=Z._$tooltip.find("img#tt-img-"+D(this).index());if(X.attr("src")){Z._$tooltip.find("img").css({zIndex:0}).hide();X.css({zIndex:1}).show();var Y=Z._$tooltip.data("right")?D(this).outerWidth():-Z._$tooltip.outerWidth();var ab=D(this).offset();Z._$tooltip.css({top:ab.top+((D(this).outerHeight()-Z._$tooltip.outerHeight())/2),left:ab.left+Y}).stop(true,true).delay(Z._tooltipDelay).fadeIn(300)}};L.prototype.showTooltip=function(Z){var Y=Z.data.elem;var X=Y._$items[D(this).index()].data("ttText");if("undefined"!=typeof X&&""!=X){Y._$tooltip.find(">div.tt-txt").html(X);var aa=Y._$tooltip.data("bottom")?0:-Y._$tooltip.outerHeight(true);Y._$tooltip.css({top:Z.pageY+aa,left:Z.pageX}).stop(true,true).delay(Y._tooltipDelay).fadeIn(300)}};L.prototype.moveTooltip=function(Y){var X=Y.data.elem;var Z=X._$tooltip.data("bottom")?0:-X._$tooltip.outerHeight(true);X._$tooltip.css({top:Y.pageY+Z,left:Y.pageX})};L.prototype.hideTooltip=function(Z){try{var Y=(typeof Z!="undefined")?Z.data.elem:this;Y._$tooltip.stop(true,true).hide()}catch(X){}};L.prototype.displayCPanel=function(Y){var X=Y.data.elem;var Z={};Z[Y.data.dir]=X._$cpanel.data("pos");Z.opacity=1;X._$cpanel.stop(true).animate(Z,Q)};L.prototype.hideCPanel=function(Y){var X=Y.data.elem;var Z={};Z[Y.data.dir]=X._$cpanel.data("offset");Z.opacity=0;X._$cpanel.stop(true).animate(Z,Q)};L.prototype.showSideButtons=function(Y){var X=Y.data.elem;X._$sPrev.stop(true).animate({left:0},Q);X._$sNext.stop(true).animate({"margin-left":-X._$sNext.width()},Q)};L.prototype.hideSideButtons=function(Y){var X=Y.data.elem;X._$sPrev.stop(true).animate({left:-X._$sPrev.width()},Q);X._$sNext.stop(true).animate({"margin-left":0},Q)};L.prototype.selectItem=function(aa){var Z=aa.data.elem;var X=D(aa.target);if(X[0].nodeName!="LI"){X=X.closest("li")}var Y=X.index();if(Y>-1&&Y!=Z._currIndex){Z._dir=Y<Z._currIndex?U:w;Z.resetTimer();Z._prevIndex=Z._currIndex;Z._currIndex=Y;Z.loadContent(Z._currIndex);Z.hideTooltip()}return false};L.prototype.prevImg=function(Y){var X=(typeof Y!="undefined")?Y.data.elem:this;X._dir=U;X.resetTimer();X._prevIndex=X._currIndex;X._currIndex=(X._currIndex>0)?(X._currIndex-1):(X._numItems-1);X.loadContent(X._currIndex);return false};L.prototype.nextImg=function(Y){var X=(typeof Y!="undefined")?Y.data.elem:this;X._dir=w;X.resetTimer();X._prevIndex=X._currIndex;X._currIndex=(X._currIndex<X._numItems-1)?(X._currIndex+1):0;X.loadContent(X._currIndex);return false};L.prototype.togglePlay=function(Y){var X=Y.data.elem;X._rotate=!X._rotate;X._$playBtn.toggleClass("pause",X._rotate);X._rotate?X.startTimer():X.pauseTimer();return false};L.prototype.play=function(Y){var X=Y.data.elem;X._rotate=true;X._$playBtn.addClass("pause");X.startTimer()};L.prototype.pause=function(Y){var X=Y.data.elem;X._rotate=false;X._$playBtn.removeClass("pause");X.pauseTimer()};L.prototype.pauseLast=function(X){if(X==this._numItems-1){this._rotate=false;this._$playBtn.removeClass("pause")}};L.prototype.updateLayers=function(aa){var Z=aa.data.elem;Z._$layers.stop(true,true);if(null===Z._layerId){var Y=0;var X=Z._$items[Z._currIndex].find(">div:hidden").not(".tt-text");if(Y<X.length){Z._layerDelay=X.eq(Y).data("delay");Z._layerId=setTimeout(function(){Z.updateLayer(Y,X)},Z._layerDelay)}}};L.prototype.updateLayer=function(Z,ae){var ab=this._$layers.eq(Z);var ai=ae.eq(Z);var X=ai.width();var ad=ai.height();var ak=ai.data("usebottom");var al=ai.data("useright");var af,ah,ag,aj;af=ai.data("top");ah=ai.data("bottom");ag=ai.data("left");aj=ai.data("right");ab.css("z-index",ai.data("zindex"));ab.find(">div.inner-text").css({color:ai.css("color"),padding:ai.data("padding")});ab.find(">div.inner-bg").css({height:ad,backgroundColor:ai.css("background-color"),opacity:ai.css("opacity"),backgroundImage:ai.css("background-image"),backgroundRepeat:ai.css("background-repeat"),backgroundPosition:ai.css("background-position")});switch(n[ai.data("effect")]){case n.fade:this.fadeInLayer(ai,ab,{top:af,bottom:ah,left:ag,right:aj,width:X,height:ad});break;case n.expandDown:if(ak){af=(this._screenHeight-ad)-ah}this.expandLayer(ai,ab,{width:X,height:0,top:af,left:ag,right:aj},{height:ad});break;case n.expandUp:if(!ak){ah=this._screenHeight-(af+ad)}this.expandLayer(ai,ab,{width:X,height:0,bottom:ah,left:ag,right:aj},{height:ad});break;case n.expandRight:if(al){ag=(this._screenWidth-X)-aj}this.expandLayer(ai,ab,{width:0,height:ad,top:af,bottom:ah,left:ag},{width:X});break;case n.expandLeft:if(!al){aj=this._screenWidth-(ag+X)}this.expandLayer(ai,ab,{width:0,height:ad,top:af,bottom:ah,right:aj},{width:X});break;case n.moveDown:if(ak){this.moveLayer(ai,ab,{width:X,height:ad,bottom:this._screenHeight,left:ag,right:aj},{bottom:ah})}else{this.moveLayer(ai,ab,{width:X,height:ad,top:-ad,left:ag,right:aj},{top:af})}break;case n.moveUp:if(ak){this.moveLayer(ai,ab,{width:X,height:ad,bottom:-ad,left:ag,right:aj},{bottom:ah})}else{this.moveLayer(ai,ab,{width:X,height:ad,top:this._screenHeight,left:ag,right:aj},{top:af})}break;case n.moveRight:if(al){this.moveLayer(ai,ab,{width:X,height:ad,top:af,bottom:ah,right:this._screenWidth},{right:aj})}else{this.moveLayer(ai,ab,{width:X,height:ad,top:af,bottom:ah,left:-X},{left:ag})}break;case n.moveLeft:if(al){this.moveLayer(ai,ab,{width:X,height:ad,top:af,bottom:ah,right:-X},{right:aj})}else{this.moveLayer(ai,ab,{width:X,height:ad,top:af,bottom:ah,left:this._screenWidth},{left:ag})}break;default:this.showLayer(ai,ab,{top:af,bottom:ah,left:ag,right:aj,width:X,height:ad})}if(++Z<ae.length){var ac=this;var ai=ae.eq(Z);var Y=ai.data("delay");var aa=Math.abs(Y-this._layerDelay);this._layerDelay=Y;this._layerId=setTimeout(function(){ac.updateLayer(Z,ae)},aa)}};L.prototype.updateCssLayers=function(Z){var Y=Z.data.elem;Y._$layers.cssTransitionStop(true);var X=Y._$items[Y._currIndex].find(">div:hidden").not(".tt-text");X.each(function(aa){Y.updateCssLayer(D(this),Y._$layers.eq(aa))})};L.prototype.updateCssLayer=function(Z,Y){var ab,ae,ad,X,ac,aa;ab=Z.width();ae=Z.height();ad=Z.data("top");X=Z.data("bottom");ac=Z.data("left");aa=Z.data("right");Y.css("z-index",Z.data("zindex"));Y.find(">div.inner-text").css({color:Z.css("color"),padding:Z.data("padding")});Y.find(">div.inner-bg").css({height:ae,backgroundColor:Z.css("background-color"),opacity:Z.css("opacity"),backgroundImage:Z.css("background-image"),backgroundRepeat:Z.css("background-repeat"),backgroundPosition:Z.css("background-position")});switch(n[Z.data("effect")]){case n.fade:this.fadeInCssLayer(Z,Y,{top:ad,bottom:X,left:ac,right:aa,width:ab,height:ae,opacity:0});break;case n.expandDown:if(Z.data("usebottom")){ad=(this._screenHeight-ae)-X}this.expandCssLayer(Z,Y,{width:ab,height:0,top:ad,left:ac,right:aa},{height:ae});break;case n.expandUp:if(!Z.data("usebottom")){X=this._screenHeight-(ad+ae)}this.expandCssLayer(Z,Y,{width:ab,height:0,bottom:X,left:ac,right:aa},{height:ae});break;case n.expandRight:if(Z.data("useright")){ac=(this._screenWidth-ab)-aa}this.expandCssLayer(Z,Y,{width:0,height:ae,top:ad,bottom:X,left:ac},{width:ab});break;case n.expandLeft:if(!Z.data("useright")){aa=this._screenWidth-(ac+ab)}this.expandCssLayer(Z,Y,{width:0,height:ae,top:ad,bottom:X,right:aa},{width:ab});break;case n.moveDown:if(Z.data("usebottom")){this.moveCssLayer(Z,Y,{width:ab,height:ae,bottom:this._screenHeight,left:ac,right:aa},{bottom:X})}else{this.moveCssLayer(Z,Y,{width:ab,height:ae,top:-ae,left:ac,right:aa},{top:ad})}break;case n.moveUp:if(Z.data("usebottom")){this.moveCssLayer(Z,Y,{width:ab,height:ae,bottom:-ae,left:ac,right:aa},{bottom:X})}else{this.moveCssLayer(Z,Y,{width:ab,height:ae,top:this._screenHeight,left:ac,right:aa},{top:ad})}break;case n.moveRight:if(Z.data("useright")){this.moveCssLayer(Z,Y,{width:ab,height:ae,top:ad,bottom:X,right:this._screenWidth},{right:aa})}else{this.moveCssLayer(Z,Y,{width:ab,height:ae,top:ad,bottom:X,left:-ab},{left:ac})}break;case n.moveLeft:if(Z.data("useright")){this.moveCssLayer(Z,Y,{width:ab,height:ae,top:ad,bottom:X,right:-ab},{right:aa})}else{this.moveCssLayer(Z,Y,{width:ab,height:ae,top:ad,bottom:X,left:this._screenWidth},{left:ac})}break;default:this.showCssLayer(Z,Y,{top:ad,bottom:X,left:ac,right:aa,width:ab,height:ae,opacity:1})}};L.prototype.resetLayers=function(Y){var X=Y.data.elem;clearTimeout(X._syncId);clearTimeout(X._layerId);X._layerId=null;X._syncId=null;X._$layers.stop(true,true);X._$layers.each(function(aa){var Z=D(this);if(Z.is(":visible")){Z.fadeOut(Q)}})};L.prototype.resetCssLayers=function(Y){var X=Y.data.elem;clearTimeout(X._syncId);X._syncId=null;X._$layers.cssTransitionStop(true);X._$layers.each(function(aa){var Z=D(this);if(Z.is(":visible")){Z.cssTransition({opacity:0},Q,"",0,function(){D(this).css({display:"none"})})}})};L.prototype.expandLayer=function(Y,X,aa,Z){X.find(">div.inner-text").html("");X.stop(true,true).css({top:"",bottom:"",left:"",right:""}).css(aa).show().animate(Z,Y.data("duration"),Y.data("easing"),function(){D(this).find(">div.inner-text").html(Y.html())})};L.prototype.moveLayer=function(Y,X,aa,Z){X.find(">div.inner-text").html(Y.html());X.stop(true,true).css({top:"",bottom:"",left:"",right:""}).css(aa).show().animate(Z,Y.data("duration"),Y.data("easing"))};L.prototype.fadeInLayer=function(Y,X,Z){X.find(">div.inner-text").html(Y.html());X.stop(true,true).css(Z).fadeIn(Y.data("duration"),Y.data("easing"),function(){if(A){D(this).find(">div.inner-text").get(0).style.removeAttribute("filter")}})};L.prototype.showLayer=function(Y,X,Z){X.find(">div.inner-text").html(Y.html());X.stop(true,true).css(Z).show()};L.prototype.expandCssLayer=function(Y,X,aa,Z){X.find(">div.inner-text").html("");X.css({top:"",bottom:"",left:"",right:"",opacity:1}).css(aa).show();X.cssTransition(Z,Y.data("duration"),Y.data("easing"),Y.data("delay"),function(){D(this).find(">div.inner-text").html(Y.html())})};L.prototype.moveCssLayer=function(Y,X,aa,Z){X.find(">div.inner-text").html(Y.html());X.css({top:"",bottom:"",left:"",right:"",opacity:1}).css(aa).show();X.cssTransition(Z,Y.data("duration"),Y.data("easing"),Y.data("delay"))};L.prototype.fadeInCssLayer=function(Y,X,Z){X.find(">div.inner-text").html(Y.html());X.css(Z).show();X.cssTransition({opacity:1},Y.data("duration"),Y.data("easing"),Y.data("delay"))};L.prototype.showCssLayer=function(Y,X,Z){X.find(">div.inner-text").html(Y.html());X.css(Z).show()};L.prototype.displayLayers=function(Y){var X=Y.data.elem;X._$rotator.unbind(E).bind(E,{elem:X},X.updateLayers).trigger(E)};L.prototype.hideLayers=function(Y){var X=Y.data.elem;X._$rotator.unbind(E).trigger(e)};L.prototype.displayCssLayers=function(Y){var X=Y.data.elem;X._$rotator.unbind(E).bind(E,{elem:X},X.updateCssLayers).trigger(E)};L.prototype.loadContent=function(aa){var Y=this._$items[aa];this._$rotator.trigger(e).trigger(r);if(this._playOnce){this.pauseLast(aa)}this._$thumbs.filter(".curr-thumb").removeClass("curr-thumb");this._$thumbs.eq(aa).addClass("curr-thumb");this._delay=Y.data("delay");if(!this._textSync){this._$rotator.trigger(E)}if(this._$mainLink){var X=Y.data("href");if(X){var ac=Y.data("target");this._$mainLink.unbind("click",I).css("cursor","pointer").attr({href:X,target:ac})}else{this._$mainLink.click(I).css("cursor","default")}}if(Y.data("complete")){this._$preloader.hide();this.displayContent(Y.data("img"))}else{var ab=this;var Z=Y.data("img");Z.one("load",function(){ab._$preloader.hide();if(!Y.data("complete")){ab.storeImg(Y,D(this))}ab.displayContent(D(this))}).error(function(){});this._$preloader.show();Z.attr("src",Y.data("imgurl"));if(Z[0].complete||Z[0].readyState=="complete"){Z.trigger("load")}}};L.prototype.displayContent=function(Y){if(this._vStripeEffect){this._vStripes.clear()}if(this._hStripeEffect){this._hStripes.clear()}if(this._blockEffect){this._blocks.clear()}if(this._vStripeEffect||this._hStripeEffect||this._blockEffect){this.setPrevious()}var X=this._$items[this._currIndex];var Z=X.data("effect");var aa=X.data("duration");var ab=X.data("easing");if(Z==u.none||(typeof Z=="undefined")){this.showContent(Y);return}else{if(Z==u.fade){this.fadeInContent(Y,aa,ab);return}else{if(Z==u.crossFade){this.xfadeContent(Y,aa,ab);return}else{if(Z==u.horizontalSlide){this.slideContent(Y,"left",this._screenWidth,aa,ab);return}else{if(Z==u.verticalSlide){this.slideContent(Y,"top",this._screenHeight,aa,ab);return}}}}}if(Z==u.random){Z=Math.floor(Math.random()*(o-6))}if(Z<=u.spiralOut){this._blocks.displayContent(Y,Z,aa,ab)}else{if(Z<=u.verticalSliceRandomFade){this._vStripes.displayContent(Y,Z,aa,ab)}else{this._hStripes.displayContent(Y,Z,aa,ab)}}};L.prototype.setPrevious=function(){if(this._prevIndex>=0){var Y=this._$mainLink.find("img#curr-img").data("src");var Z=this._$items[this._prevIndex].data("imgurl");if(Y!=Z){this._$mainLink.find("img.main-img").attr("id","").hide();var X=this._$mainLink.find("img.main-img").filter(function(){return D(this).data("src")==Z});X.eq(0).show()}}};L.prototype.showContent=function(X){if(this._textSync){this._$rotator.trigger(E)}this._$mainLink.find("img.main-img").attr("id","").hide();X.attr("id","curr-img").show();this.startTimer()};L.prototype.fadeInContent=function(X,Z,aa){var Y=this;this._$mainLink.find("img#curr-img").stop(true,true);this._$mainLink.find("img.main-img").attr("id","").css("z-index",0);X.attr("id","curr-img").stop(true,true).css({opacity:0,"z-index":1}).show().animate({opacity:1},Z,aa,function(){Y._$mainLink.find("img.main-img:not('#curr-img')").hide();Y.startTimer()});if(this._textSync){this._syncId=setTimeout(function(){Y._$rotator.trigger(E)},Z)}};L.prototype.xfadeContent=function(Y,aa,ab){var Z=this;var X=this._$mainLink.find("img#curr-img");this._$mainLink.find("img.main-img").attr("id","").css("z-index",0);X.stop(true,true).animate({opacity:0},aa,ab);Y.attr("id","curr-img").stop(true,true).css({opacity:0,"z-index":1}).show().animate({opacity:1},aa,ab,function(){Z._$mainLink.find("img.main-img:not('#curr-img')").hide();Z.startTimer()});if(this._textSync){this._syncId=setTimeout(function(){Z._$rotator.trigger(E)},aa)}};L.prototype.slideContent=function(ag,ae,ac,aa,ad){this._$strip.stop(true,true);var Z=D("#curr-img",this._$strip);if(Z.length>0){this._$strip.find(".main-img").attr("id","").closest(".content-box").css({top:0,left:0});ag.attr("id","curr-img").closest(".content-box").css("visibility","visible");var X,af;if(this._dir==U){this._$strip.css(ae,-ac);X=Z;af=0}else{X=ag;af=-ac}X.closest(".content-box").css(ae,ac);var Y=(ae=="top")?{top:af}:{left:af};var ab=this;this._$strip.stop(true,true).animate(Y,aa,ad,function(){ab._$strip.find(".main-img:not('#curr-img')").closest(".content-box").css("visibility","hidden");ab._$strip.find("#curr-img").closest(".content-box").css("visibility","visible");X.closest(".content-box").css({top:0,left:0});ab._$strip.css({top:0,left:0});ab.startTimer()});if(this._textSync){this._syncId=setTimeout(function(){ab._$rotator.trigger(E)},aa)}}else{this._$strip.css({top:0,left:0});this._$strip.find(".main-img").closest(".content-box").css({visibility:"hidden",top:0,left:0});ag.attr("id","curr-img").closest(".content-box").css("visibility","visible");if(this._textSync){this._$rotator.trigger(E)}this.startTimer()}};L.prototype.loadImg=function(Y){try{var X=this._$items[Y];var aa=X.data("img");var ab=this;aa.one("load",function(){if(!X.data("complete")){ab.storeImg(X,D(this))}Y++;if(Y<ab._numItems){ab.loadImg(Y)}}).error(function(){Y++;if(Y<ab._numItems){ab.loadImg(Y)}});aa.attr("src",X.data("imgurl"));if(aa[0].complete||aa[0].readyState=="complete"){aa.trigger("load")}}catch(Z){}};L.prototype.loadAll=function(){var aa=this;for(var Z=0;Z<this._$items.length;Z++){var X=this._$items[Z];var Y=X.data("img");Y.one("load",{elem:X},function(ab){var ac=ab.data.elem;if(!ac.data("complete")){aa.storeImg(ac,D(this))}});Y.attr("src",X.data("imgurl"));if(Y[0].complete||Y[0].readyState=="complete"){Y.trigger("load")}}};L.prototype.storeImg=function(Y,aa){if(this._slideTransition){var X=Y.find(">a").eq(1);if(0<X.length){aa.wrap(X)}}if(this._autoCenter){this.centerImg(aa)}var ab=aa.attr("src");if(typeof(ab)!="undefined"){var Z=ab.indexOf("?");if(Z>=0){ab=ab.substring(0,Z)}aa.data("src",ab)}Y.data("complete",true)};L.prototype.centerImg=function(Y){var Z=Y.width();var X=Y.height();if(Z>0&&X>0){Y.css({top:(this._screenHeight-X)/2,left:(this._screenWidth-Z)/2})}};L.prototype.startTimer=function(){if(this._rotate&&this._timerId===null){var X=this;var Y=Math.round(this._$timer.data("pct")*this._delay);this._$timer.stop(true).animate({width:(this._screenWidth+1)},Y,"linear");this._timerId=setTimeout(function(Z){X._dir=w;X.resetTimer();X._prevIndex=X._currIndex;X._currIndex=(X._currIndex<X._numItems-1)?(X._currIndex+1):0;X.loadContent(X._currIndex)},Y)}};L.prototype.resetTimer=function(){clearTimeout(this._timerId);this._timerId=null;this._$timer.stop(true).width(0).data("pct",1)};L.prototype.pauseTimer=function(){clearTimeout(this._timerId);this._timerId=null;this._$timer.stop(true);var X=1-(this._$timer.width()/(this._screenWidth+1));this._$timer.data("pct",X)};L.prototype.stopList=function(X){X.data.elem._$list.stop(true)};L.prototype.shuffleItems=function(){var Z=this._$thumbs.toArray();for(var aa=0;aa<this._numItems;aa++){var X=Math.floor(Math.random()*this._numItems);var Y=Z[aa];Z[aa]=Z[X];Z[X]=Y}for(var aa=0;aa<this._numItems;aa++){this._$list.append(D(Z[aa]))}this._$thumbs=this._$list.find(">li")};L.prototype.checkEffect=function(X){if(X==u.random){this._blockEffect=this._hStripeEffect=this._vStripeEffect=true}else{if(X<=u.spiralOut){this._blockEffect=true}else{if(X<=u.verticalSliceRandomFade){this._vStripeEffect=true}else{if(X<=u.horizontalSliceRandomFade){this._hStripeEffect=true}}}}};L.prototype.maximizeImage=function(Z,ab,ae){if("auto"===ab&&"auto"===ae){return}var ad,aa=Z.width(),X=Z.height();if(0==aa||0==X){return}if("auto"===ae){ad=ab/aa;aa=ab;X*=ad;ae=X}else{if("auto"===ab){ad=ae/X;X=ae;aa*=ad;ab=aa}else{var Y=ab/aa;var ac=ae/X;ad=(ac>Y)?ac:Y;aa*=ad;X*=ad}}Z.css({width:aa,height:X,left:Math.round((ab-aa)/2),top:Math.round((ae-X)/2)})};L.prototype.getMaxLayers=function(){var X=this._$thumbs.map(function(){return D(this).find(">div:hidden").not(".tt-text").length}).get();X.sort(function(Z,Y){return Y-Z});return X[0]};L.prototype.mouseScrollContent=function(Y){var X=Y.data.elem;if(!X._$strip.is(":animated")){var Z=(typeof Y.originalEvent.wheelDelta=="undefined")?-Y.originalEvent.detail:Y.originalEvent.wheelDelta;Z>0?X.prevImg():X.nextImg()}return false};function I(){return false}function k(X,Y){X=parseInt(X);if(!isNaN(X)&&X>0){return X}return Y}function g(X,Y){X=parseInt(X);if(!isNaN(X)&&X>=0){return X}return Y}function t(X){if(typeof X=="string"){X=X.toLowerCase();if(X=="true"){return true}else{return false}}return false}function S(Z,Y,aa){for(var X=0;X<Y.length;X++){if(Y[X]==Z){return Z}}return aa}function f(X,Y){if("undefined"!=(typeof X)){return X}return Y}function T(Y,X){return Y.indexOf(X,Y.length-X.length)!==-1}function H(ad,aa){var ac=["Moz","Webkit"];aa=aa||document.documentElement;var ab=aa.style,X;if(typeof ab[ad]=="string"){return ad}ad=ad.charAt(0).toUpperCase()+ad.slice(1);for(var Z=0,Y=ac.length;Z<Y;Z++){X=ac[Z]+ad;if(typeof ab[X]=="string"){return X}}return false}function b(X){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var Y=new Number(RegExp.$1);if(Y<=X){return true}}return false}function s(X){var ab=X.length;for(var aa=0;aa<ab;aa++){var Y=Math.floor(Math.random()*ab);var Z=X[aa];X[aa]=X[Y];X[Y]=Z}}D.fn.cssTransition=function(Z,aa,ac,Y,ab){var X=D.isFunction(ab);return this.each(function(){if(X){D(this).one(R[y],ab)}D(this).css(M[y],"all "+aa+"ms "+O[ac]+" "+Y+"ms").css(Z)})};D.fn.cssTransitionStop=function(X){return this.each(function(){if(X){D(this).trigger(R[y])}D(this).css(M[y],"none")})};D.fn.wtRotator=function(X){D(this).bannerRotator(X)};D.fn.bannerRotator=function(Z){var Y={width:"auto",height:"auto",thumb_width:24,thumb_height:24,button_width:24,button_height:24,margin:4,tooltip_width:"auto",tooltip_height:"auto",background_image:"",background_repeat:"repeat",background_position:"center center",auto_start:true,delay:d,play_once:false,pause_onmouseover:false,effect:"fade",duration:B,easing:"",block_size:G,vslice_size:F,hslice_size:F,block_delay:25,vslice_delay:75,hslice_delay:75,cpanel_align:"BR",outside_cpanel:false,cpanel_onmouseover:false,thumb_type:"number",select_onmouseover:false,tooltip_type:"text",tooltip_delay:0,dbuttons_type:"small",dbuttons_onmouseover:false,display_playbutton:true,display_timer:true,timer_align:"top",text_effect:"fade",text_duration:500,text_easing:"",text_delay:0,text_onmouseover:false,text_sync:true,center_image:true,preload:true,shuffle:false,mousewheel:true,swipe:true,css_transition:true};var X=D.extend({},Y,Z);return this.each(function(){P=new L(D(this),X)})}})(jQuery);