jQuery.cookie=function(b,p,d){if("undefined"!=typeof p){d=d||{};if(null===p)p="",d.expires=-1;var h="";if(d.expires&&("number"==typeof d.expires||d.expires.toUTCString))"number"==typeof d.expires?(h=new Date,h.setTime(h.getTime()+864E5*d.expires)):h=d.expires,h="; expires="+h.toUTCString();var a=d.path?"; path="+d.path:"",f=d.domain?"; domain="+d.domain:"",d=d.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(p),h,a,f,d].join("")}else{p=null;if(document.cookie&&""!=document.cookie){d=
document.cookie.split(";");for(h=0;h<d.length;h++)if(a=jQuery.trim(d[h]),a.substring(0,b.length+1)==b+"="){p=decodeURIComponent(a.substring(b.length+1));break}}return p}};
(function(b){function p(b){b=parseInt(b).toString(16);return 2>b.length?"0"+b:b}function d(b,c,a){switch(b){case "round":return Math.round(a*(1-Math.cos(Math.asin(c/a))));case "cool":return Math.round(a*(1+Math.cos(Math.asin(c/a))));case "sharp":return a-c;case "bite":return Math.round(a*Math.cos(Math.asin((a-c-1)/a)));case "slide":return Math.round(a*Math.atan2(c,a/c));case "jut":return Math.round(a*Math.atan2(a,a-c-1));case "curl":return Math.round(a*Math.atan(c));case "tear":return Math.round(a*
Math.cos(c));case "wicked":return Math.round(a*Math.tan(c));case "long":return Math.round(a*Math.sqrt(c));case "sculpt":return Math.round(a*Math.log(a-c-1,a));case "dogfold":case "dog":return c&1?c+1:a;case "dog2":return c&2?c+1:a;case "dog3":return c&3?c+1:a;case "fray":return c%2*a;case "notch":return a;case "bevelfold":case "bevel":return c+1;case "steep":return c/2+1;case "invsteep":return(a-c)/2+1}}var h=document.createElement("div").style,a=void 0!==h.MozBorderRadius,f=void 0!==h.WebkitBorderRadius,
c=void 0!==h.borderRadius||void 0!==h.BorderRadius,h=document.documentMode||0,j=b.browser.msie&&(8>b.browser.version&&!h||8>h),x=b.browser.msie&&function(){var b=document.createElement("div");try{b.style.setExpression("width","0+0"),b.style.removeExpression("width")}catch(c){return!1}return!0}();b.support=b.support||{};b.support.borderRadius=a||f||c;b.fn.corner=function(h){if(0==this.length){if(!b.isReady&&this.selector){var m=this.selector,r=this.context;b(function(){b(m,r).corner(h)})}return this}return this.each(function(){var l;
var n,t,r,m,s=b(this),k=[s.attr(b.fn.corner.defaults.metaAttr)||"",h||""].join(" ").toLowerCase(),z=/keep/.test(k),o=(k.match(/cc:(#[0-9a-f]+)/)||[])[1];n=(k.match(/sc:(#[0-9a-f]+)/)||[])[1];var e=parseInt((k.match(/(\d+)px/)||[])[1])||10,C=(k.match(/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/)||["round"])[0],g=/dogfold|bevelfold/.test(k),D={T:0,B:1},k={TL:/top|tl|left/.test(k),TR:/top|tr|right/.test(k),BL:/bottom|bl|left/.test(k),
BR:/bottom|br|right/.test(k)},y,q,i,u,A,w;!k.TL&&!k.TR&&!k.BL&&!k.BR&&(k={TL:1,TR:1,BL:1,BR:1});if(b.fn.corner.defaults.useNative&&"round"==C&&(c||a||f)&&!o&&!n)k.TL&&s.css(c?"border-top-left-radius":a?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",e+"px"),k.TR&&s.css(c?"border-top-right-radius":a?"-moz-border-radius-topright":"-webkit-border-top-right-radius",e+"px"),k.BL&&s.css(c?"border-bottom-left-radius":a?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",e+"px"),
k.BR&&s.css(c?"border-bottom-right-radius":a?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",e+"px");else{s=document.createElement("div");b(s).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:n||"transparent",borderStyle:"solid"});n=parseInt(b.css(this,"paddingTop"))||0;t=parseInt(b.css(this,"paddingRight"))||0;r=parseInt(b.css(this,"paddingBottom"))||0;m=parseInt(b.css(this,"paddingLeft"))||0;if(void 0!=typeof this.style.zoom)this.style.zoom=
1;if(!z)this.style.border="none";z=s.style;if(!(i=o))a:{for(q=this.parentNode;q;){if((i=b.css(q,"backgroundColor"))&&"transparent"!=i&&"rgba(0, 0, 0, 0)"!=i){l=0<=i.indexOf("rgb")?(q=i.match(/\d+/g),"#"+p(q[0])+p(q[1])+p(q[2])):i,i=l;break a}if("html"==q.nodeName.toLowerCase())break;q=q.parentNode}i="#ffffff"}z.borderColor=i;z=b(this).outerHeight();for(y in D)if((o=D[y])&&(k.BL||k.BR)||!o&&(k.TL||k.TR)){s.style.borderStyle="none "+(k[y+"R"]?"solid":"none")+" none "+(k[y+"L"]?"solid":"none");q=document.createElement("div");
b(q).addClass("jquery-corner");i=q.style;o?this.appendChild(q):this.insertBefore(q,this.firstChild);if(o&&"auto"!=z){if("static"==b.css(this,"position"))this.style.position="relative";i.position="absolute";i.bottom=i.left=i.padding=i.margin="0";x?i.setExpression("width","this.parentNode.offsetWidth"):i.width="100%"}else if(!o&&b.browser.msie){if("static"==b.css(this,"position"))this.style.position="relative";i.position="absolute";i.top=i.left=i.right=i.padding=i.margin="0";x?(u=(parseInt(b.css(this,
"borderLeftWidth"))||0)+(parseInt(b.css(this,"borderRightWidth"))||0),i.setExpression("width","this.parentNode.offsetWidth - "+u+'+ "px"')):i.width="100%"}else i.position="relative",i.margin=!o?"-"+n+"px -"+t+"px "+(n-e)+"px -"+m+"px":r-e+"px -"+t+"px -"+r+"px -"+m+"px";for(i=0;i<e;i++)u=Math.max(0,d(C,i,e)),A=s.cloneNode(!1),A.style.borderWidth="0 "+(k[y+"R"]?u:0)+"px 0 "+(k[y+"L"]?u:0)+"px",o?q.appendChild(A):q.insertBefore(A,q.firstChild);if(g&&b.support.boxModel&&(!o||!j))for(w in k)if(k[w]&&
(!o||!("TL"==w||"TR"==w)))if(o||!("BL"==w||"BR"==w)){i={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:s.style.borderColor};u=b("<div/>").css(i).css({width:e+"px",height:"1px"});switch(w){case "TL":u.css({bottom:0,left:0});break;case "TR":u.css({bottom:0,right:0});break;case "BL":u.css({top:0,left:0});break;case "BR":u.css({top:0,right:0})}q.appendChild(u[0]);i=b("<div/>").css(i).css({top:0,bottom:0,width:"1px",height:e+"px"});switch(w){case "TL":i.css({left:e});
break;case "TR":i.css({right:e});break;case "BL":i.css({left:e});break;case "BR":i.css({right:e})}q.appendChild(i[0])}}}})};b.fn.uncorner=function(){if(c||a||f)this.css(c?"border-radius":a?"-moz-border-radius":"-webkit-border-radius",0);b("div.jquery-corner",this).remove();return this};b.fn.corner.defaults={useNative:!0,metaAttr:"data-corner"}})(jQuery);
(function(b){b.fn.hoverIntent=function(p,d){var h={sensitivity:7,interval:100,timeout:0},h=b.extend(h,d?{over:p,out:d}:p),a,f,c,j,x=function(b){a=b.pageX;f=b.pageY},l=function(d,n){n.hoverIntent_t=clearTimeout(n.hoverIntent_t);if(Math.abs(c-a)+Math.abs(j-f)<h.sensitivity)return b(n).unbind("mousemove",x),n.hoverIntent_s=1,h.over.apply(n,[d]);c=a;j=f;n.hoverIntent_t=setTimeout(function(){l(d,n)},h.interval)},m=function(a){var f=jQuery.extend({},a),d=this;if(d.hoverIntent_t)d.hoverIntent_t=clearTimeout(d.hoverIntent_t);
if("mouseenter"==a.type){if(c=f.pageX,j=f.pageY,b(d).bind("mousemove",x),1!=d.hoverIntent_s)d.hoverIntent_t=setTimeout(function(){l(f,d)},h.interval)}else if(b(d).unbind("mousemove",x),1==d.hoverIntent_s)d.hoverIntent_t=setTimeout(function(){d.hoverIntent_t=clearTimeout(d.hoverIntent_t);d.hoverIntent_s=0;h.out.apply(d,[f])},h.timeout)};return this.bind("mouseenter",m).bind("mouseleave",m)}})(jQuery);
(function(b){var p=function(){(function(b){jQuery.fn.calcSubWidth=function(){rowWidth=0;b(this).find("ul").each(function(){rowWidth+=b(this).width()})}})(jQuery);b(this).find(".mn-sub.expanded").removeClass("expanded");if(0<b(this).find(".mn-row").length){var a=0;b(this).find(".mn-row").each(function(){b(this).calcSubWidth();rowWidth>a&&(a=rowWidth)});b(this).find(".mn-sub").css({width:a+40});b(this).find(".mn-row:last").css({margin:"0"})}else b(this).calcSubWidth(),b(this).find(".mn-sub").css({width:rowWidth+
20});var c=!1;try{document.createEvent("TouchEvent"),c=!0}catch(d){}c?b(this).find(".mn-sub").stop().animate({height:"toggle"},"fast",function(){b(this).show();b(this).addClass("expanded");return!1}):(b(this).find(".mn-sub").addClass("expanded"),b(this).find(".mn-sub").stop().animate({height:"toggle"},"slow",function(){b(this).show();return!1}));return!1},d=function(){b(this).find(".mn-sub").stop().animate({height:"toggle"},150,function(){b(this).removeClass("expanded");b(this).hide();b(this).hide().css("height",
"auto")})},h=function(a){var c=0<b(this).parent().children(".mn-sub.expanded").length,d=0<b(this).parent().children(".mn-sub").length;!c&&d&&a.preventDefault()},a=function(a,c){var j=!1;try{document.createEvent("TouchEvent"),j=!0}catch(x){}j&&(j=b.extend({},b.fn.megaNav.defaultsMobile,c));var j=b.extend({},b.fn.megaNav.defaults,c),j={sensitivity:j.sensitivity,interval:j.interval,over:p,timeout:j.timeout,out:d},l=b(a);l.data("nndsb:vars",j);l.children("ul li .mn-sub").hide();l.children("ul li").hoverIntent(j);
l.find("a.mn-hd").bind("click",h)};b.fn.megaNav=function(d){return this.each(function(){var c=b(this);if(c.data("mega-nav"))return c.data("mega-nav");var h=new a(this,d);c.data("mega-nav",h)})};b.fn.megaNav.defaults={sensitivity:2,interval:100,timeout:100};b.fn.megaNav.defaultsMobile={sensitivity:2,interval:120,timeout:250}})(jQuery);
(function(b){var p=function(d,h){var a=b.extend({},b.fn.nivoSlider.defaults,h),f={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:!1,paused:!1,stop:!1},c=b(d);c.data("nivo:vars",f);c.css("position","relative");c.addClass("nivoSlider");var j=c.children();j.each(function(){var a=b(this),o="";a.is("img")||(a.is("a")&&(a.addClass("nivo-imageLink"),o=a),a=a.find("img:first"));var e=a.width();0==e&&(e=a.attr("width"));var d=a.height();0==d&&(d=a.attr("height"));e>c.width()&&c.width(e);
d>c.height()&&c.height(d);""!=o&&o.css("display","none");a.css("display","none");f.totalSlides++});if(0<a.startSlide){if(a.startSlide>=f.totalSlides)a.startSlide=f.totalSlides-1;f.currentSlide=a.startSlide}f.currentImage=b(j[f.currentSlide]).is("img")?b(j[f.currentSlide]):b(j[f.currentSlide]).find("img:first");b(j[f.currentSlide]).is("a")&&b(j[f.currentSlide]).css("display","block");c.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat');c.append(b('<div class="nivo-caption"><p></p></div>').css({display:"none",
opacity:a.captionOpacity}));var p=function(a){var o=b(".nivo-caption",c);if(""!=f.currentImage.attr("title")&&void 0!=f.currentImage.attr("title")){var e=f.currentImage.attr("title");"#"==e.substr(0,1)&&(e=b(e).html());"block"==o.css("display")?o.find("p").fadeOut(a.animSpeed,function(){b(this).html(e);b(this).fadeIn(a.animSpeed)}):o.find("p").html(e);o.fadeIn(a.animSpeed)}else o.fadeOut(a.animSpeed)};p(a);var l=0;!a.manualAdvance&&1<j.length&&(l=setInterval(function(){v(c,j,a,!1)},a.pauseTime));
a.directionNav&&(c.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+a.prevText+'</a><a class="nivo-nextNav">'+a.nextText+"</a></div>"),a.directionNavHide&&(b(".nivo-directionNav",c).hide(),c.hover(function(){b(".nivo-directionNav",c).show()},function(){b(".nivo-directionNav",c).hide()})),b("a.nivo-prevNav",c).live("click",function(){if(f.running)return!1;clearInterval(l);l="";f.currentSlide-=2;v(c,j,a,"prev")}),b("a.nivo-nextNav",c).live("click",function(){if(f.running)return!1;clearInterval(l);
l="";v(c,j,a,"next")}));if(a.controlNav){var m=c.width();0==m&&(m=c.attr("width"));m=22*Math.ceil(22*f.totalSlides/m);c.css("margin-bottom",m+"px");m=b('<div class="nivo-controlNav" style="bottom:-'+m+'px;"></div>');c.append(m);for(var r=0;r<j.length;r++)if(a.controlNavThumbs){var n=j.eq(r);n.is("img")||(n=n.find("img:first"));a.controlNavThumbsFromRel?m.append('<a class="nivo-control" rel="'+r+'"><img src="'+n.attr("rel")+'" alt="" /></a>'):m.append('<a class="nivo-control" rel="'+r+'"><img src="'+
n.attr("src").replace(a.controlNavThumbsSearch,a.controlNavThumbsReplace)+'" alt="" /></a>')}else m.append('<a class="nivo-control" rel="'+r+'">'+(r+1)+"</a>");b(".nivo-controlNav a:eq("+f.currentSlide+")",c).addClass("active");b(".nivo-controlNav a",c).live("click",function(){if(f.running)return!1;if(b(this).hasClass("active"))return!1;clearInterval(l);l="";c.css("background",'url("'+f.currentImage.attr("src")+'") no-repeat');f.currentSlide=b(this).attr("rel")-1;v(c,j,a,"control")})}a.keyboardNav&&
b(window).keypress(function(b){if("37"==b.keyCode){if(f.running)return!1;clearInterval(l);l="";f.currentSlide-=2;v(c,j,a,"prev")}if("39"==b.keyCode){if(f.running)return!1;clearInterval(l);l="";v(c,j,a,"next")}});a.pauseOnHover&&c.hover(function(){f.paused=!0;clearInterval(l);l=""},function(){f.paused=!1;""==l&&!a.manualAdvance&&(l=setInterval(function(){v(c,j,a,!1)},a.pauseTime))});c.bind("nivo:animFinished",function(){f.running=!1;b(j).each(function(){b(this).is("a")&&b(this).css("display","none")});
b(j[f.currentSlide]).is("a")&&b(j[f.currentSlide]).css("display","block");""==l&&!f.paused&&!a.manualAdvance&&(l=setInterval(function(){v(c,j,a,!1)},a.pauseTime));a.afterChange.call(this)});var t=function(a,c,e){for(var d=0;d<c.slices;d++){var g=Math.round(a.width()/c.slices);d==c.slices-1?a.append(b('<div class="nivo-slice"></div>').css({left:g*d+"px",width:a.width()-g*d+"px",height:"0px",opacity:"0",background:'url("'+e.currentImage.attr("src")+'") no-repeat -'+(g+d*g-g)+"px 0%"})):a.append(b('<div class="nivo-slice"></div>').css({left:g*
d+"px",width:g+"px",height:"0px",opacity:"0",background:'url("'+e.currentImage.attr("src")+'") no-repeat -'+(g+d*g-g)+"px 0%"}))}},B=function(a,c,e){for(var d=Math.round(a.width()/c.boxCols),g=Math.round(a.height()/c.boxRows),f=0;f<c.boxRows;f++)for(var h=0;h<c.boxCols;h++)h==c.boxCols-1?a.append(b('<div class="nivo-box"></div>').css({opacity:0,left:d*h+"px",top:g*f+"px",width:a.width()-d*h+"px",height:g+"px",background:'url("'+e.currentImage.attr("src")+'") no-repeat -'+(d+h*d-d)+"px -"+(g+f*g-g)+
"px"})):a.append(b('<div class="nivo-box"></div>').css({opacity:0,left:d*h+"px",top:g*f+"px",width:d+"px",height:g+"px",background:'url("'+e.currentImage.attr("src")+'") no-repeat -'+(d+h*d-d)+"px -"+(g+f*g-g)+"px"}))},v=function(a,c,e,d){var g=a.data("nivo:vars");g&&g.currentSlide==g.totalSlides-1&&e.lastSlide.call(this);if((!g||g.stop)&&!d)return!1;e.beforeChange.call(this);d?("prev"==d&&a.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat'),"next"==d&&a.css("background",'url("'+
g.currentImage.attr("src")+'") no-repeat')):a.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat');g.currentSlide++;if(g.currentSlide==g.totalSlides)g.currentSlide=0,e.slideshowEnd.call(this);if(0>g.currentSlide)g.currentSlide=g.totalSlides-1;g.currentImage=b(c[g.currentSlide]).is("img")?b(c[g.currentSlide]):b(c[g.currentSlide]).find("img:first");e.controlNav&&(b(".nivo-controlNav a",a).removeClass("active"),b(".nivo-controlNav a:eq("+g.currentSlide+")",a).addClass("active"));p(e);
b(".nivo-slice",a).remove();b(".nivo-box",a).remove();if("random"==e.effect&&(c="sliceDownRight,sliceDownLeft,sliceUpRight,sliceUpLeft,sliceUpDown,sliceUpDownLeft,fold,fade,boxRandom,boxRain,boxRainReverse,boxRainGrow,boxRainGrowReverse".split(","),g.randAnim=c[Math.floor(Math.random()*(c.length+1))],void 0==g.randAnim))g.randAnim="fade";if(-1!=e.effect.indexOf(",")&&(c=e.effect.split(","),g.randAnim=c[Math.floor(Math.random()*c.length)],void 0==g.randAnim))g.randAnim="fade";g.running=!0;if("sliceDown"==
e.effect||"sliceDownRight"==e.effect||"sliceDownRight"==g.randAnim||"sliceDownLeft"==e.effect||"sliceDownLeft"==g.randAnim){t(a,e,g);var f=0,h=0,c=b(".nivo-slice",a);if("sliceDownLeft"==e.effect||"sliceDownLeft"==g.randAnim)c=b(".nivo-slice",a)._reverse();c.each(function(){var c=b(this);c.css({top:"0px"});h==e.slices-1?setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},e.animSpeed,"",function(){a.trigger("nivo:animFinished")})},100+f):setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},
e.animSpeed)},100+f);f+=50;h++})}else if("sliceUp"==e.effect||"sliceUpRight"==e.effect||"sliceUpRight"==g.randAnim||"sliceUpLeft"==e.effect||"sliceUpLeft"==g.randAnim){t(a,e,g);h=f=0;c=b(".nivo-slice",a);if("sliceUpLeft"==e.effect||"sliceUpLeft"==g.randAnim)c=b(".nivo-slice",a)._reverse();c.each(function(){var c=b(this);c.css({bottom:"0px"});h==e.slices-1?setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},e.animSpeed,"",function(){a.trigger("nivo:animFinished")})},100+f):setTimeout(function(){c.animate({height:"100%",
opacity:"1.0"},e.animSpeed)},100+f);f+=50;h++})}else if("sliceUpDown"==e.effect||"sliceUpDownRight"==e.effect||"sliceUpDown"==g.randAnim||"sliceUpDownLeft"==e.effect||"sliceUpDownLeft"==g.randAnim){t(a,e,g);var j=h=f=0,c=b(".nivo-slice",a);if("sliceUpDownLeft"==e.effect||"sliceUpDownLeft"==g.randAnim)c=b(".nivo-slice",a)._reverse();c.each(function(){var c=b(this);0==h?(c.css("top","0px"),h++):(c.css("bottom","0px"),h=0);j==e.slices-1?setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},e.animSpeed,
"",function(){a.trigger("nivo:animFinished")})},100+f):setTimeout(function(){c.animate({height:"100%",opacity:"1.0"},e.animSpeed)},100+f);f+=50;j++})}else if("fold"==e.effect||"fold"==g.randAnim)t(a,e,g),h=f=0,b(".nivo-slice",a).each(function(){var c=b(this),d=c.width();c.css({top:"0px",height:"100%",width:"0px"});h==e.slices-1?setTimeout(function(){c.animate({width:d,opacity:"1.0"},e.animSpeed,"",function(){a.trigger("nivo:animFinished")})},100+f):setTimeout(function(){c.animate({width:d,opacity:"1.0"},
e.animSpeed)},100+f);f+=50;h++});else if("fade"==e.effect||"fade"==g.randAnim){t(a,e,g);var i=b(".nivo-slice:first",a);i.css({height:"100%",width:a.width()+"px"});i.animate({opacity:"1.0"},2*e.animSpeed,"",function(){a.trigger("nivo:animFinished")})}else if("slideInRight"==e.effect||"slideInRight"==g.randAnim)t(a,e,g),i=b(".nivo-slice:first",a),i.css({height:"100%",width:"0px",opacity:"1"}),i.animate({width:a.width()+"px"},2*e.animSpeed,"",function(){a.trigger("nivo:animFinished")});else if("slideInLeft"==
e.effect||"slideInLeft"==g.randAnim)t(a,e,g),i=b(".nivo-slice:first",a),i.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"}),i.animate({width:a.width()+"px"},2*e.animSpeed,"",function(){i.css({left:"0px",right:""});a.trigger("nivo:animFinished")});else if("boxRandom"==e.effect||"boxRandom"==g.randAnim){B(a,e,g);var k=e.boxCols*e.boxRows,f=h=0,c=s(b(".nivo-box",a));c.each(function(){var c=b(this);h==k-1?setTimeout(function(){c.animate({opacity:"1"},e.animSpeed,"",function(){a.trigger("nivo:animFinished")})},
100+f):setTimeout(function(){c.animate({opacity:"1"},e.animSpeed)},100+f);f+=20;h++})}else if("boxRain"==e.effect||"boxRain"==g.randAnim||"boxRainReverse"==e.effect||"boxRainReverse"==g.randAnim||"boxRainGrow"==e.effect||"boxRainGrow"==g.randAnim||"boxRainGrowReverse"==e.effect||"boxRainGrowReverse"==g.randAnim){B(a,e,g);var k=e.boxCols*e.boxRows,l=f=h=0,m=0,n=[];n[l]=[];c=b(".nivo-box",a);if("boxRainReverse"==e.effect||"boxRainReverse"==g.randAnim||"boxRainGrowReverse"==e.effect||"boxRainGrowReverse"==
g.randAnim)c=b(".nivo-box",a)._reverse();c.each(function(){n[l][m]=b(this);m++;m==e.boxCols&&(l++,m=0,n[l]=[])});for(c=0;c<2*e.boxCols;c++){for(var d=c,r=0;r<e.boxRows;r++)0<=d&&d<e.boxCols&&(function(c,d,f,h,i){var j=b(n[c][d]),k=j.width(),l=j.height();("boxRainGrow"==e.effect||"boxRainGrow"==g.randAnim||"boxRainGrowReverse"==e.effect||"boxRainGrowReverse"==g.randAnim)&&j.width(0).height(0);h==i-1?setTimeout(function(){j.animate({opacity:"1",width:k,height:l},e.animSpeed/1.3,"",function(){a.trigger("nivo:animFinished")})},
100+f):setTimeout(function(){j.animate({opacity:"1",width:k,height:l},e.animSpeed/1.3)},100+f)}(r,d,f,h,k),h++),d--;f+=100}}},s=function(a){for(var b,c,d=a.length;d;b=parseInt(Math.random()*d),c=a[--d],a[d]=a[b],a[b]=c);return a},k=function(a){this.console&&"undefined"!=typeof console.log&&console.log(a)};this.stop=function(){if(!b(d).data("nivo:vars").stop)b(d).data("nivo:vars").stop=!0,k("Stop Slider")};this.start=function(){if(b(d).data("nivo:vars").stop)b(d).data("nivo:vars").stop=!1,k("Start Slider")};
a.afterLoad.call(this);return this};b.fn.nivoSlider=function(d){return this.each(function(){var h=b(this);if(h.data("nivoslider"))return h.data("nivoslider");var a=new p(this,d);h.data("nivoslider",a)})};b.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3E3,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,controlNavThumbs:!1,controlNavThumbsFromRel:!1,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:!0,pauseOnHover:!0,
manualAdvance:!1,captionOpacity:0.8,prevText:"Prev",nextText:"Next",beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};b.fn._reverse=[].reverse})(jQuery);
