').appendTo(i)),s.onload=function(){function d(){t=i.outerWidth(),n=i.outerHeight(),r=(s.width-t)/t,u=(s.height-n)/n}function v(e){a=e.pageX-p.left,h=e.pageY-p.top,a>t?a=t:a<0&&(a=0),h>n?h=n:h<0&&(h=0),s.style.left=a*-r+"px",s.style.top=h*-u+"px",e.preventDefault()}function m(t){p=i.offset(),d(),v(t),o.stop().fadeTo(e.support.opacity?f.duration:0,1)}function g(){o.stop().fadeTo(f.duration,0)}var t,n,r,u,a,h,p=i.offset();o.addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:s.width,height:s.height,border:"none",maxWidth:"none"}).appendTo(i),f.on==="grab"?o.mousedown(function(t){p=i.offset(),e(document).one("mouseup",function(){g(),e(document).unbind(l,v)}),m(t),e(document)[l](v),t.preventDefault()}):f.on==="click"?o.click(function(t){if(c)return;return c=!0,m(t),e(document)[l](v),e(document).one("click",function(){g(),c=!1,e(document).unbind(l,v)}),!1}):(d(),o.hover(m,g)[l](v)),e.isFunction(f.callback)&&f.callback.call(s)},s.src=f.url})},e.fn.zoom.defaults=t})(jQuery);(function( $ ){
var $scrollTo = $.scrollTo = function( target, duration, settings ){
$(window).scrollTo( target, duration, settings );
};
$scrollTo.defaults = {
axis:'xy',
duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1
};
$scrollTo.window = function( scope ){
return $(window)._scrollable();
};
$.fn._scrollable = function(){
return this.map(function(){
var elem = this,
isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1;
if( !isWin )
return elem;
var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem;
return $.browser.safari || doc.compatMode == 'BackCompat' ?
doc.body :
doc.documentElement;
});
};
$.fn.scrollTo = function( target, duration, settings ){
if( typeof duration == 'object' ){
settings = duration;
duration = 0;
}
if( typeof settings == 'function' )
settings = { onAfter:settings };
if( target == 'max' )
target = 9e9;
settings = $.extend( {}, $scrollTo.defaults, settings );
duration = duration || settings.speed || settings.duration;
settings.queue = settings.queue && settings.axis.length > 1;
if( settings.queue )
duration /= 2;
settings.offset = both( settings.offset );
settings.over = both( settings.over );
return this._scrollable().each(function(){
var elem = this,
$elem = $(elem),
targ = target, toff, attr = {},
win = $elem.is('html,body');
switch( typeof targ ){
case 'number':
case 'string':
if( /^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ) ){
targ = both( targ );
break;
}
targ = $(targ,this);
case 'object':
if( targ.is || targ.style )
toff = (targ = $(targ)).offset();
}
$.each( settings.axis.split(''), function( i, axis ){
var Pos = axis == 'x' ? 'Left' : 'Top',
pos = Pos.toLowerCase(),
key = 'scroll' + Pos,
old = elem[key],
max = $scrollTo.max(elem, axis);
if( toff ){
attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );
if( settings.margin ){
attr[key] -= parseInt(targ.css('margin'+Pos)) || 0;
attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0;
}
attr[key] += settings.offset[pos] || 0;
if( settings.over[pos] )
attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos];
}else{
var val = targ[pos];
attr[key] = val.slice && val.slice(-1) == '%' ?
parseFloat(val) / 100 * max
: val;
}
if( /^\d+$/.test(attr[key]) )
attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max );
if( !i && settings.queue ){
if( old != attr[key] )
animate( settings.onAfterFirst );
delete attr[key];
}
});
animate( settings.onAfter );
function animate( callback ){
$elem.animate( attr, duration, settings.easing, callback && function(){
callback.call(this, target, settings);
});
};
}).end();
};
$scrollTo.max = function( elem, axis ){
var Dim = axis == 'x' ? 'Width' : 'Height',
scroll = 'scroll'+Dim;
if( !$(elem).is('html,body') )
return elem[scroll] - $(elem)[Dim.toLowerCase()]();
var size = 'client' + Dim,
html = elem.ownerDocument.documentElement,
body = elem.ownerDocument.body;
return Math.max( html[scroll], body[scroll] )
- Math.min( html[size] , body[size] );
};
function both( val ){
return typeof val == 'object' ? val : { top:val, left:val };
};
})( jQuery );/*! http://responsiveslides.com v1.54 by @viljamis */
(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on",
w=d+"_s",k=c("
"),x={"float":"left",position:"relative",opacity:1,zIndex:2},y={"float":"none",position:"absolute",opacity:0,zIndex:1},F=function(){var b=(document.body||document.documentElement).style,a="transition";if("string"===typeof b[a])return!0;s=["Moz","Webkit","Khtml","O","ms"];var a=a.charAt(0).toUpperCase()+a.substr(1),c;for(c=0;c
"+a+""});k.append(A);l.navContainer?c(a.navContainer).append(k):f.after(k)}a.manualControls&&(k=c(a.manualControls),k.addClass(g+"_tabs "+d+"_tabs"));(a.pager||a.manualControls)&&k.find("li").each(function(a){c(this).addClass(w+(a+1))});if(a.pager||a.manualControls)q=
k.find("a"),r=function(a){q.closest("li").removeClass(v).eq(a).addClass(v)};a.auto&&(t=function(){p=setInterval(function(){e.stop(!0,!0);var b=n+1"+a.prevText+""+a.nextText+"";l.navContainer?c(a.navContainer).append(g):f.after(g);var d=c("."+d+"_nav"),G=d.filter(".prev");d.bind("click",function(b){b.preventDefault();b=c("."+j);if(!b.queue("fx").length){var d=e.index(b);b=d-1;d=d+1u&&f.css("width",u)};H();c(I).bind("resize",function(){H()})}})}})(jQuery,this,0);(function(B){var X={topLeft:["top","left"],top:["top","center"],topRight:["top","right"],bottomLeft:["bottom","left"],bottom:["bottom","center"],bottomRight:["bottom","right"],leftTop:["left","top"],left:["left","center"],leftBottom:["left","bottom"],rightTop:["right","top"],right:["right","center"],rightBottom:["right","bottom"]};var r={fade:["vCover","fade"],zoomIn:["vCover","zoom"],zoomOut:["vCover","zoom"],coverDown:["vCover","sliceDown"],coverUp:["vCover","sliceUp"],coverRight:["hCover","sliceRight"],coverLeft:["hCover","sliceLeft"],blockExpandDown:["blocks","expand"],blockExpandUp:["blocks","expand"],blockExpandRight:["blocks","expand"],blockExpandLeft:["blocks","expand"],diagonalFade:["blocks","diagonalFade"],reverseDiagonalFade:["blocks","diagonalFade"],diagonalExpand:["blocks","diagonalExpand"],reverseDiagonalExpand:["blocks","diagonalExpand"],diagonalShift:["blocks","diagonalShift"],reverseDiagonalShift:["blocks","diagonalShift"],blockRandomFade:["blocks","randomEffect"],blockRandomExpand:["blocks","randomEffect"],blockRandomDrop:["blocks","randomEffect"],zigZagDown:["blocks","zigZag"],zigZagUp:["blocks","zigZag"],zigZagRight:["blocks","zigZag"],zigZagLeft:["blocks","zigZag"],spiralIn:["blocks","spiral"],spiralOut:["blocks","spiral"],sliceDownRight:["vSlices","sliceDown"],sliceDownLeft:["vSlices","sliceDown"],sliceDownRandom:["vSlices","sliceDown"],sliceUpRight:["vSlices","sliceUp"],sliceUpLeft:["vSlices","sliceUp"],sliceUpRandom:["vSlices","sliceUp"],sliceFadeRight:["vSlices","fade"],sliceFadeLeft:["vSlices","fade"],verticalRandomFade:["vSlices","fade"],sliceAltRight:["vSlices","sliceAlt"],sliceAltLeft:["vSlices","sliceAlt"],blindsRight:["vSlices","blinds"],blindsLeft:["vSlices","blinds"],verticalRandomBlinds:["vSlices","blinds"],sliceMoveRight:["vSlices","move"],sliceMoveLeft:["vSlices","move"],sliceRightDown:["hSlices","sliceRight"],sliceRightUp:["hSlices","sliceRight"],sliceRightRandom:["hSlices","sliceRight"],sliceLeftDown:["hSlices","sliceLeft"],sliceLeftUp:["hSlices","sliceLeft"],sliceLeftRandom:["hSlices","sliceLeft"],sliceFadeDown:["hSlices","fade"],sliceFadeUp:["hSlices","fade"],horizontalRandomFade:["hSlices","fade"],sliceAltDown:["hSlices","sliceAlt"],sliceAltUp:["hSlices","sliceAlt"],blindsDown:["hSlices","blinds"],blindsUp:["hSlices","blinds"],horizontalRandomBlinds:["hSlices","blinds"],sliceMoveDown:["hSlices","move"],sliceMoveUp:["hSlices","move"],horizontalSlide:["hSlide","slide"],verticalSlide:["vSlide","slide"]};var V="ontouchstart" in window;var s=a();var t=a(6);var f=q(2.9);var v=J();var Q=500;var h=50;var E="updateThumbnails";var b="resizeControlPanel";var d="updateSize";var x="rotator";var e="rotatorInit";var k="rotatorSlideChange";var U="rotatorSlideComplete";var L="rotatorFirst";var z="rotatorLast";var P="rotatorPlay";var w="rotatorPause";var R="rotatorPrevious";var o="rotatorNext";var O={linear:"linear","":"ease",swing:"ease",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInCubic:"cubic-bezier(.55,.055,.675,.19)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInBack:"cubic-bezier(.60,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175,.885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};m("transform");m("transition");m("backgroundSize");m("borderRadius");var g;var S;switch(B.support.transition){case"WebkitTransition":g="-webkit-transition";S="webkitTransitionEnd";break;case"MozTransition":g="-moz-transition";S="transitionend";break;case"OTransition":g="-o-transition";S="oTransitionEnd";break;default:g="transition";S="transitionend";break}function y(Z,ab){this._$timer=B("").addClass("br-bar-timer");var aa=H(X[ab],X.top);this._$timer.addClass("bottom"===aa[0]?"br-bottom":"br-top");Z.append(this._$timer)}y.prototype={start:function(Z){this._$timer.animate({width:"101%"},{duration:Z,easing:"linear",queue:false})},stop:function(){this._$timer.stop().width(0)},pause:function(){this._$timer.stop()}};function Y(Z,ab){this._$timer=B('');var aa=H(X[ab],X.topRight);this._$timer.css(aa[0],0).css(aa[1],0).addClass("br-opacity-transition");this._$left=this._$timer.find(">.br-lside .br-rotate");this._$right=this._$timer.find(">.br-rside .br-rotate");this._elapsed=this._delay=0;this._startTime;Z.append(this._$timer)}Y.prototype={start:function(Z){if(0===this._delay){this._delay=Z;this._$timer.addClass("br-opacity");this._$left.add(this._$right).stopTransition(true).css({transform:"rotateZ(0deg)"})}var aa=this._delay/2;this._startTime=(new Date()).getTime();this._$right.transition({transform:"rotateZ(180deg)"},Math.max(aa-this._elapsed,0),"linear",B.proxy(function(){var ab=Math.max(aa-Math.max(this._elapsed-aa,0),0);this._$left.transition({transform:"rotateZ(180deg)"},ab,"linear")},this))},stop:function(){this._elapsed=this._delay=0;this._$left.add(this._$right).stopTransition(true).css({transform:"rotateZ(180deg)"});this._$timer.removeClass("br-opacity")},pause:function(){this._$left.add(this._$right).stopTransition(true);this._elapsed+=(new Date()).getTime()-this._startTime;var aa=this._elapsed/this._delay,Z=aa*360;if(aa<=0.5){this._$right.css({transform:"rotateZ("+Z+"deg)"})}else{this._$left.css({transform:"rotateZ("+(Z-180)+"deg)"})}}};function n(aa,Z){this._parent=aa;this._intervalId=null;this._delay=Z}n.prototype={create:function(Z){var aa=this._total,ab="",ac=this._parent._$screen.find(">.br-effects");while(aa--){ab+=''}ac.append(ab);$el=ac.children("."+Z).slice(-this._total);$el.css({backgroundColor:this._parent._$screen.css("backgroundColor")});if(f){$el.css("backface-visibility","visible")}return $el},clear:function(){clearInterval(this._intervalId);this._$el.stopTransition(true,false).css({visibility:"hidden"});this._parent._inProgress=false},resize:function(Z){this.clear();this._width=Math.ceil(this._$el.data("width")*Z);this._height=Math.ceil(this._$el.data("height")*Z)},setImage:function(Z,aa){Z.find(">img").remove();Z.append(B('').css({top:aa.css("top"),left:aa.css("left"),width:aa.width(),height:aa.height()}))},setBgImage:function(Z,aa){Z.css({backgroundImage:"url("+aa.attr("src")+")",backgroundSize:aa.css("width")+" "+aa.css("height"),backgroundPosition:aa.css("left")+" "+aa.css("top")})},animate:function(ad,aa,ac,ae){var Z=0,ab=this._total-1;this._intervalId=setInterval(B.proxy(function(){if(Z!==ab){B(ad[Z]).transition(aa,ac,ae)}else{B(ad[Z]).transition(aa,ac,ae,B.proxy(function(){this._parent.displayCurrent();this._$el.css({visibility:"hidden"})},this))}if(++Z==this._total){clearInterval(this._intervalId)}},this),this._delay)}};N.prototype=new n();N.prototype.constructor=N;function N(ab,Z){n.call(this,ab,0);this._cssTransform=this._parent._cssTransform;this._orientation=Z;this._total=1;var aa;if("vertical"===this._orientation){this._position="top";aa="br-vslide"}else{this._position="left";aa="br-hslide"}this._$el=this.create(aa).append("");this._$slides=this._$el.children()}N.prototype.slide=function(ag,ai,ac,ad){var Z,af,ae={},ab=this._parent._$prevItem.find(">img.br-main-img"),ah,aa;if("vertical"===this._orientation){ah=-this._$slides.height();aa="translateY"}else{ah=-this._$slides.width();aa="translateX"}if(this._parent._backward){af=this._$slides.first();Z=this._$slides.last();if(this._cssTransform){this._$el.css({transform:aa+"("+ah+"px)"});ae.transform=aa+"(0)"}else{this._$el.css(this._position,ah);ae[this._position]=0}}else{af=this._$slides.last();Z=this._$slides.first();if(this._cssTransform){this._$el.css({transform:aa+"(0)"});ae.transform=aa+"("+ah+"px)"}else{this._$el.css(this._position,0);ae[this._position]=ah}}if(B.support.backgroundSize){this.setBgImage(Z,ab);this.setBgImage(af,ag)}else{this.setImage(Z,ab);this.setImage(af,ag)}if(v){setTimeout(B.proxy(function(){this._$el.css({visibility:"visible"});this._parent._$items.css({visibility:"hidden"});this.animate(this._$el.toArray(),ae,ac,ad)},this),1)}else{this._$el.css({visibility:"visible"});this._parent._$items.css({visibility:"hidden"});this.animate(this._$el.toArray(),ae,ac,ad)}};W.prototype=new n();W.prototype.constructor=W;function W(aa,ab,Z){n.call(this,aa,Z);this._cssTransform=this._parent._cssTransform;this._total=ab;this._width=Math.ceil(this._parent._stageWidth/this._total);this._$el=this.create("br-vslice").data({width:this._width})}W.prototype.sliceDown=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceDownLeft"===aa){ac.reverse()}else{if("sliceDownRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateY(-100%)"});this.animate(ac,{transform:"translateY(0)"},ab,ad)}else{this.set(Z,{top:-this._$el.height()});this.animate(ac,{top:0},ab,ad)}};W.prototype.sliceUp=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceUpLeft"===aa){ac.reverse()}else{if("sliceUpRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateY(100%)"});this.animate(ac,{transform:"translateY(0)"},ab,ad)}else{this.set(Z,{top:this._$el.height()});this.animate(ac,{top:0},ab,ad)}};W.prototype.sliceAlt=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceAltLeft"===aa){ac.reverse()}if(this._cssTransform){this.set(Z,{transform:"translateY(-100%)"});this._$el.filter(":odd").css({transform:"translateY(100%)"});this.animate(ac,{transform:"translateY(0)"},ab,ad)}else{this.set(Z,{top:-this._$el.height()});this._$el.filter(":odd").css({top:this._$el.height()});this.animate(ac,{top:0},ab,ad)}};W.prototype.blinds=function(Z,aa,ab,ad){this.set(Z,{width:0});var ac=this._$el.toArray();if("blindsLeft"===aa){ac.reverse()}else{if("verticalRandomBlinds"===aa){p(ac)}}this.animate(ac,{width:this._width+"px"},ab,ad)};W.prototype.fade=function(Z,aa,ab,ad){this.set(Z,{opacity:0});var ac=this._$el.toArray();if("sliceFadeLeft"===aa){ac.reverse()}else{if("verticalRandomFade"===aa){p(ac)}}this.animate(ac,{opacity:1},ab,ad)};W.prototype.move=function(Z,ab,ac,ae){var ad=this._$el.toArray(),aa=this._$el.parent().width();if("sliceMoveRight"===ab){ad.reverse();aa*=-1}if(this._cssTransform){this.set(Z,{transform:"translateX("+aa+"px)"});this.animate(ad,{transform:"translateX(0)"},ac,ae)}else{this.set(Z,{left:"+="+aa});this.animate(ad,{left:"-="+aa},ac,ae)}};W.prototype.zoom=function(Z,aa,ab,ac){if(this._cssTransform){this.set(Z,"zoomOut"===aa?{transform:"scale(2)"}:{transform:"scale(0)"});this.animate(this._$el.toArray(),{transform:"scale(1)"},ab,ac)}else{this.fade(Z,aa,ab,ac)}};W.prototype.set=function(aa,Z){var ab=aa.position().left;if(B.support.backgroundSize){this.setBgImage(this._$el,aa)}else{this.setImage(this._$el,aa)}var ac=this._$el.parent().width();this._$el.each(B.proxy(function(ah,af){var ae=Math.min(this._width,ac),ag=ah*this._width,ad=(ab-ag)+"px";B(af).css({left:ag,width:ae});if(B.support.backgroundSize){B(af).css({backgroundPosition:ad+" "+aa.css("top")})}else{B(af).find(">img").css({left:ad})}ac-=ae},this));this._$el.css(B.extend({opacity:1,top:0,visibility:"visible",transform:"none"},Z))};T.prototype=new n();T.prototype.constructor=T;function T(aa,ab,Z){n.call(this,aa,Z);this._cssTransform=this._parent._cssTransform;this._total=ab;this._height=Math.ceil(this._parent._stageHeight/this._total);this._$el=this.create("br-hslice").data({height:this._height})}T.prototype.sliceRight=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceRightUp"===aa){ac.reverse()}else{if("sliceRightRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateX(-100%)"});this.animate(ac,{transform:"translateX(0)"},ab,ad)}else{this.set(Z,{left:-this._$el.width()});this.animate(ac,{left:0},ab,ad)}};T.prototype.sliceLeft=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceLeftUp"===aa){ac.reverse()}else{if("sliceLeftRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateX(100%)"});this.animate(ac,{transform:"translateX(0)"},ab,ad)}else{this.set(Z,{left:this._$el.width()});this.animate(ac,{left:0},ab,ad)}};T.prototype.sliceAlt=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceAltUp"===aa){ac.reverse()}if(this._cssTransform){this.set(Z,{transform:"translateX(-100%)"});this._$el.filter(":odd").css({transform:"translateX(100%)"});this.animate(ac,{transform:"translateX(0)"},ab,ad)}else{this.set(Z,{left:-this._$el.width()});this._$el.filter(":odd").css({left:this._$el.width()});this.animate(ac,{left:0},ab,ad)}};T.prototype.blinds=function(Z,aa,ab,ad){this.set(Z,{height:0});var ac=this._$el.toArray();if("blindsUp"===aa){ac.reverse()}else{if("horizontalRandomBlinds"===aa){p(ac)}}this.animate(ac,{height:this._height+"px"},ab,ad)};T.prototype.fade=function(Z,aa,ab,ad){this.set(Z,{opacity:0});var ac=this._$el.toArray();if("sliceFadeUp"===aa){ac.reverse()}else{if("horizontalRandomFade"===aa){p(ac)}}this.animate(ac,{opacity:1},ab,ad)};T.prototype.move=function(aa,ab,ac,ae){var ad=this._$el.toArray(),Z=this._$el.parent().height();if("sliceMoveDown"===ab){ad.reverse();Z*=-1}if(this._cssTransform){this.set(aa,{transform:"translateY("+Z+"px)"});this.animate(ad,{transform:"translateY(0)"},ac,ae)}else{this.set(aa,{top:"+="+Z});this.animate(ad,{top:"-="+Z},ac,ae)}};T.prototype.set=function(ac,ab){var aa=ac.position().top;if(B.support.backgroundSize){this.setBgImage(this._$el,ac)}else{this.setImage(this._$el,ac)}var Z=this._$el.parent().height();this._$el.each(B.proxy(function(ah,ae){var ad=Math.min(this._height,Z),af=ah*this._height,ag=(aa-af)+"px";B(ae).css({top:af,height:ad});if(B.support.backgroundSize){B(ae).css({backgroundPosition:ac.css("left")+" "+ag})}else{B(ae).find(">img").css({top:ag})}Z-=ad},this));this._$el.css(B.extend({opacity:1,left:0,visibility:"visible",transform:"none"},ab))};u.prototype=new n();u.prototype.constructor=u;function u(ad,ae,af,ab){n.call(this,ad,ab);this._cssTransform=this._parent._cssTransform;this._blockArray;this._numRows=ae;this._numCols=af;this._width=Math.ceil(this._parent._stageWidth/this._numCols);this._height=Math.ceil(this._parent._stageHeight/this._numRows);this._total=this._numRows*this._numCols;this._$el=this.create("br-block").data({width:this._width,height:this._height});var Z=0;this._blockArray=[];for(var ac=0;acimg").css({left:aj,top:ah})}ae-=aa}}this._$el.css(B.extend({opacity:1,visibility:"visible",transform:"none"},af))};u.prototype.getDiagonalArray=function(){var aa=[];var ab=0,Z=(this._numRows-1)+(this._numCols-1)+1;while(ab!=Z){i=Math.min(this._numRows-1,ab);while(i>=0){j=Math.abs(i-ab);if(j>=this._numCols){break}aa.push(this._blockArray[i][j]);i--}ab++}return aa};u.prototype.getZigZagArray=function(ac){var ab=0,Z=0,aa=true;var ae=[];if("zigZagUp"===ac||"zigZagDown"===ac){for(var ad=0;ad=0;Z--){for(var aa=0;aa=0;aa--){for(var Z=0;Z=0&&af>=0){var ae=0;while(true){ag.push(this._blockArray[ad][ac]);if((++ae)>Z){break}switch(ab){case 0:ac++;break;case 1:ad++;break;case 2:ac--;break;case 3:ad--;break}}switch(ab){case 0:ab=1;Z=(--aa);ad++;break;case 1:ab=2;Z=(--af);ac--;break;case 2:ab=3;Z=(--aa);ad--;break;case 3:ab=0;Z=(--af);ac++;break}}return ag};function I(aa,Z){this._options=Z;this._stageWidth=Z.width;this._stageHeight=Z.height;this._rotate=Z.autoPlay;this._cssTransition=B.support.transition&&!f?Z.cssTransition:false;this._cssTransform=B.support.transform&&this._cssTransition;this._numItems;this._currIndex;this._effects={};this._backward;this._verticalCPanel;this._timer;this._timerId=null;this._tooltipId=null;this._layerIds=[];this._inProgress=false;this._start;this._delay=0;this._cpAlign;this._effectArray;this._startX;this._startY;this._swipeMove;this._swipeStart;this._touchScrolling;this._scrollEasing;this._promise;this._winWidth;this._$rotator=B(aa);this._$stage;this._$screen;this._$layers;this._$preloader;this._$cpanel;this._$cpWrapper;this._$extPanel;this._$thumbPanel;this._$list;this._$items;this._$thumbList;this._$thumbs;this._$tooltip;this._$currItem;this._$prevItem;this._namespace="."+((typeof this._$rotator.attr("id")!=="undefined")?this._$rotator.attr("id"):"rotator");this.init()}I.prototype={init:function(){if(!this._cssTransition){B.fn.transition=B.fn.animate;B.fn.stopTransition=B.fn.stop}this._$list=this._$rotator.find(">ul");if(!this._$list.hasClass("br-slides")){this._$list.addClass("br-slides")}if(this._options.shuffle){this.shuffleItems(this._$list)}this._$items=this._$list.children("li").addClass("br-item");this._numItems=this._$items.length;if("random"===this._options.startIndex){this._currIndex=Math.floor(Math.random()*this._numItems)}else{var Z=parseInt(this._options.startIndex,0);this._currIndex=(!isNaN(Z)&&0<=Z&&Z ');this._$screen=this._$list.parent();this._$stage=this._$screen.parent();this.setBackgroundColor(this._$screen,this._options.backgroundColor);this._$screen.append('