var mod_pagespeed_rwE5rsjNbR = "eval(function(p,a,c,k,e,d){e=function(c){return(c<a?\"\":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\\\b'+e(c)+'\\\\b','g'),k[c])}}return p}('3(d(){3(\"4.T\").1s(\"<p r=\\'O\\'>16...<1t /><18 19=\\'1a/11-1b.1c\\' 1d=\\'O...\\'/ ></p>\")});b j=0;3.1e.1f=d(f){f=3.1g({G:\"1h\",E:1i,1j:Q},f);P 6.w(d(){b o=3(6);o.7(\"p.O\").1k();o.q(\"T\").l(\"1l\");b m=o.7(\"4.I\").C();b k=o.7(\"4.I\").1m();b U=m*k;o.7(\"4.t\").K(\"C\",U);b N=k*2;F(h.g&&D(h.g.s(1))<=k){b 9=D(h.g.s(1));b e=-(m*(9-1));3(6).7(\"4.t\").K({H:e})}B{b 9=1};o.w(d(i){3(6).W(\"<4 r=\\'J\\' M=\\'J\"+j+\"\\'><a A=\\'#\\'>1n</a><\\\\/4>\");3(6).1o(\"<4 r=\\'L\\' M=\\'L\"+j+\"\\'><a A=\\'#\\'>1q</a><\\\\/4>\");3(6).W(\"<4 r=\\'c\\' M=\\'c\"+j+\"\\'><v><\\\\/v><\\\\/4>\");3(6).7(\"4.I\").w(d(n){3(\"4#c\"+j+\" v\").X(\"<x r=\\'Z\"+(n+1)+\"\\'><a A=\\'#\"+(n+1)+\"\\'>\"+3(6).S(\"10\")+\"<\\\\/a><\\\\/x>\")});3(\"4#c\"+j+\" a\").w(d(z){N+=3(6).5().C();3(6).12(\"u\",d(){3(6).l(\"8\").5().5().7(\"a\").13(3(6)).q(\"8\");b e=-(m*z);9=z+1;3(6).5().5().5().V().7(\"4.t\").R({H:e},f.E,f.G)})});3(\"4#J\"+j+\" a\").u(d(){F(9==1){b e=-(m*(k-1));9=k;3(6).5().5().7(\"4.c a.8\").q(\"8\").5().5().7(\"x:14 a\").l(\"8\")}B{9-=1;b e=-(m*(9-1));3(6).5().5().7(\"4.c a.8\").q(\"8\").5().15().7(\"a\").l(\"8\")};3(6).5().5().7(\"4.t\").R({H:e},f.E,f.G);h.g=9;P Q});3(\"4#L\"+j+\" a\").u(d(){F(9==k){b e=0;9=1;3(6).5().5().7(\"4.c a.8\").q(\"8\").5().5().7(\"a:y(0)\").l(\"8\")}B{b e=-(m*9);9+=1;3(6).5().5().7(\"4.c a.8\").q(\"8\").5().V().7(\"a\").l(\"8\")};3(6).5().5().7(\"4.t\").R({H:e},f.E,f.G);h.g=9;P Q});3(\"a.1p-1r\").u(d(){3(6).Y().7(\".c v x a:y(\"+(D(3(6).S(\"A\").s(1))-1)+\")\").17(\\'u\\')});3(\"4#c\"+j).K(\"C\",N);F(h.g&&D(h.g.s(1))<=k){3(\"4#c\"+j+\" a:y(\"+(h.g.s(1)-1)+\")\").l(\"8\")}B{3(\"4#c\"+j+\" a:y(0)\").l(\"8\")}});j++})};',62,92,'|||jQuery|div|parent|this|find|current|cPanel||var|stripNav|function|cnt|settings|hash|location|||panelCount|addClass|panelWidth||container||removeClass|class|slice|panelContainer|click|ul|each|li|eq||href|else|width|parseInt|easeTime|if|easeFunc|left|panel|stripNavL|css|stripNavR|id|navWidth|loading|return|false|animate|attr|csw|stripViewerWidth|next|before|append|parents|tab|title|ajax|bind|not|last|prev|Loading|trigger|img|src|images|loader|gif|alt|fn|codaSlider|extend|expoinout|750|toolTip|remove|stripViewer|size|Left|after|cross|Right|link|prepend|br'.split('|'),0,{}))";
var mod_pagespeed_qZKebZkn10 = "var $j=jQuery.noConflict();var theInt=null;var $crosslink,$navthumb;var curclicked=0;theInterval=function(cur){clearInterval(theInt);if(typeof cur!='undefined')\ncurclicked=cur;$crosslink.removeClass(\"active-thumb\");$navthumb.eq(curclicked).parent().addClass(\"active-thumb\");$j(\".stripNav ul li a\").eq(curclicked).trigger('click');theInt=setInterval(function(){$crosslink.removeClass(\"active-thumb\");$navthumb.eq(curclicked).parent().addClass(\"active-thumb\");$j(\".stripNav ul li a\").eq(curclicked).trigger('click');curclicked++;if(6==curclicked)\ncurclicked=0;},3000);};$j(function(){$j(\"#main-photo-slider\").codaSlider();$navthumb=$j(\".nav-thumb\");$crosslink=$j(\".cross-link\");$navthumb.click(function(){var $this=$j(this);theInterval($this.parent().attr('href').slice(1)-1);return false;});theInterval();});";
var mod_pagespeed_Q3T5YqqLSp = "window.Modernizr=function(i,e,u){function s(a,b){return(\"\"+a).indexOf(b)!==-1}function D(a,b){for(var c in a)if(j[a[c]]!==u&&(!b||b(a[c],E)))return true}function n(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);c=(a+\" \"+F.join(c+\" \")+c).split(\" \");return!!D(c,b)}function S(){f.input=function(a){for(var b=0,c=a.length;b<c;b++)L[a[b]]=!!(a[b]in h);return L}(\"autocomplete autofocus list placeholder max min multiple pattern required step\".split(\" \"));f.inputtypes=function(a){for(var b=0,c,k=a.length;b<k;b++){h.setAttribute(\"type\",a[b]);if(c=h.type!==\"text\"){h.value=M;if(/^range$/.test(h.type)&&h.style.WebkitAppearance!==u){l.appendChild(h);c=e.defaultView;c=c.getComputedStyle&&c.getComputedStyle(h,null).WebkitAppearance!==\"textfield\"&&h.offsetHeight!==0;l.removeChild(h)}else/^(search|tel)$/.test(h.type)||(c=/^(url|email)$/.test(h.type)?h.checkValidity&&h.checkValidity()===false:h.value!=M)}N[a[b]]=!!c}return N}(\"search tel url email datetime date month week time datetime-local number range color\".split(\" \"))}\nvar f={},l=e.documentElement,E=e.createElement(\"modernizr\"),j=E.style,h=e.createElement(\"input\"),M=\":)\",O=Object.prototype.toString,q=\" -webkit- -moz- -o- -ms- -khtml- \".split(\" \"),F=\"Webkit Moz O ms Khtml\".split(\" \"),v={svg:\"http://www.w3.org/2000/svg\"},d={},N={},L={},P=[],w,Q=function(a){var b=document.createElement(\"style\"),c=e.createElement(\"div\");b.textContent=a+\"{#modernizr{height:3px}}\";(e.head||e.getElementsByTagName(\"head\")[0]).appendChild(b);c.id=\"modernizr\";l.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c);return!!a},o=function(){var a={select:\"input\",change:\"input\",submit:\"form\",reset:\"form\",error:\"img\",load:\"img\",abort:\"img\"};return function(b,c){c=c||document.createElement(a[b]||\"div\");b=\"on\"+b;var k=b in c;if(!k){c.setAttribute||(c=document.createElement(\"div\"));if(c.setAttribute&&c.removeAttribute){c.setAttribute(b,\"\");k=typeof c[b]==\"function\";if(typeof c[b]!=\"undefined\")c[b]=u;c.removeAttribute(b)}}return k}}(),G={}.hasOwnProperty,R;R=typeof G!==\"undefined\"&&typeof G.call!==\"undefined\"?function(a,b){return G.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]===\"undefined\"};d.flexbox=function(){var a=e.createElement(\"div\"),b=e.createElement(\"div\");(function(k,g,r,x){g+=\":\";k.style.cssText=(g+q.join(r+\";\"+g)).slice(0,-g.length)+(x||\"\")})(a,\"display\",\"box\",\"width:42px;padding:0;\");b.style.cssText=q.join(\"box-flex:1;\")+\"width:10px;\";a.appendChild(b);l.appendChild(a);var c=b.offsetWidth===42;a.removeChild(b);l.removeChild(a);return c};d.canvas=function(){var a=e.createElement(\"canvas\");return!!(a.getContext&&a.getContext(\"2d\"))};d.canvastext=function(){return!!(f.canvas&&typeof e.createElement(\"canvas\").getContext(\"2d\").fillText==\"function\")};d.webgl=function(){var a=e.createElement(\"canvas\");try{if(a.getContext(\"webgl\"))return true}catch(b){}try{if(a.getContext(\"experimental-webgl\"))return true}catch(c){}return false};d.touch=function(){return\"ontouchstart\"in i||Q(\"@media (\"+q.join(\"touch-enabled),(\")+\"modernizr)\")};d.geolocation=function(){return!!navigator.geolocation};d.postmessage=function(){return!!i.postMessage};d.websqldatabase=function(){return!!i.openDatabase};d.indexedDB=function(){for(var a=-1,b=F.length;++a<b;){var c=F[a].toLowerCase();if(i[c+\"_indexedDB\"]||i[c+\"IndexedDB\"])return true}return false};d.hashchange=function(){return o(\"hashchange\",i)&&(document.documentMode===u||document.documentMode>7)};d.history=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return o(\"drag\")&&o(\"dragstart\")&&o(\"dragenter\")&&o(\"dragover\")&&o(\"dragleave\")&&o(\"dragend\")&&o(\"drop\")};d.websockets=function(){return\"WebSocket\"in i};d.rgba=function(){j.cssText=\"background-color:rgba(150,255,150,.5)\";return s(j.backgroundColor,\"rgba\")};d.hsla=function(){j.cssText=\"background-color:hsla(120,40%,100%,.5)\";return s(j.backgroundColor,\"rgba\")||s(j.backgroundColor,\"hsla\")};d.multiplebgs=function(){j.cssText=\"background:url(//:),url(//:),red url(//:)\";return/(url\\s*\\(.*?){3}/.test(j.background)};d.backgroundsize=function(){return n(\"backgroundSize\")};d.borderimage=function(){return n(\"borderImage\")};d.borderradius=function(){return n(\"borderRadius\",\"\",function(a){return s(a,\"orderRadius\")})};d.boxshadow=function(){return n(\"boxShadow\")};d.textshadow=function(){return e.createElement(\"div\").style.textShadow===\"\"};d.opacity=function(){var a=q.join(\"opacity:.5;\")+\"\";j.cssText=a;return s(j.opacity,\"0.5\")};d.cssanimations=function(){return n(\"animationName\")};d.csscolumns=function(){return n(\"columnCount\")};d.cssgradients=function(){var a=(\"background-image:\"+q.join(\"gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:\")+q.join(\"linear-gradient(left top,#9f9, white);background-image:\")).slice(0,-17);j.cssText=a;return s(j.backgroundImage,\"gradient\")};d.cssreflections=function(){return n(\"boxReflect\")};d.csstransforms=function(){return!!D([\"transformProperty\",\"WebkitTransform\",\"MozTransform\",\"OTransform\",\"msTransform\"])};d.csstransforms3d=function(){var a=!!D([\"perspectiveProperty\",\"WebkitPerspective\",\"MozPerspective\",\"OPerspective\",\"msPerspective\"]);if(a)a=Q(\"@media (\"+q.join(\"transform-3d),(\")+\"modernizr)\");return a};d.csstransitions=function(){return n(\"transitionProperty\")};d.fontface=function(){var a,b=e.head||e.getElementsByTagName(\"head\")[0]||l,c=e.createElement(\"style\"),k=e.implementation||{hasFeature:function(){return false}};c.type=\"text/css\";b.insertBefore(c,b.firstChild);a=c.sheet||c.styleSheet;b=k.hasFeature(\"CSS2\",\"\")?function(g){if(!(a&&g))return false;var r=false;try{a.insertRule(g,0);r=!/unknown/i.test(a.cssRules[0].cssText);a.deleteRule(a.cssRules.length-1)}catch(x){}return r}:function(g){if(!(a&&g))return false;a.cssText=g;return a.cssText.length!==0&&!/unknown/i.test(a.cssText)&&a.cssText.replace(/\\r+|\\n+/g,\"\").indexOf(g.split(\" \")[0])===0};f._fontfaceready=function(g){g(f.fontface)};return b('@font-face { font-family: \"font\"; src: \"font.ttf\"; }')};d.video=function(){var a=e.createElement(\"video\"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs=\"theora\"');b.h264=a.canPlayType('video/mp4; codecs=\"avc1.42E01E\"')||a.canPlayType('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"');b.webm=a.canPlayType('video/webm; codecs=\"vp8, vorbis\"')}return b};d.audio=function(){var a=e.createElement(\"audio\"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs=\"vorbis\"');b.mp3=a.canPlayType(\"audio/mpeg;\");b.wav=a.canPlayType('audio/wav; codecs=\"1\"');b.m4a=a.canPlayType(\"audio/x-m4a;\")||a.canPlayType(\"audio/aac;\")}return b};d.localstorage=function(){try{return\"localStorage\"in\ni&&i.localStorage!==null}catch(a){return false}};d.sessionstorage=function(){try{return\"sessionStorage\"in i&&i.sessionStorage!==null}catch(a){return false}};d.webWorkers=function(){return!!i.Worker};d.applicationcache=function(){return!!i.applicationCache};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS(v.svg,\"svg\").createSVGRect};d.inlinesvg=function(){var a=document.createElement(\"div\");a.innerHTML=\"<svg/>\";return(a.firstChild&&a.firstChild.namespaceURI)==v.svg};d.smil=function(){return!!e.createElementNS&&/SVG/.test(O.call(e.createElementNS(v.svg,\"animate\")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(O.call(e.createElementNS(v.svg,\"clipPath\")))};for(var H in d)if(R(d,H)){w=H.toLowerCase();f[w]=d[H]();P.push((f[w]?\"\":\"no-\")+w)}f.input||S();f.crosswindowmessaging=f.postmessage;f.historymanagement=f.history;f.addTest=function(a,b){a=a.toLowerCase();if(!f[a]){b=!!b();l.className+=\" \"+(b?\"\":\"no-\")+a;f[a]=b;return f}};j.cssText=\"\";E=h=null;i.attachEvent&&function(){var a=e.createElement(\"div\");a.innerHTML=\"<elem></elem>\";return a.childNodes.length!==1}()&&function(a,b){function c(p){for(var m=-1;++m<r;)p.createElement(g[m])}function k(p,m){for(var I=p.length,t=-1,y,J=[];++t<I;){y=p[t];m=y.media||m;J.push(k(y.imports,m));J.push(y.cssText)}return J.join(\"\")}var g=\"abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\".split(\"|\"),r=g.length,x=RegExp(\"<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\",\"gi\"),T=RegExp(\"\\\\b(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\\\\b(?!.*[;}])\",\"gi\"),z=b.createDocumentFragment(),A=b.documentElement,K=A.firstChild,B=b.createElement(\"style\"),C=b.createElement(\"body\");B.media=\"all\";c(b);c(z);a.attachEvent(\"onbeforeprint\",function(){for(var p=-1;++p<r;)for(var m=b.getElementsByTagName(g[p]),I=m.length,t=-1;++t<I;)if(m[t].className.indexOf(\"iepp_\")<0)m[t].className+=\" iepp_\"+g[p];K.insertBefore(B,K.firstChild);B.styleSheet.cssText=k(b.styleSheets,\"all\").replace(T,\".iepp_$1\");z.appendChild(b.body);A.appendChild(C);C.innerHTML=z.firstChild.innerHTML.replace(x,\"<$1bdo\")});a.attachEvent(\"onafterprint\",function(){C.innerHTML=\"\";A.removeChild(C);K.removeChild(B);A.appendChild(z.firstChild)})}(this,document);f._enableHTML5=true;f._version=\"1.6\";l.className=l.className.replace(/\\bno-js\\b/,\"\")+\" js\";l.className+=\" \"+P.join(\" \");return f}(this,this.document);";
var mod_pagespeed_qhsgvhYkEL = "(function($){var NivoSlider=function(element,options){var settings=$.extend({},$.fn.nivoSlider.defaults,options);var vars={currentSlide:0,currentImage:'',totalSlides:0,randAnim:'',running:false,paused:false,stop:false};var slider=$(element);slider.data('nivo:vars',vars);slider.css('position','relative');slider.addClass('nivoSlider');var kids=slider.children();kids.each(function(){var child=$(this);var link='';if(!child.is('img')){if(child.is('a')){child.addClass('nivo-imageLink');link=child;}\nchild=child.find('img:first');}\nvar childWidth=child.width();if(childWidth==0)childWidth=child.attr('width');var childHeight=child.height();if(childHeight==0)childHeight=child.attr('height');if(childWidth>slider.width()){slider.width(childWidth);}\nif(childHeight>slider.height()){slider.height(childHeight);}\nif(link!=''){link.css('display','none');}\nchild.css('display','none');vars.totalSlides++;});if(settings.startSlide>0){if(settings.startSlide>=vars.totalSlides)settings.startSlide=vars.totalSlides-1;vars.currentSlide=settings.startSlide;}\nif($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');}\nif($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');}\nslider.css('background','url(\"'+vars.currentImage.attr('src')+'\") no-repeat');slider.append($('<div class=\"nivo-caption\"><p></p></div>').css({display:'none',opacity:settings.captionOpacity}));var processCaption=function(settings){var nivoCaption=$('.nivo-caption',slider);if(vars.currentImage.attr('title')!=''&&vars.currentImage.attr('title')!=undefined){var title=vars.currentImage.attr('title');if(title.substr(0,1)=='#')title=$(title).html();if(nivoCaption.css('display')=='block'){nivoCaption.find('p').fadeOut(settings.animSpeed,function(){$(this).html(title);$(this).fadeIn(settings.animSpeed);});}else{nivoCaption.find('p').html(title);}\nnivoCaption.fadeIn(settings.animSpeed);}else{nivoCaption.fadeOut(settings.animSpeed);}}\nprocessCaption(settings);var timer=0;if(!settings.manualAdvance&&kids.length>1){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}\nif(settings.directionNav){slider.append('<div class=\"nivo-directionNav\"><a class=\"nivo-prevNav\">'+settings.prevText+'</a><a class=\"nivo-nextNav\">'+settings.nextText+'</a></div>');if(settings.directionNavHide){$('.nivo-directionNav',slider).hide();slider.hover(function(){$('.nivo-directionNav',slider).show();},function(){$('.nivo-directionNav',slider).hide();});}\n$('a.nivo-prevNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');});$('a.nivo-nextNav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');});}\nif(settings.controlNav){var nivoControl=$('<div class=\"nivo-controlNav\"></div>');slider.append(nivoControl);for(var i=0;i<kids.length;i++){if(settings.controlNavThumbs){var child=kids.eq(i);if(!child.is('img')){child=child.find('img:first');}\nif(settings.controlNavThumbsFromRel){nivoControl.append('<a class=\"nivo-control\" rel=\"'+i+'\"><img src=\"'+child.attr('rel')+'\" alt=\"\" /></a>');}else{nivoControl.append('<a class=\"nivo-control\" rel=\"'+i+'\"><img src=\"'+child.attr('src').replace(settings.controlNavThumbsSearch,settings.controlNavThumbsReplace)+'\" alt=\"\" /></a>');}}else{nivoControl.append('<a class=\"nivo-control\" rel=\"'+i+'\">'+(i+1)+'</a>');}}\n$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');$('.nivo-controlNav a',slider).live('click',function(){if(vars.running)return false;if($(this).hasClass('active'))return false;clearInterval(timer);timer='';slider.css('background','url(\"'+vars.currentImage.attr('src')+'\") no-repeat');vars.currentSlide=$(this).attr('rel')-1;nivoRun(slider,kids,settings,'control');});}\nif(settings.keyboardNav){$(window).keypress(function(event){if(event.keyCode=='37'){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev');}\nif(event.keyCode=='39'){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next');}});}\nif(settings.pauseOnHover){slider.hover(function(){vars.paused=true;clearInterval(timer);timer='';},function(){vars.paused=false;if(timer==''&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}});}\nslider.bind('nivo:animFinished',function(){vars.running=false;$(kids).each(function(){if($(this).is('a')){$(this).css('display','none');}});if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block');}\nif(timer==''&&!vars.paused&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false);},settings.pauseTime);}\nsettings.afterChange.call(this);});var createSlices=function(slider,settings,vars){for(var i=0;i<settings.slices;i++){var sliceWidth=Math.round(slider.width()/settings.slices);if(i==settings.slices-1){slider.append($('<div class=\"nivo-slice\"></div>').css({left:(sliceWidth*i)+'px',width:(slider.width()-(sliceWidth*i))+'px',height:'0px',opacity:'0',background:'url(\"'+vars.currentImage.attr('src')+'\") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'}));}else{slider.append($('<div class=\"nivo-slice\"></div>').css({left:(sliceWidth*i)+'px',width:sliceWidth+'px',height:'0px',opacity:'0',background:'url(\"'+vars.currentImage.attr('src')+'\") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'}));}}}\nvar createBoxes=function(slider,settings,vars){var boxWidth=Math.round(slider.width()/settings.boxCols);var boxHeight=Math.round(slider.height()/settings.boxRows);for(var rows=0;rows<settings.boxRows;rows++){for(var cols=0;cols<settings.boxCols;cols++){if(cols==settings.boxCols-1){slider.append($('<div class=\"nivo-box\"></div>').css({opacity:0,left:(boxWidth*cols)+'px',top:(boxHeight*rows)+'px',width:(slider.width()-(boxWidth*cols))+'px',height:boxHeight+'px',background:'url(\"'+vars.currentImage.attr('src')+'\") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+'px -'+((boxHeight+(rows*boxHeight))-boxHeight)+'px'}));}else{slider.append($('<div class=\"nivo-box\"></div>').css({opacity:0,left:(boxWidth*cols)+'px',top:(boxHeight*rows)+'px',width:boxWidth+'px',height:boxHeight+'px',background:'url(\"'+vars.currentImage.attr('src')+'\") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+'px -'+((boxHeight+(rows*boxHeight))-boxHeight)+'px'}));}}}}\nvar nivoRun=function(slider,kids,settings,nudge){var vars=slider.data('nivo:vars');if(vars&&(vars.currentSlide==vars.totalSlides-1)){settings.lastSlide.call(this);}\nif((!vars||vars.stop)&&!nudge)return false;settings.beforeChange.call(this);if(!nudge){slider.css('background','url(\"'+vars.currentImage.attr('src')+'\") no-repeat');}else{if(nudge=='prev'){slider.css('background','url(\"'+vars.currentImage.attr('src')+'\") no-repeat');}\nif(nudge=='next'){slider.css('background','url(\"'+vars.currentImage.attr('src')+'\") no-repeat');}}\nvars.currentSlide++;if(vars.currentSlide==vars.totalSlides){vars.currentSlide=0;settings.slideshowEnd.call(this);}\nif(vars.currentSlide<0)vars.currentSlide=(vars.totalSlides-1);if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide]);}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first');}\nif(settings.controlNav){$('.nivo-controlNav a',slider).removeClass('active');$('.nivo-controlNav a:eq('+vars.currentSlide+')',slider).addClass('active');}\nprocessCaption(settings);$('.nivo-slice',slider).remove();$('.nivo-box',slider).remove();if(settings.effect=='random'){var anims=new Array('sliceDownRight','sliceDownLeft','sliceUpRight','sliceUpLeft','sliceUpDown','sliceUpDownLeft','fold','fade','boxRandom','boxRain','boxRainReverse','boxRainGrow','boxRainGrowReverse');vars.randAnim=anims[Math.floor(Math.random()*(anims.length+1))];if(vars.randAnim==undefined)vars.randAnim='fade';}\nif(settings.effect.indexOf(',')!=-1){var anims=settings.effect.split(',');vars.randAnim=anims[Math.floor(Math.random()*(anims.length))];if(vars.randAnim==undefined)vars.randAnim='fade';}\nvars.running=true;if(settings.effect=='sliceDown'||settings.effect=='sliceDownRight'||vars.randAnim=='sliceDownRight'||settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css({'top':'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}\ntimeBuff+=50;i++;});}\nelse if(settings.effect=='sliceUp'||settings.effect=='sliceUpRight'||vars.randAnim=='sliceUpRight'||settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);slice.css({'bottom':'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}\ntimeBuff+=50;i++;});}\nelse if(settings.effect=='sliceUpDown'||settings.effect=='sliceUpDownRight'||vars.randAnim=='sliceUpDown'||settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;var v=0;var slices=$('.nivo-slice',slider);if(settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft')slices=$('.nivo-slice',slider)._reverse();slices.each(function(){var slice=$(this);if(i==0){slice.css('top','0px');i++;}else{slice.css('bottom','0px');i=0;}\nif(v==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}\ntimeBuff+=50;v++;});}\nelse if(settings.effect=='fold'||vars.randAnim=='fold'){createSlices(slider,settings,vars);var timeBuff=0;var i=0;$('.nivo-slice',slider).each(function(){var slice=$(this);var origWidth=slice.width();slice.css({top:'0px',height:'100%',width:'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed);},(100+timeBuff));}\ntimeBuff+=50;i++;});}\nelse if(settings.effect=='fade'||vars.randAnim=='fade'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':slider.width()+'px'});firstSlice.animate({opacity:'1.0'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});}\nelse if(settings.effect=='slideInRight'||vars.randAnim=='slideInRight'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':'0px','opacity':'1'});firstSlice.animate({width:slider.width()+'px'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished');});}\nelse if(settings.effect=='slideInLeft'||vars.randAnim=='slideInLeft'){createSlices(slider,settings,vars);var firstSlice=$('.nivo-slice:first',slider);firstSlice.css({'height':'100%','width':'0px','opacity':'1','left':'','right':'0px'});firstSlice.animate({width:slider.width()+'px'},(settings.animSpeed*2),'',function(){firstSlice.css({'left':'0px','right':''});slider.trigger('nivo:animFinished');});}\nelse if(settings.effect=='boxRandom'||vars.randAnim=='boxRandom'){createBoxes(slider,settings,vars);var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var boxes=shuffle($('.nivo-box',slider));boxes.each(function(){var box=$(this);if(i==totalBoxes-1){setTimeout(function(){box.animate({opacity:'1'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished');});},(100+timeBuff));}else{setTimeout(function(){box.animate({opacity:'1'},settings.animSpeed);},(100+timeBuff));}\ntimeBuff+=20;i++;});}\nelse if(settings.effect=='boxRain'||vars.randAnim=='boxRain'||settings.effect=='boxRainReverse'||vars.randAnim=='boxRainReverse'||settings.effect=='boxRainGrow'||vars.randAnim=='boxRainGrow'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){createBoxes(slider,settings,vars);var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var rowIndex=0;var colIndex=0;var box2Darr=new Array();box2Darr[rowIndex]=new Array();var boxes=$('.nivo-box',slider);if(settings.effect=='boxRainReverse'||vars.randAnim=='boxRainReverse'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){boxes=$('.nivo-box',slider)._reverse();}\nboxes.each(function(){box2Darr[rowIndex][colIndex]=$(this);colIndex++;if(colIndex==settings.boxCols){rowIndex++;colIndex=0;box2Darr[rowIndex]=new Array();}});for(var cols=0;cols<(settings.boxCols*2);cols++){var prevCol=cols;for(var rows=0;rows<settings.boxRows;rows++){if(prevCol>=0&&prevCol<settings.boxCols){(function(row,col,time,i,totalBoxes){var box=$(box2Darr[row][col]);var w=box.width();var h=box.height();if(settings.effect=='boxRainGrow'||vars.randAnim=='boxRainGrow'||settings.effect=='boxRainGrowReverse'||vars.randAnim=='boxRainGrowReverse'){box.width(0).height(0);}\nif(i==totalBoxes-1){setTimeout(function(){box.animate({opacity:'1',width:w,height:h},settings.animSpeed/1.3,'',function(){slider.trigger('nivo:animFinished');});},(100+time));}else{setTimeout(function(){box.animate({opacity:'1',width:w,height:h},settings.animSpeed/1.3);},(100+time));}})(rows,prevCol,timeBuff,i,totalBoxes);i++;}\nprevCol--;}\ntimeBuff+=100;}}}\nvar shuffle=function(arr){for(var j,x,i=arr.length;i;j=parseInt(Math.random()*i),x=arr[--i],arr[i]=arr[j],arr[j]=x);return arr;}\nvar trace=function(msg){if(this.console&&typeof console.log!=\"undefined\")\nconsole.log(msg);}\nthis.stop=function(){if(!$(element).data('nivo:vars').stop){$(element).data('nivo:vars').stop=true;trace('Stop Slider');}}\nthis.start=function(){if($(element).data('nivo:vars').stop){$(element).data('nivo:vars').stop=false;trace('Start Slider');}}\nsettings.afterLoad.call(this);return this;};$.fn.nivoSlider=function(options){return this.each(function(key,value){var element=$(this);if(element.data('nivoslider'))return element.data('nivoslider');var nivoslider=new NivoSlider(this,options);element.data('nivoslider',nivoslider);});};$.fn.nivoSlider.defaults={effect:'random',slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:'.jpg',controlNavThumbsReplace:'_thumb.jpg',keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,prevText:'Prev',nextText:'Next',beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};$.fn._reverse=[].reverse;})(jQuery);";

