function parse_date(n){return Date.parse(n.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}function extract_relative_time(n){var i=function(n){return parseInt(n,10)},r=new Date,t=i((r.getTime()-n)/1e3);return t<1&&(t=0),{days:i(t/86400),hours:i(t/3600),minutes:i(t/60),seconds:i(t)}}function format_relative_time(n){return n.days>2?"Il y a "+n.days+" jours":n.hours>24?"Il y a 1 journ&eacute;e":n.hours>2?"Il y a "+n.hours+" heures":n.minutes>45?"Il y a 1 heure":n.minutes>2?"Il y a "+n.minutes+" minutes":n.seconds>1?"Il y a "+n.seconds+" secondes":"il y a quelques instants"}function InitFormFields(n){n.find(".file-input").each(function(){var n=$(this).find(".file");n.attr("data-msg-invalid",$(this).attr("data-msg-invalid")),n.val($(this).attr("data-placeholder"))}),n.find(".with-placeholder").each(function(){$(this).val()==""&&($(this).val($(this).attr("data-placeholder")),$(this).hasClass("password")&&($(this)[0].type="text"))}),n.find(".with-placeholder").focus(function(){($(this).val()==$(this).attr("data-placeholder")||$(this).hasClass("error-field"))&&($(this).val(""),$(this).removeClass("error-field"),$(this).hasClass("password")&&($(this)[0].type="password"))}),n.find(".with-label").focus(function(){$(this).hasClass("error-field")&&($(this).val(""),$(this).removeClass("error-field"),$(this).hasClass("password")&&($(this)[0].type="password"))}),n.find(".with-placeholder").blur(function(){$(this).val()==""&&($(this).val($(this).attr("data-placeholder")),$(this).hasClass("password")&&($(this)[0].type="text"))}),n.find(".required").each(function(){var n=$(this).parents(".input-holder").find("label");n.html(n.html()+" * ")})}function FormIsValid(n){var t=!0;return n.find(".required").each(function(){$(this).removeClass("error-field-required"),($(this).val()==""||$(this).val()==$(this).attr("data-placeholder")||$(this).val()==$(this).attr("data-msg-required"))&&(t=!1,$(this).addClass("error-field-required"))}),n.find(".valid-email").each(function(){var n=$(this).val();$(this).removeClass("error-field-invalid"),n!=""&&(n.indexOf("@")<0||n.indexOf(".")<0)&&(t=!1,$(this).addClass("error-field-invalid"))}),n.find(".data-matching").each(function(){$(this).removeClass("error-field-matching");var n="#"+$(this).attr("data-matching");$(this).val()!=""&&$(n)!=null&&$(n).val()!=$(this).val()&&(t=!1,$(this).addClass("error-field-matching"))}),n.find(".exceed-file-size").each(function(){t=!1,$(this).addClass("error-field-invalid"),$(this).val($(this).attr("data-msg-invalid"))}),n.find(".error-field-required").each(function(){$(this).addClass("error-field"),$(this).val($(this).attr("data-msg-required"))}),n.find(".error-field-invalid").each(function(){$(this).hasClass("error-field-required")||($(this).val($(this).attr("data-msg-invalid")),$(this).addClass("error-field"))}),n.find(".error-field-matching").each(function(){$(this).hasClass("error-field-required")||($(this).val($(this).attr("data-matching-msg")),$(this).addClass("error-field"))}),n.find(".with-label").each(function(){$(this).hasClass("error-field")&&$(this).hasClass("password")&&($(this)[0].type="text")}),t}function initElems(){var o,e,n,h,c,f,s,i,r,u,t;if($("footer .office:last").addClass("last"),$("header .center-wrapper:first").addClass("first"),$(".theme:last").addClass("last"),$(".sidebar-box:first").addClass("first"),$(".sidebar-box:nth-child(2n)").addClass("even"),$(".sidebar-box ul").each(function(){$(this).find("li:nth-child(2n)").addClass("even")}),$("table tr:nth-child(2n)").addClass("even-line"),$("#authors .author:last").addClass("last"),$("#partners-list li:nth-child(2n)").addClass("even"),$(".videos .video:nth-child(2n)").addClass("even"),$("#breadcrumbs a:last").addClass("last"),$(".p-Themes .item:nth-child(3n)").addClass("third"),$(".document:first").addClass("first"),$("a.btn").each(function(){var n=$(this).html();$(this).find("span").length||$(this).html("<span>"+n+"</span>")}),$(".clear").remove(),$(".fl-elems").each(function(){$(this).append('<span class="clear"></span>')}),$(".p-Home").length||$(".nav-section").each(function(){$(this).find(".section-infos").css("display")!="none"&&$(this).attr("id")!="section-last"&&(currentSection=parseInt($(this).attr("id").substring(8)))}),scanLinks(),$(".section-infos.active").length&&$(".section-infos.active").parent().find("h2 a").append('<span id="countdown"><span></span><span></span><span></span></span><div class="arrow-down"><div>'),$(".p-Home").length&&($("#countdown").remove(),$(".arrow-down").remove(),initHomeSlider(),initMenuAnimation()),$("#slider").length&&!$(".p-Home").length&&initHomeSlider(),($(".p-Themes").length||$(".p-Regions").length||$(".p-Region").length||$(".p-ActivityTypes").length||$(".p-ActivityType").length||$(".p-Theme").length||$(".error-page").length||$(".p-Temp").length)&&($("#countdown").remove(),$(".arrow-down").remove(),initMenuAnimation()),o=!1,$(".gallery-slider").length&&($(".gallery-slider-inside img:first").load(function(){o=!0,initGallerySliders()}),setTimeout(function(){o||initGallerySliders()},1e3)),$(".image-description").length&&toggleLegend(),$(".with-toc").length&&addTableOfContent(),$(".item").click(function(){console.log("click");var n=$(this).find("h3 a").attr("href");console.log(n),window.location=n}),$(".p-Home .slide").each(function(){$(this).find("a").length&&$(this).addClass("slide-with-link")}),$(".p-Home .slide").click(function(){$(this).find("a").length&&(window.location=$(this).find("a:first").attr("href"))}),changeSubMenu(),$("#twitter-feed").length&&window.VivreenVille_tweets){for(e=$('<ul class="tweet_list">'),n=0;n<2;n++)h='<span class="tweet_time"><a href="'+VivreenVille_tweets[n].url+'">'+format_relative_time(extract_relative_time(parse_date(VivreenVille_tweets[n].creationDate)))+"</a></span>",c='<span class="tweet_text">'+VivreenVille_tweets[n].content+"</span>",e.append('<li><span class="tweet">'+c+h+"</span></li>");e.children("li:first").addClass("tweet_first").end().children("li:odd").addClass("tweet_even").end().children("li:even").addClass("tweet_odd"),$("#twitter-feed").empty().append(e)}f=window.location.toString(),$(".member-trigger").length&&f.indexOf("#")!=-1&&(s=f.substring(f.indexOf("#")),$(s).find(".member-file").slideToggle(),$(s).find(".member-trigger").toggleClass("open")),$(".member-trigger").click(function(){return $(this).parent().next(".member-file").slideToggle(),$(this).toggleClass("open"),!1}),$("#newsletter-form").length&&(i=$("#newsletter-form"),InitFormFields(i),i.submit(function(){return FormIsValid(i)?!0:!1})),$("#contact-form").length&&(r=$("#contact-form"),InitFormFields(r),r.submit(function(){return FormIsValid(r)?!0:!1})),addIconExternalLinks(),$(".fancybox").fancybox({type:"iframe"}),$("#become-member-form").length&&(u=$("#become-member-form"),t=!1,InitFormFields(u),$("#member-types").change(function(){$(".member-type-2 input, .member-type-3 input").each(function(){$(this).is(":checked")&&!t&&(t=!0,$("#for-organisations").show(),$("#for-organisations input").addClass("required"))}),$(".member-type-1 input").each(function(){$(this).is(":checked")&&t&&(t=!1,$("#for-organisations").hide(),$("#for-organisations input").removeClass("required"))})}),u.submit(function(){return FormIsValid(u)?!0:!1})),$("a[href$='pdf']").each(function(){var i=$(this).attr("href"),t="_gaq.push(['_trackEvent', 'PDF', 'Download', '"+i+"']);";$(this).attr("onClick",t)}),$(window).scroll(function(){addScrollEvents()}),resizeElems(),$(window).resize(function(){trueResize=!0,resizeElems()}),$("img").each(function(){$(this).height()>0?(imagesLoaded=!0,resizeElems()):$(this).load(function(){imagesLoaded=!0,resizeElems()})}),setTimeout(function(){imagesLoaded=!0,resizeElems()},500)}function resizeElems(){if(windowWidth=$(window).width(),windowHeight=$(window).height(),$("#slider").length&&calculateSliderHeight(),$(".bottom-block").length&&equalizeBottomBlocks(),placeSubNav(),$(".p-Temp").length&&$("#middle").css("min-height",windowHeight),$("#slider").length&&initHomeSlider(),$(".item-identification").length&&$(".item-identification").each(function(){var n=$(this).parent().height();$(this).css("width",n+20)}),$("#popular-themes").length&&calculateThemesWidth(),$("body .video").length&&imagesLoaded&&calculateVideoHeight(),$(".gallery-slider").length&&trueResize&&initGallerySliders(),$("#number-navigation").length){var n=0;$("#left-side-nav").length&&(n=n+$("#left-side-nav").width()),$("#right-side-nav").length&&(n=n+$("#right-side-nav").width()),$("#number-navigation").css("width",$("#page-navigation").width()-n)}$(".with-toc").length&&positionToc(),$("#table-of-content").css("height",$("#table-of-content").parent().height()),$(".image-description h4").css("cursor")!=="pointer"||plusAdded||($(".image-description h4").append('<span class="open-legend">+</span>'),plusAdded=!0),$(".image-description h4").css("cursor")!=="pointer"&&($(".open-legend").remove(),plusAdded=!1),trueResize=!1}function resetOnResize(){$("#table-of-content-hidden").css("position","static;"),$("#table-of-content").css("height",$("#table-of-content").parent().height()),$("#table-of-content").css("margin-bottom")!=="20px"&&$("#table-of-content-hidden").css("position","absolute")}function addScrollEvents(){scrollTop=$(window).scrollTop(),$(".with-toc").length&&checkTableOfContentPosition()}function initHomeSlider(){var n=$("#slider-navigation").html();$("#slider-navigation").html(n),$("#slider").cycle({fx:"scrollHorz",timeout:6e3,pager:"#slider-navigation",pagerAnchorBuilder:function(n){return"#slider-navigation a:eq("+n+")"}}),$("#slider").hover(function(){$("#slider").cycle("pause")},function(){$("#slider").cycle("resume")})}function initGallerySliders(){$(".gallery-slider").each(function(){var t=$(this).find(".gallery-slider-navigation").html(),n=$(this).find(".gallery-slider-navigation").attr("id");$(this).find(".gallery-slider-inside").css("height",$(this).find(".gallery-slider-inside img:first()").height()),$(this).find(".gallery-slider-inside").cycle("destroy"),$(this).find(".gallery-slider-navigation").html(t),$(this).find(".gallery-slider-inside").cycle({fx:"scrollHorz",timeout:0,pager:"#"+n,pagerAnchorBuilder:function(t){return"#"+n+" a:eq("+t+")"}})})}function calculateSliderHeight(){var n=0,t=77;$(".p-Home").length||(t=0),$(".slide").each(function(){$(this).css("display")!="none"&&(n=$(this).find("iframe").length?300:$(this).find("img").height(),$(this).find(".slide-title").length&&(n+=$(this).find(".slide-title").height()),n+=$(this).find(".slide-bottom").height(),n+=t,windowWidth>=480&&$(".p-Home").length&&(n+=-80))}),n+=15,$("#slider").css("height",n),$("#slider").length&&!$(".p-Home").length&&$(".slide-image").css("height",n-$(".slide-bottom").height()-15)}function equalizeBottomBlocks(){if($("#subscribe-block, #member-block, #twitter-block").css("height","auto"),windowWidth>=768){var n=Math.max($("#subscribe-block").height(),$("#member-block").height(),$("#twitter-block").height());$("#subscribe-block, #member-block, #twitter-block").height(n)}}function initMenuAnimation(){countdown=1,$(".arrow-down").length&&$(".arrow-down").animate({top:30},300,function(){$(this).remove()}),$(".nav-section:nth-child("+currentSection+") h2 a").append('<span id="countdown"></span>'),$(".nav-section:nth-child("+currentSection+") h2 a").append('<div class="arrow-down"></span>'),$(".arrow-down").css("top",30),$(".arrow-down").animate({top:50},300),$(".nav-section:nth-child("+currentSection+") .section-infos").show(),$("#countdown").append("<span></span>"),startInterval(),$("#nav-wrapper, .nav-section").hover(function(){clearInterval(countdownInterval)},function(){menuIsClicked||startInterval()})}function startInterval(){clearInterval(countdownInterval),countdownInterval=setInterval(function(){$("#countdown").append("<span></span>"),countdown++,countdown==4&&(clearInterval(countdownInterval),$("#countdown").remove(),$current=$(".nav-section:nth-child("+currentSection+")"),changeSubMenuAnimation(!0),currentSection++,currentSection>3&&(currentSection=1))},2e3)}function placeSubNav(){if($(".section-infos").length){var n=$(".nav-section:nth-child("+currentSection+") .section-infos").height();$("header").css("padding-bottom",n),$(".section-infos").css("top",$("#nav").offset().top+$("#nav").height()),$(".section-infos-wrapper").css("margin-left",$(".center-wrapper").offset().left)}}function changeSubMenu(){$(".section-link").off("click"),$(".section-link").click(function(){return $(this).hasClass("active")||(menuIsClicked=!0,$(".section-link").removeClass("active"),$(this).addClass("active"),$current=$(".nav-section:nth-child("+currentSection+")"),changeSubMenuAnimation(!1),currentSection=parseInt($(this).parent().parent().attr("id").substring(8)),$(".arrow-down").animate({top:30},300,function(){$(this).remove()}),$(".nav-section:nth-child("+currentSection+") h2 a").append('<div class="arrow-down"></div>'),$(".arrow-down").css("top",30),$(".arrow-down").animate({top:50},300)),!1})}function changeSubMenuAnimation(n){var t=500;$current.find(".section-infos-wrapper").fadeOut(t),$(".section-link").removeClass("active"),setTimeout(function(){$current.find(".section-infos").hide(),$(".nav-section:nth-child("+currentSection+") .section-link").addClass("active"),$(".nav-section:nth-child("+currentSection+") .section-infos").show(),$(".nav-section:nth-child("+currentSection+") .section-infos-wrapper").hide(),$(".nav-section:nth-child("+currentSection+") .section-infos-wrapper").fadeIn(t)},t/2),setTimeout(function(){$("header").css("padding-bottom",$(".nav-section:nth-child("+currentSection+") .section-infos").height()),n?initMenuAnimation():($("#countdown").remove(),clearInterval(countdownInterval),$(".nav-section:nth-child("+currentSection+") h2 a").append('<span id="countdown"><span></span><span></span><span></span></span>'))},t)}function calculateThemesWidth(){if($(".theme").css("float")==="left"){var n=($("#themes-wrapper").width()-(parseInt($("#popular-themes .theme").css("margin-right"))*4+20))/5;$(".theme").css("width",n)}else $(".theme").css("width","100%")}function addIconExternalLinks(){$("a:not(#twitter-block a)").each(function(){this.hostname==window.location.hostname||$(this).hasClass("no-ext")||$(this).hasClass("fancybox")||$(this).hasClass("no-border")||typeof $(this).attr("href")=="undefined"||$(this).attr("href").indexOf("mailto")===0||$(this).attr("href").indexOf("tel")===0||$(this).html().indexOf("<img")!==-1||$(this).addClass("ext-lnk")})}function calculateVideoHeight(){if($("body .video").css("height","auto"),windowWidth>=992){var n=0;$("body .video").each(function(){var t=$(this).height();t>n&&(n=t)}),$("body .video").css("height",n)}}function addTableOfContent(){var n='<div id="table-of-content"><h2><a href="#" id="toc-toggle"><span>'+$("body").attr("data-toc")+'</span><i class="fa fa-bars"></i></a></h2><div id="table-of-content-hidden"><h2>'+$("body").attr("data-toc")+"</h2>"+findTitles($("#page-main"))+"</div></div>";$("#middle").prepend(n),tocHeight=$("#table-of-content-hidden").height(),openCloseTableOfContent(),clickToc()}function findTitles(n){for(var t=n.html(),f="",h="",e=1,i,r;t.length>0&&e<100;){if(i=t.indexOf("<h"),r=t.indexOf("</h"),i===-1)f+=t,t="";else{var c=t.substring(i+2,i+3),u="",s=t.substring(i+4,r).replace(/(<([^>]+)>)/ig,""),o=convertToUrlName(s)+"-"+e;u=t.substring(0,r+5),t=t.substring(r+5),f+=u.substring(0,i+3)+' id="'+o+'"'+u.substring(i+3),h+='<a href="#'+o+'" class="hierarchy-'+c+'">'+s+"</a>"}e++}return n.html(f),h}function convertToUrlName(n){return n.toLowerCase().replace(/[^\w ]+/g,"").replace(/ +/g,"-")}function openCloseTableOfContent(){var n=$("#table-of-content-hidden");$("#table-of-content h2 a").off("click"),$("#table-of-content h2 a").click(function(){return $("#table-of-content").css("margin-bottom")!=="20px"&&(n.animate({left:parseInt(n.css("left"),10)==39?-(n.width()+50):39},300),n.parent().animate({width:parseInt(n.parent().width(),10)==40?500:40},300)),!1})}function checkTableOfContentPosition(){var n=$("#table-of-content");n.css("margin-bottom")!=="20px"&&windowHeight>tocHeight+20?scrollTop>=$("#page-main").offset().top&&scrollTop<=$("#page-main").offset().top+$("#page-main").height()-150?n.css("position")!=="fixed"&&n.css({position:"fixed",top:80}):scrollTop>$("#page-main").offset().top+$("#page-main").height()-200?n.css("position")==="fixed"&&n.css({position:"absolute",top:$("#middle .center-wrapper").height()-$("#toc-toggle span").width()+10}):n.css("position")==="fixed"&&n.css({position:"absolute",top:32}):windowHeight<tocHeight+20?n.css({position:"absolute",top:32}):n.css("position","static;")}function clickToc(){$("#table-of-content-hidden a").off("click"),$("#table-of-content-hidden a").click(function(){var n=$($(this).attr("href")).offset().top;return $("#table-of-content h2 a").trigger("click"),setTimeout(function(){scrollToAnimated(n)},300),!1})}function scrollToAnimated(n){$("body, html").animate({scrollTop:n-100},300)}function positionToc(){var n=$("#table-of-content");n.css("margin-bottom")!=="20px"&&n.css("left",$("#page-main").offset().left-40)}function toggleLegend(){$(".image-description h4").off("click"),$(".image-description").each(function(){$(this).find("p, ul, span").wrapAll('<div class="legend-content"></div>')}),$(".image-description h4").click(function(){$(this).css("cursor")==="pointer"&&($(this).parent().find(".legend-content").slideToggle(300),$(this).find(".open-legend").html()==="+"?$(this).find(".open-legend").html("-"):$(this).find(".open-legend").html("+"))})}function scanLinks(){$("iframe, script").each(function(){var n=$(this).attr("src");n!=null&&n.indexOf("http")!==-1&&n.indexOf("https")===-1&&$(this).attr("src",n.substring(5))}),$(".video-with-fancybox a").each(function(){var n=$(this).attr("data-fancybox-href");n!=null&&n.indexOf("http")!==-1&&n.indexOf("https")===-1&&$(this).attr("data-fancybox-href",n.substring(5))})}window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function vt(n,t){return l(a.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function p(n,t){return!!~(""+n).indexOf(t)}function rt(n,t){for(var r in n)if(c[n[r]]!==i)return t=="pfx"?n[r]:!0;return!1}function pt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function e(n,t,i){var r=n.charAt(0).toUpperCase()+n.substr(1),u=(n+" "+v.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?rt(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),pt(u,t,i))}function at(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)b[i[r]]=i[r]in f;return b.list&&(b.list=!!t.createElement("datalist")&&!!n.HTMLDataListElement),b}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),u.inputtypes=function(n){for(var e=0,r,u,o,h=n.length;e<h;e++)f.setAttribute("type",u=n[e]),r=f.type!=="text",r&&(f.value=d,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&f.style.WebkitAppearance!==i?(s.appendChild(f),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,s.removeChild(f)):/^(search|tel)$/.test(u)||(/^(url|email)$/.test(u)?r=f.checkValidity&&f.checkValidity()===!1:/^color$/.test(u)?(s.appendChild(f),s.offsetWidth,r=f.value!=d,s.removeChild(f)):r=f.value!=d)),et[n[e]]=!!r;return et}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var wt="2.5.3",u={},yt=!0,s=t.documentElement,o="modernizr",ct=t.createElement(o),c=ct.style,f=t.createElement("input"),d=":)",ot={}.toString,a=" -webkit- -moz- -o- -ms- ".split(" "),st="Webkit Moz O ms",v=st.split(" "),ht=st.toLowerCase().split(" "),w={svg:"http://www.w3.org/2000/svg"},r={},et={},b={},nt=[],g=nt.slice,k,ft=function(n,i,r,u){var l,a,c,f=t.createElement("div"),h=t.body,e=h?h:t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:o+(r+1),f.appendChild(c);return l=["&#173;","<style>",n,"</style>"].join(""),f.id=o,(h?f:e).innerHTML+=l,e.appendChild(f),h||(e.style.background="",s.appendChild(e)),a=i(f,n),h?f.parentNode.removeChild(f):e.parentNode.removeChild(e),!!a},ut=function(){function r(r,u){u=u||t.createElement(n[r]||"div"),r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),it={}.hasOwnProperty,tt,lt,y;tt=!h(it,"undefined")&&!h(it.call,"undefined")?function(n,t){return it.call(n,t)}:function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,r,i;if(typeof t!="function")throw new TypeError;return r=g.call(arguments,1),i=function(){var f,e,u;return this instanceof i?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,r.concat(g.call(arguments))),Object(u)===u?u:e):t.apply(n,r.concat(g.call(arguments)))},i}),lt=function(i,r){var e=i.join(""),f=r.length;ft(e,function(i,r){for(var o=t.styleSheets[t.styleSheets.length-1],s=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",h=i.childNodes,e={};f--;)e[h[f].id]=h[f];u.touch="ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch||(e.touch&&e.touch.offsetTop)===9,u.csstransforms3d=(e.csstransforms3d&&e.csstransforms3d.offsetLeft)===9&&e.csstransforms3d.offsetHeight===3,u.generatedcontent=(e.generatedcontent&&e.generatedcontent.offsetHeight)>=1,u.fontface=/src/i.test(s)&&s.indexOf(r.split(" ")[0])===0},f,r)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",a.join("touch-enabled),("),o,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",a.join("transform-3d),("),o,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join(""),['#generatedcontent:after{content:"',d,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]),r.flexbox=function(){return e("flexOrder")},r["flexbox-legacy"]=function(){return e("boxDirection")},r.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")},r.canvastext=function(){return!!u.canvas&&!!h(t.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){try{var u=t.createElement("canvas"),r;r=!(!n.WebGLRenderingContext||!u.getContext("experimental-webgl")&&!u.getContext("webgl")),u=i}catch(f){r=!1}return r},r.touch=function(){return u.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!n.postMessage},r.websqldatabase=function(){return!!n.openDatabase},r.indexedDB=function(){return!!e("indexedDB",n)},r.hashchange=function(){return ut("hashchange",n)&&(t.documentMode===i||t.documentMode>7)},r.history=function(){return!!n.history&&!!history.pushState},r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n},r.websockets=function(){for(var t=-1,i=v.length;++t<i;)if(n[v[t]+"WebSocket"])return!0;return"WebSocket"in n},r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),p(c.backgroundColor,"rgba")},r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),p(c.backgroundColor,"rgba")||p(c.backgroundColor,"hsla")},r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)},r.backgroundsize=function(){return e("backgroundSize")},r.borderimage=function(){return e("borderImage")},r.borderradius=function(){return e("borderRadius")},r.boxshadow=function(){return e("boxShadow")},r.textshadow=function(){return t.createElement("div").style.textShadow===""},r.opacity=function(){return vt("opacity:.55"),/^0.55$/.test(c.opacity)},r.cssanimations=function(){return e("animationName")},r.csscolumns=function(){return e("columnCount")},r.cssgradients=function(){var n="background-image:",i="gradient(linear,left top,right bottom,from(#9f9),to(white));",t="linear-gradient(left top,#9f9, white);";return l((n+"-webkit- ".split(" ").join(i+n)+a.join(t+n)).slice(0,-n.length)),p(c.backgroundImage,"gradient")},r.cssreflections=function(){return e("boxReflect")},r.csstransforms=function(){return!!e("transform")},r.csstransforms3d=function(){var n=!!e("perspective");return n&&"webkitPerspective"in s.style&&(n=u.csstransforms3d),n},r.csstransitions=function(){return e("transition")},r.fontface=function(){return u.fontface},r.generatedcontent=function(){return u.generatedcontent},r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}},r.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(n){return!1}},r.webworkers=function(){return!!n.Worker},r.applicationcache=function(){return!!n.applicationCache},r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(w.svg,"svg").createSVGRect},r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==w.svg},r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(ot.call(t.createElementNS(w.svg,"animate")))},r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ot.call(t.createElementNS(w.svg,"clipPath")))};for(y in r)tt(r,y)&&(k=y.toLowerCase(),u[k]=r[y](),nt.push((u[k]?"":"no-")+k));return u.input||at(),l(""),ct=f=null,function(n,t){function c(n,t){var r=n.createElement("p"),i=n.getElementsByTagName("head")[0]||n.documentElement;return r.innerHTML="x<style>"+t+"</style>",i.insertBefore(r.lastChild,i.firstChild)}function s(){var n=i.elements;return typeof n=="string"?n.split(" "):n}function o(n){var r={},u=n.createElement,f=n.createDocumentFragment,t=f();n.createElement=function(n){var f=(r[n]||(r[n]=u(n))).cloneNode();return i.shivMethods&&f.canHaveChildren&&!h.test(n)?t.appendChild(f):f},n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+s().join().replace(/\w+/g,function(n){return r[n]=u(n),t.createElement(n),'c("'+n+'")'})+");return n}")(i,t)}function e(n){var t;return n.documentShived?n:(i.shivCSS&&!u&&(t=!!c(n,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(t=!o(n)),t&&(n.documentShived=t),n)}var r=n.html5||{},h=/^<|^(?:button|form|map|select|textarea)$/i,u,f,i;(function(){var n=t.createElement("a");n.innerHTML="<xyz></xyz>",u="hidden"in n,f=n.childNodes.length==1||function(){try{t.createElement("a")}catch(i){return!0}var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()})(),i={elements:r.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:r.shivCSS!==!1,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:e},n.html5=i,e(t)}(this,t),u._version=wt,u._prefixes=a,u._domPrefixes=ht,u._cssomPrefixes=v,u.hasEvent=ut,u.testProp=function(n){return rt([n])},u.testAllProps=e,u.testStyles=ft,s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(yt?" js "+nt.join(" "):""),u}(this,this.document),function(n,t,i){function c(n){return p.call(n)=="[object Function]"}function v(n){return typeof n=="string"}function h(){}function k(n){return!n||n=="loaded"||n=="complete"||n=="uninitialized"}function f(){var n=a.shift();l=1,n?n.t?s(function(){(n.t=="c"?r.injectCss:r.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):l=0}function et(n,i,o,h,c,v,y){function d(t){if(!g&&k(p.readyState)&&(b.r=g=1,!l&&f(),p.onload=p.onreadystatechange=null,t)){n!="img"&&s(function(){rt.removeChild(p)},50);for(var r in u[i])u[i].hasOwnProperty(r)&&u[i][r].onload()}}var y=y||r.errorTimeout,p={},g=0,w=0,b={t:o,s:i,e:c,a:v,x:y};u[i]===1&&(w=1,u[i]=[],p=t.createElement(n)),n=="object"?p.data=i:(p.src=i,p.type=n),p.width=p.height="0",p.onerror=p.onload=p.onreadystatechange=function(){d.call(this,w)},a.splice(h,0,b),n!="img"&&(w||u[i]===2?(rt.insertBefore(p,nt?null:e),s(d,y)):u[i].push(p))}function ft(n,t,i,r,u){return l=0,t=t||"j",v(n)?et(t=="c"?ut:g,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),a.length==1&&f()),this}function it(){var n=r;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],p={}.toString,a=[],l=0,tt="MozAppearance"in o.style,nt=tt&&!!t.createRange().compareNode,rt=nt?o:e.parentNode,o=n.opera&&p.call(n.opera)=="[object Opera]",o=!!t.attachEvent&&!o,g=tt?"object":o?"script":"img",ut=o?"script":g,w=Array.isArray||function(n){return p.call(n)=="[object Array]"},y=[],u={},b={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},d,r;r=function(n){function a(n){for(var n=n.split("!"),e=y.length,i=n.pop(),f=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<f;t++)r=n[t].split("="),(u=b[r.shift()])&&(i=u(i,r));for(t=0;t<e;t++)i=y[t](i);return i}function s(n,t,r,e,o){var s=a(n),h=s.autoCallback;s.url.split(".").pop().split("?").shift(),s.bypass||(t&&(t=c(t)?t:t[n]||t[e]||t[n.split("/").pop().split("?")[0]]||f),s.instead?s.instead(n,t,r,e,o):(u[s.url]?s.noexec=!0:u[s.url]=1,r.load(s.url,s.forceCSS||!s.forceJS&&"css"==s.url.split(".").pop().split("?").shift()?"c":i,s.noexec,s.attrs,s.timeout),(c(t)||c(h))&&r.load(function(){it(),t&&t(s.origUrl,o,e),h&&h(s.origUrl,o,e),u[s.url]=2})))}function l(n,t){function l(n,f){if(n){if(v(n))f||(i=function(){var n=[].slice.call(arguments);e.apply(this,n),u()}),s(n,i,t,0,o);else if(Object(n)===n)for(r in a=function(){var i=0,t;for(t in n)n.hasOwnProperty(t)&&i++;return i}(),n)n.hasOwnProperty(r)&&(!f&&!--a&&(c(i)?i=function(){var n=[].slice.call(arguments);e.apply(this,n),u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t),u()}}(e[r])),s(n[r],i,t,r,o))}else!f&&u()}var o=!!n.test,f=n.load||n.both,i=n.callback||h,e=i,u=n.complete||h,a,r;l(o?n.yep:n.nope,!!f),f&&l(f)}var e,t,o=this.yepnope.loader;if(v(n))s(n,0,o,0);else if(w(n))for(e=0;e<n.length;e++)t=n[e],v(t)?s(t,0,o,0):w(t)?r(t):Object(t)===t&&l(t,o);else Object(n)===n&&l(n,o)},r.addPrefix=function(n,t){b[n]=t},r.addFilter=function(n){y.push(n)},r.errorTimeout=1e4,t.readyState==null&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",d=function(){t.removeEventListener("DOMContentLoaded",d,0),t.readyState="complete"},0)),n.yepnope=it(),n.yepnope.executeStack=f,n.yepnope.injectJs=function(n,i,u,o,c,l){var a=t.createElement("script"),v,y,o=o||r.errorTimeout;a.src=n;for(y in u)a.setAttribute(y,u[y]);i=l?f:i||h,a.onreadystatechange=a.onload=function(){!v&&k(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)},s(function(){v||(v=1,i(1))},o),c?a.onload():e.parentNode.insertBefore(a,e)},n.yepnope.injectCss=function(n,i,r,u,o,c){var u=t.createElement("link"),l,i=c?f:i||h;u.href=n,u.rel="stylesheet",u.type="text/css";for(l in r)u.setAttribute(l,r[l]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(n,t){function r(t){n.fn.cycle.debug&&i(t)}function i(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function f(t,i,r){var u=n(t).data("cycle.opts"),f=!!t.cyclePause;f&&u.paused?u.paused(t,u,i,r):!f&&u.resumed&&u.resumed(t,u,i,r)}function l(r,e,o){function c(t,r,f){if(!t&&r===!0){var e=n(f).data("cycle.opts");if(!e)return i("options not found, can not resume"),!1;f.cycleTimeout&&(clearTimeout(f.cycleTimeout),f.cycleTimeout=0),u(e.elements,e,1,!e.backwards)}}var s,h;if(r.cycleStop==t&&(r.cycleStop=0),(e===t||e===null)&&(e={}),e.constructor==String){switch(e){case"destroy":case"stop":return(s=n(r).data("cycle.opts"),!s)?!1:(r.cycleStop++,r.cycleTimeout&&clearTimeout(r.cycleTimeout),r.cycleTimeout=0,s.elements&&n(s.elements).stop(),n(r).removeData("cycle.opts"),e=="destroy"&&a(r,s),!1);case"toggle":return r.cyclePause=r.cyclePause===1?0:1,c(r.cyclePause,o,r),f(r),!1;case"pause":return r.cyclePause=1,f(r),!1;case"resume":return r.cyclePause=0,c(!1,o,r),f(r),!1;case"prev":case"next":return(s=n(r).data("cycle.opts"),!s)?(i('options not found, "prev/next" ignored'),!1):(n.fn.cycle[e](s),!1);default:e={fx:e}}return e}return e.constructor==Number?(h=e,e=n(r).data("cycle.opts"),!e)?(i("options not found, can not advance slide"),!1):h<0||h>=e.elements.length?(i("invalid slide index: "+h),!1):(e.nextSlide=h,r.cycleTimeout&&(clearTimeout(r.cycleTimeout),r.cycleTimeout=0),typeof o=="string"&&(e.oneTimeFx=o),u(e.elements,e,1,h>=e.currSlide),!1):e}function h(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function a(t,i){i.next&&n(i.next).unbind(i.prevNextEvent),i.prev&&n(i.prev).unbind(i.prevNextEvent),(i.pager||i.pagerAnchorBuilder)&&n.each(i.pagerAnchors||[],function(){this.unbind().remove()}),i.pagerAnchors=null,n(t).unbind("mouseenter.cycle mouseleave.cycle"),i.destroy&&i.destroy(i)}function b(r,o,c,l,a){var at,p=n.extend({},n.fn.cycle.defaults,l||{},n.metadata?r.metadata():n.meta?r.data():{}),yt=n.isFunction(r.data)?r.data(p.metaAttr):null,rt,ot,it,b,vt,nt,g,st,lt,ct,pt,ht,d;if(yt&&(p=n.extend(p,yt)),p.autostop&&(p.countdown=p.autostopCount||c.length),rt=r[0],r.data("cycle.opts",p),p.$cont=r,p.stopCount=rt.cycleStop,p.elements=c,p.before=p.before?[p.before]:[],p.after=p.after?[p.after]:[],!n.support.opacity&&p.cleartype&&p.after.push(function(){h(this,p)}),p.continuous&&p.after.push(function(){u(c,p,0,!p.backwards)}),w(p),n.support.opacity||!p.cleartype||p.cleartypeNoBg||s(o),r.css("position")=="static"&&r.css("position","relative"),p.width&&r.width(p.width),p.height&&p.height!="auto"&&r.height(p.height),p.startingSlide!=t?(p.startingSlide=parseInt(p.startingSlide,10),p.startingSlide>=c.length||p.startSlide<0?p.startingSlide=0:at=!0):p.startingSlide=p.backwards?c.length-1:0,p.random){for(p.randomMap=[],ot=0;ot<c.length;ot++)p.randomMap.push(ot);if(p.randomMap.sort(function(){return Math.random()-.5}),at)for(it=0;it<c.length;it++)p.startingSlide==p.randomMap[it]&&(p.randomIndex=it);else p.randomIndex=1,p.startingSlide=p.randomMap[1]}else p.startingSlide>=c.length&&(p.startingSlide=0);if(p.currSlide=p.startingSlide||0,b=p.startingSlide,o.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=p.backwards?b?t<=b?c.length+(t-b):b-t:c.length-t:b?t>=b?c.length-(t-b):b-t:c.length-t,n(this).css("z-index",i)}),n(c[b]).css("opacity",1).show(),h(c[b],p),p.fit&&(p.aspect?o.each(function(){var t=n(this),i=p.aspect===!0?t.width()/t.height():p.aspect;p.width&&t.width()!=p.width&&(t.width(p.width),t.height(p.width/i)),p.height&&t.height()<p.height&&(t.height(p.height),t.width(p.height*i))}):(p.width&&o.width(p.width),p.height&&p.height!="auto"&&o.height(p.height))),p.center&&(!p.fit||p.aspect)&&o.each(function(){var t=n(this);t.css({"margin-left":p.width?(p.width-t.width())/2+"px":0,"margin-top":p.height?(p.height-t.height())/2+"px":0})}),!p.center||p.fit||p.slideResize||o.each(function(){var t=n(this);t.css({"margin-left":p.width?(p.width-t.width())/2+"px":0,"margin-top":p.height?(p.height-t.height())/2+"px":0})}),vt=p.containerResize&&!r.innerHeight(),vt){for(nt=0,g=0,st=0;st<c.length;st++){var tt=n(c[st]),et=tt[0],ft=tt.outerWidth(),ut=tt.outerHeight();ft||(ft=et.offsetWidth||et.width||tt.attr("width")),ut||(ut=et.offsetHeight||et.height||tt.attr("height")),nt=ft>nt?ft:nt,g=ut>g?ut:g}nt>0&&g>0&&r.css({width:nt+"px",height:g+"px"})}if((lt=!1,p.pause&&r.bind("mouseenter.cycle",function(){lt=!0,this.cyclePause++,f(rt,!0)}).bind("mouseleave.cycle",function(){lt&&this.cyclePause--,f(rt,!0)}),y(p)===!1)||(ct=!1,l.requeueAttempts=l.requeueAttempts||0,o.each(function(){var t=n(this);if(this.cycleH=p.fit&&p.height?p.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=p.fit&&p.width?p.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")){var f=n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,e=n.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,r=n.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,u=this.cycleH==0&&this.cycleW==0&&!this.complete;if(f||e||r||u){if(a.s&&p.requeueOnImageNotLoaded&&++l.requeueAttempts<100)return i(l.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(a.s,a.c).cycle(l)},p.requeueTimeout),ct=!0,!1;i("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),ct))return!1;if(p.cssBefore=p.cssBefore||{},p.cssAfter=p.cssAfter||{},p.cssFirst=p.cssFirst||{},p.animIn=p.animIn||{},p.animOut=p.animOut||{},o.not(":eq("+b+")").css(p.cssBefore),n(o[b]).css(p.cssFirst),p.timeout)for(p.timeout=parseInt(p.timeout,10),p.speed.constructor==String&&(p.speed=n.fx.speeds[p.speed]||parseInt(p.speed,10)),p.sync||(p.speed=p.speed/2),pt=p.fx=="none"?0:p.fx=="shuffle"?500:250;p.timeout-p.speed<pt;)p.timeout+=p.speed;if(p.easing&&(p.easeIn=p.easeOut=p.easing),p.speedIn||(p.speedIn=p.speed),p.speedOut||(p.speedOut=p.speed),p.slideCount=c.length,p.currSlide=p.lastSlide=b,p.random?(++p.randomIndex==c.length&&(p.randomIndex=0),p.nextSlide=p.randomMap[p.randomIndex]):p.nextSlide=p.backwards?p.startingSlide==0?c.length-1:p.startingSlide-1:p.startingSlide>=c.length-1?0:p.startingSlide+1,!p.multiFx)if(ht=n.fn.cycle.transitions[p.fx],n.isFunction(ht))ht(r,o,p);else if(p.fx!="custom"&&!p.multiFx)return i("unknown transition: "+p.fx,"; slideshow terminating"),!1;return d=o[b],p.skipInitializationCallbacks||(p.before.length&&p.before[0].apply(d,[d,d,p,!0]),p.after.length&&p.after[0].apply(d,[d,d,p,!0])),p.next&&n(p.next).bind(p.prevNextEvent,function(){return e(p,1)}),p.prev&&n(p.prev).bind(p.prevNextEvent,function(){return e(p,0)}),(p.pager||p.pagerAnchorBuilder)&&v(c,p),k(p,c),p}function w(t){t.original={before:[],after:[]},t.original.cssBefore=n.extend({},t.cssBefore),t.original.cssAfter=n.extend({},t.cssAfter),t.original.animIn=n.extend({},t.animIn),t.original.animOut=n.extend({},t.animOut),n.each(t.before,function(){t.original.before.push(this)}),n.each(t.after,function(){t.original.after.push(this)})}function y(t){var u,e,f=n.fn.cycle.transitions,o,h,s;if(t.fx.indexOf(",")>0){for(t.multiFx=!0,t.fxs=t.fx.replace(/\s*/g,"").split(","),u=0;u<t.fxs.length;u++)o=t.fxs[u],e=f[o],e&&f.hasOwnProperty(o)&&n.isFunction(e)||(i("discarding unknown transition: ",o),t.fxs.splice(u,1),u--);if(!t.fxs.length)return i("No valid transitions named; slideshow terminating."),!1}else if(t.fx=="all"){t.multiFx=!0,t.fxs=[];for(p in f)e=f[p],f.hasOwnProperty(p)&&n.isFunction(e)&&t.fxs.push(p)}if(t.multiFx&&t.randomizeEffects){for(h=Math.floor(Math.random()*20)+30,u=0;u<h;u++)s=Math.floor(Math.random()*t.fxs.length),t.fxs.push(t.fxs.splice(s,1)[0]);r("randomized fx sequence: ",t.fxs)}return!0}function k(t,i){t.addSlide=function(r,u){var f=n(r),e=f[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](e),t.els&&t.els[u?"unshift":"push"](e),t.slideCount=i.length,t.random&&(t.randomMap.push(t.slideCount-1),t.randomMap.sort(function(){return Math.random()-.5})),f.css("position","absolute"),f[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||s(f),t.fit&&t.width&&f.width(t.width),t.fit&&t.height&&t.height!="auto"&&f.height(t.height),e.cycleH=t.fit&&t.height?t.height:f.height(),e.cycleW=t.fit&&t.width?t.width:f.width(),f.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,e,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(f);else f.hide()}}function u(i,f,e,s){function w(){var n=0,t=f.timeout;f.timeout&&!f.continuous?(n=o(i[f.currSlide],i[f.nextSlide],f,s),f.fx=="shuffle"&&(n-=f.speedOut)):f.continuous&&l.cyclePause&&(n=10),n>0&&(l.cycleTimeout=setTimeout(function(){u(i,f,0,!f.backwards)},n))}var l=f.$cont[0],c=i[f.currSlide],h=i[f.nextSlide],y,v,p,a;if(e&&f.busy&&f.manualTrump&&(r("manualTrump in go(), stopping active transition"),n(i).stop(!0,!0),f.busy=0,clearTimeout(l.cycleTimeout)),f.busy){r("transition active, ignoring new tx request");return}if(l.cycleStop==f.stopCount&&(l.cycleTimeout!==0||e)){if(!e&&!l.cyclePause&&!f.bounce&&(f.autostop&&--f.countdown<=0||f.nowrap&&!f.random&&f.nextSlide<f.currSlide)){f.end&&f.end(f);return}y=!1,(e||!l.cyclePause)&&f.nextSlide!=f.currSlide?(y=!0,v=f.fx,c.cycleH=c.cycleH||n(c).height(),c.cycleW=c.cycleW||n(c).width(),h.cycleH=h.cycleH||n(h).height(),h.cycleW=h.cycleW||n(h).width(),f.multiFx&&(s&&(f.lastFx==t||++f.lastFx>=f.fxs.length)?f.lastFx=0:!s&&(f.lastFx==t||--f.lastFx<0)&&(f.lastFx=f.fxs.length-1),v=f.fxs[f.lastFx]),f.oneTimeFx&&(v=f.oneTimeFx,f.oneTimeFx=null),n.fn.cycle.resetState(f,v),f.before.length&&n.each(f.before,function(n,t){l.cycleStop==f.stopCount&&t.apply(h,[c,h,f,s])}),p=function(){f.busy=0,n.each(f.after,function(n,t){l.cycleStop==f.stopCount&&t.apply(h,[c,h,f,s])}),l.cycleStop||w()},r("tx firing("+v+"); currSlide: "+f.currSlide+"; nextSlide: "+f.nextSlide),f.busy=1,f.fxFn?f.fxFn(c,h,f,p,s,e&&f.fastOnEvent):n.isFunction(n.fn.cycle[f.fx])?n.fn.cycle[f.fx](c,h,f,p,s,e&&f.fastOnEvent):n.fn.cycle.custom(c,h,f,p,s,e&&f.fastOnEvent)):w(),(y||f.nextSlide==f.currSlide)&&(f.lastSlide=f.currSlide,f.random?(f.currSlide=f.nextSlide,++f.randomIndex==i.length&&(f.randomIndex=0,f.randomMap.sort(function(){return Math.random()-.5})),f.nextSlide=f.randomMap[f.randomIndex],f.nextSlide==f.currSlide&&(f.nextSlide=f.currSlide==f.slideCount-1?0:f.currSlide+1)):f.backwards?(a=f.nextSlide-1<0,a&&f.bounce?(f.backwards=!f.backwards,f.nextSlide=1,f.currSlide=0):(f.nextSlide=a?i.length-1:f.nextSlide-1,f.currSlide=a?0:f.nextSlide+1)):(a=f.nextSlide+1==i.length,a&&f.bounce?(f.backwards=!f.backwards,f.nextSlide=i.length-2,f.currSlide=i.length-1):(f.nextSlide=a?0:f.nextSlide+1,f.currSlide=a?i.length-1:f.nextSlide-1))),y&&f.pager&&f.updateActivePagerLink(f.pager,f.currSlide,f.activePagerClass)}}function o(n,t,i,u){if(i.timeoutFn){for(var f=i.timeoutFn.call(n,n,t,i,u);i.fx!="none"&&f-i.speed<250;)f+=i.speed;if(r("calculated timeout: "+f+"; speed: "+i.speed),f!==!1)return f}return i.timeout}function e(t,i){var e=i?1:-1,r=t.elements,o=t.$cont[0],s=o.cycleTimeout,f;if(s&&(clearTimeout(s),o.cycleTimeout=0),t.random&&e<0)t.randomIndex--,--t.randomIndex==-2?t.randomIndex=r.length-2:t.randomIndex==-1&&(t.randomIndex=r.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+e,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=r.length-1}else if(t.nextSlide>=r.length){if(t.nowrap)return!1;t.nextSlide=0}return f=t.onPrevNextEvent||t.prevNextClick,n.isFunction(f)&&f(e>0,t.nextSlide,r[t.nextSlide]),u(r,t,1,i),!1}function v(t,i){var r=n(i.pager);n.each(t,function(u,f){n.fn.cycle.createPagerAnchor(u,f,r,t,i)}),i.updateActivePagerLink(i.pager,i.startingSlide,i.activePagerClass)}function s(t){function i(n){return n=parseInt(n,10).toString(16),n.length<2?"0"+n:n}function u(t){for(var r,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(r=n.css(t,"background-color"),r&&r.indexOf("rgb")>=0)return u=r.match(/\d+/g),"#"+i(u[0])+i(u[1])+i(u[2]);if(r&&r!="transparent")return r}return"#ffffff"}r("applying clearType background-color hack"),t.each(function(){n(this).css("background-color",u(this))})}var c="2.9999.3";n.support==t&&(n.support={opacity:!n.browser.msie}),n.expr[":"].paused=function(n){return n.cyclePause},n.fn.cycle=function(t,f){var e={s:this.selector,c:this.context};return this.length===0&&t!="stop"?!n.isReady&&e.s?(i("DOM not ready, queuing slideshow"),n(function(){n(e.s,e.c).cycle(t,f)}),this):(i("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var c=l(this,t,f),h;if(c!==!1){c.updateActivePagerLink=c.updateActivePagerLink||n.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0;var y=n(this),v=c.slideExpr?n(c.slideExpr,this):y.children(),a=v.get(),s=b(y,v,a,c,e);if(s!==!1){if(a.length<2){i("terminating; too few slides: "+a.length);return}h=s.continuous?10:o(a[s.currSlide],a[s.nextSlide],s,!s.backwards),h&&(h+=s.delay||0,h<10&&(h=10),r("first timeout: "+h),this.cycleTimeout=setTimeout(function(){u(a,s,0,!c.backwards)},h))}}})},n.fn.cycle.resetState=function(t,i){i=i||t.fx,t.before=[],t.after=[],t.cssBefore=n.extend({},t.original.cssBefore),t.cssAfter=n.extend({},t.original.cssAfter),t.animIn=n.extend({},t.original.animIn),t.animOut=n.extend({},t.original.animOut),t.fxFn=null,n.each(t.original.before,function(){t.before.push(this)}),n.each(t.original.after,function(){t.after.push(this)});var r=n.fn.cycle.transitions[i];n.isFunction(r)&&r(t.$cont,n(t.elements),t)},n.fn.cycle.updateActivePagerLink=function(t,i,r){n(t).each(function(){n(this).children().removeClass(r).eq(i).addClass(r)})},n.fn.cycle.next=function(n){e(n,1)},n.fn.cycle.prev=function(n){e(n,0)},n.fn.cycle.createPagerAnchor=function(t,i,e,o,s){var l,h,v,y,c,a;(n.isFunction(s.pagerAnchorBuilder)?(l=s.pagerAnchorBuilder(t,i),r("pagerAnchorBuilder("+t+", el) returned: "+l)):l='<a href="#">'+(t+1)+"</a>",l)&&(h=n(l),h.parents("body").length===0&&(v=[],e.length>1?(e.each(function(){var t=h.clone(!0);n(this).append(t),v.push(t[0])}),h=n(v)):h.appendTo(e)),s.pagerAnchors=s.pagerAnchors||[],s.pagerAnchors.push(h),y=function(i){var e,f,r;i.preventDefault(),s.nextSlide=t,e=s.$cont[0],f=e.cycleTimeout,f&&(clearTimeout(f),e.cycleTimeout=0),r=s.onPagerEvent||s.pagerClick,n.isFunction(r)&&r(s.nextSlide,o[s.nextSlide]),u(o,s,1,s.currSlide<t)},/mouseenter|mouseover/i.test(s.pagerEvent)?h.hover(y,function(){}):h.bind(s.pagerEvent,y),/^click/.test(s.pagerEvent)||s.allowPagerClickBubble||h.bind("click.cycle",function(){return!1}),c=s.$cont[0],a=!1,s.pauseOnPagerHover&&h.hover(function(){a=!0,c.cyclePause++,f(c,!0,!0)},function(){a&&c.cyclePause--,f(c,!0,!0)}))},n.fn.cycle.hopsFromLast=function(n,t){var u,i=n.lastSlide,r=n.currSlide;return u=t?r>i?r-i:n.slideCount-i:r<i?i-r:i+n.slideCount-r},n.fn.cycle.commonReset=function(t,i,r,u,f,e){n(r.elements).not(t).hide(),typeof r.cssBefore.opacity=="undefined"&&(r.cssBefore.opacity=1),r.cssBefore.display="block",r.slideResize&&u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW),r.slideResize&&f!==!1&&i.cycleH>0&&(r.cssBefore.height=i.cycleH),r.cssAfter=r.cssAfter||{},r.cssAfter.display="none",n(t).css("zIndex",r.slideCount+(e===!0?1:0)),n(i).css("zIndex",r.slideCount+(e===!0?0:1))},n.fn.cycle.custom=function(t,i,r,u,f,e){var l=n(t),a=n(i),o=r.speedIn,s=r.speedOut,v=r.easeIn,c=r.easeOut,h;a.css(r.cssBefore),e&&(o=typeof e=="number"?s=e:s=1,v=c=null),h=function(){a.animate(r.animIn,o,v,function(){u()})},l.animate(r.animOut,s,c,function(){l.css(r.cssAfter),r.sync||h()}),r.sync&&h()},n.fn.cycle.transitions={fade:function(t,i,r){i.not(":eq("+r.currSlide+")").css("opacity",0),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.cssBefore.opacity=0}),r.animIn={opacity:1},r.animOut={opacity:0},r.cssBefore={top:0,left:0}}},n.fn.cycle.ver=function(){return c},n.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:t,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(jQuery),function(n){n.fn.cycle.transitions.none=function(t,i,r){r.fxFn=function(t,i,r,u){n(i).show(),n(t).hide(),u()}},n.fn.cycle.transitions.fadeout=function(t,i,r){i.not(":eq("+r.currSlide+")").css({display:"block",opacity:1}),r.before.push(function(t,i,r,u,f,e){n(t).css("zIndex",r.slideCount+(!e==!0?1:0)),n(i).css("zIndex",r.slideCount+(!e==!0?0:1))}),r.animIn.opacity=1,r.animOut.opacity=0,r.cssBefore.opacity=1,r.cssBefore.display="block",r.cssAfter.zIndex=0},n.fn.cycle.transitions.scrollUp=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore.top=u,r.cssBefore.left=0,r.cssFirst.top=0,r.animIn.top=0,r.animOut.top=-u},n.fn.cycle.transitions.scrollDown=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssFirst.top=0,r.cssBefore.top=-u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.scrollLeft=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=0-u},n.fn.cycle.transitions.scrollRight=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.width();r.cssFirst.left=0,r.cssBefore.left=-u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.scrollHorz=function(t,i,r){t.css("overflow","hidden").width(),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.left=u?i.cycleW-1:1-i.cycleW,r.animOut.left=u?-t.cycleW:t.cycleW}),r.cssFirst.left=0,r.cssBefore.top=0,r.animIn.left=0,r.animOut.top=0},n.fn.cycle.transitions.scrollVert=function(t,i,r){t.css("overflow","hidden"),r.before.push(function(t,i,r,u){r.rev&&(u=!u),n.fn.cycle.commonReset(t,i,r),r.cssBefore.top=u?1-i.cycleH:i.cycleH-1,r.animOut.top=u?t.cycleH:-t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.animIn.top=0,r.animOut.left=0},n.fn.cycle.transitions.slideX=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.width="show",r.animOut.width=0},n.fn.cycle.transitions.slideY=function(t,i,r){r.before.push(function(t,i,r){n(r.elements).not(t).hide(),n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH}),r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animIn.height="show",r.animOut.height=0},n.fn.cycle.transitions.shuffle=function(t,i,r){var u,f=t.css("overflow","visible").width();for(i.css({left:0,top:0}),r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0)}),r.speedAdjusted||(r.speed=r.speed/2,r.speedAdjusted=!0),r.random=0,r.shuffle=r.shuffle||{left:-f,top:15},r.els=[],u=0;u<i.length;u++)r.els.push(i[u]);for(u=0;u<r.currSlide;u++)r.els.push(r.els.shift());r.fxFn=function(t,i,r,u,f){var e,o;r.rev&&(f=!f),e=f?n(t):n(i),n(i).css(r.cssBefore),o=r.slideCount,e.animate(r.shuffle,r.speedIn,r.easeIn,function(){for(var l=n.fn.cycle.hopsFromLast(r,f),i,s,c,h=0;h<l;h++)f?r.els.push(r.els.shift()):r.els.unshift(r.els.pop());if(f)for(i=0,s=r.els.length;i<s;i++)n(r.els[i]).css("z-index",s-i+o);else c=n(t).css("z-index"),e.css("z-index",parseInt(c,10)+1+o);e.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide(),u&&u()})})},n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0})},n.fn.cycle.transitions.turnUp=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=i.cycleH,r.animIn.height=i.cycleH,r.animOut.width=i.cycleW}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.height=0,r.animIn.top=0,r.animOut.height=0},n.fn.cycle.transitions.turnDown=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssFirst.top=0,r.cssBefore.left=0,r.cssBefore.top=0,r.cssBefore.height=0,r.animOut.height=0},n.fn.cycle.transitions.turnLeft=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=i.cycleW,r.animIn.width=i.cycleW}),r.cssBefore.top=0,r.cssBefore.width=0,r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.turnRight=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),n.extend(r.cssBefore,{top:0,left:0,width:0}),r.animIn.left=0,r.animOut.width=0},n.fn.cycle.transitions.zoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1,!0),r.cssBefore.top=i.cycleH/2,r.cssBefore.left=i.cycleW/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH}),n.extend(r.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),r.cssFirst.top=0,r.cssFirst.left=0,r.cssBefore.width=0,r.cssBefore.height=0},n.fn.cycle.transitions.fadeZoom=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!1),r.cssBefore.left=i.cycleW/2,r.cssBefore.top=i.cycleH/2,n.extend(r.animIn,{top:0,left:0,width:i.cycleW,height:i.cycleH})}),r.cssBefore.width=0,r.cssBefore.height=0,r.animOut.opacity=0},n.fn.cycle.transitions.blindX=function(t,i,r){var u=t.css("overflow","hidden").width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.width=i.cycleW,r.animOut.left=t.cycleW}),r.cssBefore.left=u,r.cssBefore.top=0,r.animIn.left=0,r.animOut.left=u},n.fn.cycle.transitions.blindY=function(t,i,r){var u=t.css("overflow","hidden").height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=u,r.cssBefore.left=0,r.animIn.top=0,r.animOut.top=u},n.fn.cycle.transitions.blindY2=function(t,i,r){var f=n(i[0]),e=f.width(),u=f.height();r.cssBefore={top:-u,display:"block"},r.animIn={top:0,display:"block"},r.animOut={top:-u,display:"none"}},n.fn.cycle.transitions.blindZ=function(t,i,r){var f=t.css("overflow","hidden").height(),u=t.width();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),r.animIn.height=i.cycleH,r.animOut.top=t.cycleH}),r.cssBefore.top=f,r.cssBefore.left=u,r.animIn.top=0,r.animIn.left=0,r.animOut.top=f,r.animOut.left=u},n.fn.cycle.transitions.growX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0),r.cssBefore.left=this.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.growY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1),r.cssBefore.top=this.cycleH/2,r.animIn.top=0,r.animIn.height=this.cycleH,r.animOut.top=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.curtainX=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!1,!0,!0),r.cssBefore.left=i.cycleW/2,r.animIn.left=0,r.animIn.width=this.cycleW,r.animOut.left=t.cycleW/2,r.animOut.width=0}),r.cssBefore.top=0,r.cssBefore.width=0},n.fn.cycle.transitions.curtainY=function(t,i,r){r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!1,!0),r.cssBefore.top=i.cycleH/2,r.animIn.top=0,r.animIn.height=i.cycleH,r.animOut.top=t.cycleH/2,r.animOut.height=0}),r.cssBefore.height=0,r.cssBefore.left=0},n.fn.cycle.transitions.cover=function(t,i,r){var u=r.direction||"left",e=t.css("overflow","hidden").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r),u=="right"?r.cssBefore.left=-e:u=="up"?r.cssBefore.top=f:u=="down"?r.cssBefore.top=-f:r.cssBefore.left=e}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.uncover=function(t,i,r){var u=r.direction||"left",e=t.css("overflow","hidden").width(),f=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),u=="right"?r.animOut.left=e:u=="up"?r.animOut.top=-f:u=="down"?r.animOut.top=f:r.animOut.left=-e}),r.animIn.left=0,r.animIn.top=0,r.cssBefore.top=0,r.cssBefore.left=0},n.fn.cycle.transitions.toss=function(t,i,r){var f=t.css("overflow","visible").width(),u=t.height();r.before.push(function(t,i,r){n.fn.cycle.commonReset(t,i,r,!0,!0,!0),r.animOut.left||r.animOut.top?r.animOut.opacity=0:n.extend(r.animOut,{left:f*2,top:-u/2,opacity:0})}),r.cssBefore.left=0,r.cssBefore.top=0,r.animIn.left=0},n.fn.cycle.transitions.wipe=function(t,i,r){var f=t.css("overflow","hidden").width(),u=t.height(),e,l,a;r.cssBefore=r.cssBefore||{},r.clip&&(/l2r/.test(r.clip)?e="rect(0px 0px "+u+"px 0px)":/r2l/.test(r.clip)?e="rect(0px "+f+"px "+u+"px "+f+"px)":/t2b/.test(r.clip)?e="rect(0px "+f+"px 0px 0px)":/b2t/.test(r.clip)?e="rect("+u+"px "+f+"px "+u+"px 0px)":/zoom/.test(r.clip)&&(l=parseInt(u/2,10),a=parseInt(f/2,10),e="rect("+l+"px "+a+"px "+l+"px "+a+"px)")),r.cssBefore.clip=r.cssBefore.clip||e||"rect(0px 0px 0px 0px)";var o=r.cssBefore.clip.match(/(\d+)/g),v=parseInt(o[0],10),s=parseInt(o[1],10),c=parseInt(o[2],10),h=parseInt(o[3],10);r.before.push(function(t,i,r){var l,a,e,o;t!=i&&(l=n(t),a=n(i),n.fn.cycle.commonReset(t,i,r,!0,!0,!1),r.cssAfter.display="block",e=1,o=parseInt(r.speedIn/13,10)-1,function y(){var i=v?v-parseInt(e*(v/o),10):0,r=h?h-parseInt(e*(h/o),10):0,n=c<u?c+parseInt(e*((u-c)/o||1),10):u,t=s<f?s+parseInt(e*((f-s)/o||1),10):f;a.css({clip:"rect("+i+"px "+t+"px "+n+"px "+r+"px)"}),e++<=o?setTimeout(y,13):l.css("display","none")}())}),n.extend(r.cssBefore,{display:"block",opacity:1,top:0,left:0}),r.animIn={left:0},r.animOut={left:0}}}(jQuery),function(n,t,i,r){"use strict";var p=i("html"),e=i(n),o=i(t),u=i.fancybox=function(){u.open.apply(this,arguments)},y=navigator.userAgent.match(/msie/i),v=null,s=t.createTouch!==r,a=function(n){return n&&n.hasOwnProperty&&n instanceof i},c=function(n){return n&&i.type(n)==="string"},l=function(n){return c(n)&&n.indexOf("%")>0},w=function(n){return n&&!(n.style.overflow&&n.style.overflow==="hidden")&&(n.clientWidth&&n.scrollWidth>n.clientWidth||n.clientHeight&&n.scrollHeight>n.clientHeight)},f=function(n,t){var i=parseInt(n,10)||0;return t&&l(n)&&(i=u.getViewport()[t]/100*i),Math.ceil(i)},h=function(n,t){return f(n,t)+"px"};i.extend(u,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(y?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(n,t){if(n)return(i.isPlainObject(t)||(t={}),!1===u.close(!0))?void 0:(i.isArray(n)||(n=a(n)?i(n).get():[n]),i.each(n,function(f,e){var h={},s,w,l,o,v,y,p;i.type(e)==="object"&&(e.nodeType&&(e=i(e)),a(e)?(h={href:e.data("fancybox-href")||e.attr("href"),title:e.data("fancybox-title")||e.attr("title"),isDom:!0,element:e},i.metadata&&i.extend(!0,h,e.metadata())):h=e),s=t.href||h.href||(c(e)?e:null),w=t.title!==r?t.title:h.title||"",l=t.content||h.content,o=l?"html":t.type||h.type,!o&&h.isDom&&(o=e.data("fancybox-type"),o||(v=e.prop("class").match(/fancybox\.(\w+)/),o=v?v[1]:null)),c(s)&&(o||(u.isImage(s)?o="image":u.isSWF(s)?o="swf":s.charAt(0)==="#"?o="inline":c(e)&&(o="html",l=e)),o==="ajax"&&(y=s.split(/\s+/,2),s=y.shift(),p=y.shift())),l||(o==="inline"?s?l=i(c(s)?s.replace(/.*(?=#[^\s]+$)/,""):s):h.isDom&&(l=e):o==="html"?l=s:o||s||!h.isDom||(o="inline",l=e)),i.extend(h,{href:s,type:o,content:l,title:w,selector:p}),n[f]=h}),u.opts=i.extend(!0,{},u.defaults,t),t.keys!==r&&(u.opts.keys=t.keys?i.extend({},u.defaults.keys,t.keys):!1),u.group=n,u._start(u.opts.index))},cancel:function(){var n=u.coming;n&&!1!==u.trigger("onCancel")&&(u.hideLoading(),u.ajaxLoad&&u.ajaxLoad.abort(),u.ajaxLoad=null,u.imgPreload&&(u.imgPreload.onload=u.imgPreload.onerror=null),n.wrap&&n.wrap.stop(!0,!0).trigger("onReset").remove(),u.coming=null,u.current||u._afterZoomOut(n))},close:function(n){(u.cancel(),!1!==u.trigger("beforeClose"))&&(u.unbindEvents(),u.isActive)&&(u.isOpen&&n!==!0?(u.isOpen=u.isOpened=!1,u.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),u.wrap.stop(!0,!0).removeClass("fancybox-opened"),u.transitions[u.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),u._afterZoomOut()))},play:function(n){var t=function(){clearTimeout(u.player.timer)},r=function(){t(),u.current&&u.player.isActive&&(u.player.timer=setTimeout(u.next,u.current.playSpeed))},i=function(){t(),o.unbind(".player"),u.player.isActive=!1,u.trigger("onPlayEnd")},f=function(){u.current&&(u.current.loop||u.current.index<u.group.length-1)&&(u.player.isActive=!0,o.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":r,"beforeLoad.player":t}),r(),u.trigger("onPlayStart"))};n!==!0&&(u.player.isActive||n===!1)?i():f()},next:function(n){var t=u.current;t&&(c(n)||(n=t.direction.next),u.jumpto(t.index+1,n,"next"))},prev:function(n){var t=u.current;t&&(c(n)||(n=t.direction.prev),u.jumpto(t.index-1,n,"prev"))},jumpto:function(n,t,i){var e=u.current;e&&(n=f(n),u.direction=t||e.direction[n>=e.index?"next":"prev"],u.router=i||"jumpto",e.loop&&(n<0&&(n=e.group.length+n%e.group.length),n=n%e.group.length),e.group[n]!==r&&(u.cancel(),u._start(n)))},reposition:function(n,t){var f=u.current,e=f?f.wrap:null,r;e&&(r=u._getPosition(t),n&&n.type==="scroll"?(delete r.position,e.stop(!0,!0).animate(r,200)):(e.css(r),f.pos=i.extend({},f.dim,r)))},update:function(n){var t=n&&n.type,i=!t||t==="orientationchange";(i&&(clearTimeout(v),v=null),u.isOpen&&!v)&&(v=setTimeout(function(){var r=u.current;r&&!u.isClosing&&(u.wrap.removeClass("fancybox-tmp"),(i||t==="load"||t==="resize"&&r.autoResize)&&u._setDimension(),t==="scroll"&&r.canShrink||u.reposition(n),u.trigger("onUpdate"),v=null)},i&&!s?0:300))},toggle:function(n){u.isOpen&&(u.current.fitToView=i.type(n)==="boolean"?n:!u.current.fitToView,s&&(u.wrap.removeAttr("style").addClass("fancybox-tmp"),u.trigger("onUpdate")),u.update())},hideLoading:function(){o.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,n;u.hideLoading(),t=i('<div id="fancybox-loading"><div></div></div>').click(u.cancel).appendTo("body"),o.bind("keydown.loading",function(n){(n.which||n.keyCode)===27&&(n.preventDefault(),u.cancel())}),u.defaults.fixed||(n=u.getViewport(),t.css({position:"absolute",top:n.h*.5+n.y,left:n.w*.5+n.x}))},getViewport:function(){var i=u.current&&u.current.locked||!1,t={x:e.scrollLeft(),y:e.scrollTop()};return i?(t.w=i[0].clientWidth,t.h=i[0].clientHeight):(t.w=s&&n.innerWidth?n.innerWidth:e.width(),t.h=s&&n.innerHeight?n.innerHeight:e.height()),t},unbindEvents:function(){u.wrap&&a(u.wrap)&&u.wrap.unbind(".fb"),o.unbind(".fb"),e.unbind(".fb")},bindEvents:function(){var n=u.current,t;n&&(e.bind("orientationchange.fb"+(s?"":" resize.fb")+(n.autoCenter&&!n.locked?" scroll.fb":""),u.update),t=n.keys,t&&o.bind("keydown.fb",function(f){var e=f.which||f.keyCode,o=f.target||f.srcElement;if(e===27&&u.coming)return!1;f.ctrlKey||f.altKey||f.shiftKey||f.metaKey||o&&(o.type||i(o).is("[contenteditable]"))||i.each(t,function(t,o){return n.group.length>1&&o[e]!==r?(u[t](o[e]),f.preventDefault(),!1):i.inArray(e,o)>-1?(u[t](),f.preventDefault(),!1):void 0})}),i.fn.mousewheel&&n.mouseWheel&&u.wrap.bind("mousewheel.fb",function(t,r,f,e){for(var h=t.target||null,o=i(h),s=!1;o.length;){if(s||o.is(".fancybox-skin")||o.is(".fancybox-wrap"))break;s=w(o[0]),o=i(o).parent()}r===0||s||u.group.length>1&&!n.canShrink&&(e>0||f>0?u.prev(e>0?"down":"left"):(e<0||f<0)&&u.next(e<0?"up":"right"),t.preventDefault())}))},trigger:function(n,t){var f,r=t||u.coming||u.current;if(r){if(i.isFunction(r[n])&&(f=r[n].apply(r,Array.prototype.slice.call(arguments,1))),f===!1)return!1;r.helpers&&i.each(r.helpers,function(t,f){f&&u.helpers[t]&&i.isFunction(u.helpers[t][n])&&u.helpers[t][n](i.extend(!0,{},u.helpers[t].defaults,f),r)}),o.trigger(n)}},isImage:function(n){return c(n)&&n.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(n){return c(n)&&n.match(/\.(swf)((\?|#).*)?$/i)},_start:function(n){var t={},c,l,r,e,o;if(n=f(n),c=u.group[n]||null,!c)return!1;if(t=i.extend(!0,{},u.opts,c),e=t.margin,o=t.padding,i.type(e)==="number"&&(t.margin=[e,e,e,e]),i.type(o)==="number"&&(t.padding=[o,o,o,o]),t.modal&&i.extend(!0,t,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),t.autoSize&&(t.autoWidth=t.autoHeight=!0),t.width==="auto"&&(t.autoWidth=!0),t.height==="auto"&&(t.autoHeight=!0),t.group=u.group,t.index=n,u.coming=t,!1===u.trigger("beforeLoad")){u.coming=null;return}if(r=t.type,l=t.href,!r)return(u.coming=null,u.current&&u.router&&u.router!=="jumpto")?(u.current.index=n,u[u.router](u.direction)):!1;if(u.isActive=!0,(r==="image"||r==="swf")&&(t.autoHeight=t.autoWidth=!1,t.scrolling="visible"),r==="image"&&(t.aspectRatio=!0),r==="iframe"&&s&&(t.scrolling="scroll"),t.wrap=i(t.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+r+" fancybox-tmp "+t.wrapCSS).appendTo(t.parent||"body"),i.extend(t,{skin:i(".fancybox-skin",t.wrap),outer:i(".fancybox-outer",t.wrap),inner:i(".fancybox-inner",t.wrap)}),i.each(["Top","Right","Bottom","Left"],function(n,i){t.skin.css("padding"+i,h(t.padding[n]))}),u.trigger("onReady"),r==="inline"||r==="html"){if(!t.content||!t.content.length)return u._error("content")}else if(!l)return u._error("href");r==="image"?u._loadImage():r==="ajax"?u._loadAjax():r==="iframe"?u._loadIframe():u._afterLoad()},_error:function(n){i.extend(u.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:n,content:u.coming.tpl.error}),u._afterLoad()},_loadImage:function(){var n=u.imgPreload=new Image;n.onload=function(){this.onload=this.onerror=null,u.coming.width=this.width/u.opts.pixelRatio,u.coming.height=this.height/u.opts.pixelRatio,u._afterLoad()},n.onerror=function(){this.onload=this.onerror=null,u._error("image")},n.src=u.coming.href,n.complete!==!0&&u.showLoading()},_loadAjax:function(){var n=u.coming;u.showLoading(),u.ajaxLoad=i.ajax(i.extend({},n.ajax,{url:n.href,error:function(n,t){u.coming&&t!=="abort"?u._error("ajax",n):u.hideLoading()},success:function(t,i){i==="success"&&(n.content=t,u._afterLoad())}}))},_loadIframe:function(){var n=u.coming,t=i(n.tpl.iframe.replace(/\{rnd\}/g,+new Date)).attr("scrolling",s?"auto":n.iframe.scrolling).attr("src",n.href);if(i(n.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(n){}}),n.iframe.preload){u.showLoading();t.one("load",function(){i(this).data("ready",1),s||i(this).bind("load.fb",u.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),u._afterLoad()})}n.content=t.appendTo(n.inner),n.iframe.preload||u._afterLoad()},_preloadImages:function(){for(var r=u.group,i=u.current,f=r.length,e=i.preload?Math.min(i.preload,f-1):0,n,t=1;t<=e;t+=1)n=r[(i.index+t)%f],n.type==="image"&&n.href&&((new Image).src=n.href)},_afterLoad:function(){var r=u.coming,f=u.current,e="fancybox-placeholder",t,n,c,o,s,h;if(u.hideLoading(),r&&u.isActive!==!1){if(!1===u.trigger("afterLoad",r,f)){r.wrap.stop(!0).trigger("onReset").remove(),u.coming=null;return}f&&(u.trigger("beforeChange",f),f.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),u.unbindEvents(),t=r,n=r.content,c=r.type,o=r.scrolling,i.extend(u,{wrap:t.wrap,skin:t.skin,outer:t.outer,inner:t.inner,current:t,previous:f}),s=t.href;switch(c){case"inline":case"ajax":case"html":t.selector?n=i("<div>").html(n).find(t.selector):a(n)&&(n.data(e)||n.data(e,i('<div class="'+e+'"></div>').insertAfter(n).hide()),n=n.show().detach(),t.wrap.bind("onReset",function(){i(this).find(n).length&&n.hide().replaceAll(n.data(e)).data(e,!1)}));break;case"image":n=t.tpl.image.replace("{href}",s);break;case"swf":n='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"></param>',h="",i.each(t.swf,function(t,i){n+='<param name="'+t+'" value="'+i+'"></param>',h+=" "+t+'="'+i+'"'}),n+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}a(n)&&n.parent().is(t.inner)||t.inner.append(n),u.trigger("beforeShow"),t.inner.css("overflow",o==="yes"?"scroll":o==="no"?"hidden":o),u._setDimension(),u.reposition(),u.isOpen=!1,u.coming=null,u.bindEvents(),u.isOpened?f.prevMethod&&u.transitions[f.prevMethod]():i(".fancybox-wrap").not(t.wrap).stop(!0).trigger("onReset").remove(),u.transitions[u.isOpened?t.nextMethod:t.openMethod](),u._preloadImages()}},_setDimension:function(){var nt=u.getViewport(),wt=0,vt=!1,ht=!1,y=u.wrap,g=u.skin,e=u.inner,r=u.current,n=r.width,t=r.height,o=r.minWidth,s=r.minHeight,a=r.maxWidth,c=r.maxHeight,bt=r.scrolling,ot=r.scrollOutside?r.scrollbarWidth:0,et=r.margin,yt=f(et[1]+et[3]),pt=f(et[0]+et[2]),d,lt,it,rt,p,v,at,ct,w,k,b,ut,ft,tt,st;if(y.add(g).add(e).width("auto").height("auto").removeClass("fancybox-tmp"),d=f(g.outerWidth(!0)-g.width()),lt=f(g.outerHeight(!0)-g.height()),it=yt+d,rt=pt+lt,p=l(n)?(nt.w-it)*f(n)/100:n,v=l(t)?(nt.h-rt)*f(t)/100:t,r.type==="iframe"){if(tt=r.content,r.autoHeight&&tt.data("ready")===1)try{tt[0].contentWindow.document.location&&(e.width(p).height(9999),st=tt.contents().find("body"),ot&&st.css("overflow-x","hidden"),v=st.outerHeight(!0))}catch(kt){}}else(r.autoWidth||r.autoHeight)&&(e.addClass("fancybox-tmp"),r.autoWidth||e.width(p),r.autoHeight||e.height(v),r.autoWidth&&(p=e.width()),r.autoHeight&&(v=e.height()),e.removeClass("fancybox-tmp"));if(n=f(p),t=f(v),w=p/v,o=f(l(o)?f(o,"w")-it:o),a=f(l(a)?f(a,"w")-it:a),s=f(l(s)?f(s,"h")-rt:s),c=f(l(c)?f(c,"h")-rt:c),at=a,ct=c,r.fitToView&&(a=Math.min(nt.w-it,a),c=Math.min(nt.h-rt,c)),ut=nt.w-yt,ft=nt.h-pt,r.aspectRatio?(n>a&&(n=a,t=f(n/w)),t>c&&(t=c,n=f(t*w)),n<o&&(n=o,t=f(n/w)),t<s&&(t=s,n=f(t*w))):(n=Math.max(o,Math.min(n,a)),r.autoHeight&&r.type!=="iframe"&&(e.width(n),t=e.height()),t=Math.max(s,Math.min(t,c))),r.fitToView)if(e.width(n).height(t),y.width(n+d),k=y.width(),b=y.height(),r.aspectRatio)while((k>ut||b>ft)&&n>o&&t>s){if(wt++>19)break;t=Math.max(s,Math.min(c,t-10)),n=f(t*w),n<o&&(n=o,t=f(n/w)),n>a&&(n=a,t=f(n/w)),e.width(n).height(t),y.width(n+d),k=y.width(),b=y.height()}else n=Math.max(o,Math.min(n,n-(k-ut))),t=Math.max(s,Math.min(t,t-(b-ft)));ot&&bt==="auto"&&t<v&&n+d+ot<ut&&(n+=ot),e.width(n).height(t),y.width(n+d),k=y.width(),b=y.height(),vt=(k>ut||b>ft)&&n>o&&t>s,ht=r.aspectRatio?n<at&&t<ct&&n<p&&t<v:(n<at||t<ct)&&(n<p||t<v),i.extend(r,{dim:{width:h(k),height:h(b)},origWidth:p,origHeight:v,canShrink:vt,canExpand:ht,wPadding:d,hPadding:lt,wrapSpace:b-g.outerHeight(!0),skinSpace:g.height()-t}),!tt&&r.autoHeight&&t>s&&t<c&&!ht&&e.height("auto")},_getPosition:function(n){var r=u.current,f=u.getViewport(),i=r.margin,e=u.wrap.width()+i[1]+i[3],o=u.wrap.height()+i[0]+i[2],t={position:"absolute",top:i[0],left:i[3]};return r.autoCenter&&r.fixed&&!n&&o<=f.h&&e<=f.w?t.position="fixed":r.locked||(t.top+=f.y,t.left+=f.x),t.top=h(Math.max(t.top,t.top+(f.h-o)*r.topRatio)),t.left=h(Math.max(t.left,t.left+(f.w-e)*r.leftRatio)),t},_afterZoomIn:function(){var n=u.current;n&&(u.isOpen=u.isOpened=!0,u.wrap.css("overflow","visible").addClass("fancybox-opened"),u.update(),(n.closeClick||n.nextClick&&u.group.length>1)&&u.inner.css("cursor","pointer").bind("click.fb",function(t){i(t.target).is("a")||i(t.target).parent().is("a")||(t.preventDefault(),u[n.closeClick?"close":"next"]())}),n.closeBtn&&i(n.tpl.closeBtn).appendTo(u.skin).bind("click.fb",function(n){n.preventDefault(),u.close()}),n.arrows&&u.group.length>1&&((n.loop||n.index>0)&&i(n.tpl.prev).appendTo(u.outer).bind("click.fb",u.prev),(n.loop||n.index<u.group.length-1)&&i(n.tpl.next).appendTo(u.outer).bind("click.fb",u.next)),u.trigger("afterShow"),n.loop||n.index!==n.group.length-1?u.opts.autoPlay&&!u.player.isActive&&(u.opts.autoPlay=!1,u.play()):u.play(!1))},_afterZoomOut:function(n){n=n||u.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(u,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),u.trigger("afterClose",n)}}),u.transitions={getOrigPosition:function(){var n=u.current,o=n.element,t=n.orig,i={},f=50,e=50,s=n.hPadding,c=n.wPadding,r=u.getViewport();return!t&&n.isDom&&o.is(":visible")&&(t=o.find("img:first"),t.length||(t=o)),a(t)?(i=t.offset(),t.is("img")&&(f=t.outerWidth(),e=t.outerHeight())):(i.top=r.y+(r.h-e)*n.topRatio,i.left=r.x+(r.w-f)*n.leftRatio),(u.wrap.css("position")==="fixed"||n.locked)&&(i.top-=r.y,i.left-=r.x),i={top:h(i.top-s*n.topRatio),left:h(i.left-c*n.leftRatio),width:h(f+c),height:h(e+s)}},step:function(n,t){var r,h,e,i=t.prop,o=u.current,s=o.wrapSpace,c=o.skinSpace;(i==="width"||i==="height")&&(r=t.end===t.start?1:(n-t.start)/(t.end-t.start),u.isClosing&&(r=1-r),h=i==="width"?o.wPadding:o.hPadding,e=n-h,u.skin[i](f(i==="width"?e:e-s*r)),u.inner[i](f(i==="width"?e:e-s*r-c*r)))},zoomIn:function(){var t=u.current,n=t.pos,r=t.openEffect,e=r==="elastic",f=i.extend({opacity:1},n);delete f.position,e?(n=this.getOrigPosition(),t.openOpacity&&(n.opacity=.1)):r==="fade"&&(n.opacity=.1),u.wrap.css(n).animate(f,{duration:r==="none"?0:t.openSpeed,easing:t.openEasing,step:e?this.step:null,complete:u._afterZoomIn})},zoomOut:function(){var n=u.current,i=n.closeEffect,r=i==="elastic",t={opacity:.1};r&&(t=this.getOrigPosition(),n.closeOpacity&&(t.opacity=.1)),u.wrap.animate(t,{duration:i==="none"?0:n.closeSpeed,easing:n.closeEasing,step:r?this.step:null,complete:u._afterZoomOut})},changeIn:function(){var e=u.current,s=e.nextEffect,t=e.pos,o={opacity:1},i=u.direction,r=200,n;t.opacity=.1,s==="elastic"&&(n=i==="down"||i==="up"?"top":"left",i==="down"||i==="right"?(t[n]=h(f(t[n])-r),o[n]="+="+r+"px"):(t[n]=h(f(t[n])+r),o[n]="-="+r+"px")),s==="none"?u._afterZoomIn():u.wrap.css(t).animate(o,{duration:e.nextSpeed,easing:e.nextEasing,complete:u._afterZoomIn})},changeOut:function(){var t=u.previous,f=t.prevEffect,r={opacity:.1},n=u.direction,e=200;f==="elastic"&&(r[n==="down"||n==="up"?"top":"left"]=(n==="up"||n==="left"?"-":"+")+"="+e+"px"),t.wrap.animate(r,{duration:f==="none"?0:t.prevSpeed,easing:t.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},u.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(n){n=i.extend({},this.defaults,n),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(u.coming?u.coming.parent:n.parent),this.fixed=!1,n.fixed&&u.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(n){var t=this;n=i.extend({},this.defaults,n),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(n),this.fixed||(e.bind("resize.overlay",i.proxy(this.update,this)),this.update()),n.closeClick&&this.overlay.bind("click.overlay",function(n){if(i(n.target).hasClass("fancybox-overlay"))return u.isActive?u.close():t.close(),!1}),this.overlay.css(n.css).show()},close:function(){var t,n;e.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),t=e.scrollTop(),n=e.scrollLeft(),this.el.removeClass("fancybox-lock"),e.scrollTop(t).scrollLeft(n)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var n="100%",i;this.overlay.width(n).height("100%"),y?(i=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),o.width()>i&&(n=o.width())):o.width()>e.width()&&(n=o.width()),this.overlay.width(n).height(o.height())},onReady:function(n,t){var r=this.overlay;i(".fancybox-overlay").stop(!0,!0),r||this.create(n),n.locked&&this.fixed&&t.fixed&&(r||(this.margin=o.height()>e.height()?i("html").css("margin-right").replace("px",""):!1),t.locked=this.overlay.append(t.wrap),t.fixed=!1),n.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(n,t){var u,r;t.locked&&(this.margin!==!1&&(i("*").filter(function(){return i(this).css("position")==="fixed"&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),u=e.scrollTop(),r=e.scrollLeft(),this.el.addClass("fancybox-lock"),e.scrollTop(u).scrollLeft(r)),this.open(n)},onUpdate:function(){this.fixed||this.update()},afterClose:function(n){this.overlay&&!u.coming&&this.overlay.fadeOut(n.speedOut,i.proxy(this.close,this))}},u.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(n){var o=u.current,r=o.title,s=n.type,t,e;if(i.isFunction(r)&&(r=r.call(o.element,o)),c(r)&&i.trim(r)!==""){t=i('<div class="fancybox-title fancybox-title-'+s+'-wrap">'+r+"</div>");switch(s){case"inside":e=u.skin;break;case"outside":e=u.wrap;break;case"over":e=u.inner;break;default:e=u.skin,t.appendTo("body"),y&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),u.current.margin[2]+=Math.abs(f(t.css("margin-bottom")))}t[n.position==="top"?"prependTo":"appendTo"](e)}}},i.fn.fancybox=function(n){var f,e=i(this),t=this.selector||"",r=function(r){var o=i(this).blur(),c=f,h,s;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||o.is(".fancybox-wrap")||(h=n.groupAttr||"data-fancybox-group",s=o.attr(h),s||(h="rel",s=o.get(0)[h]),s&&s!==""&&s!=="nofollow"&&(o=t.length?i(t):e,o=o.filter("["+h+'="'+s+'"]'),c=o.index(this)),n.index=c,u.open(o,n)!==!1&&r.preventDefault())};return n=n||{},f=n.index||0,t&&n.live!==!1?o.undelegate(t,"click.fb-start").delegate(t+":not('.fancybox-item, .fancybox-nav')","click.fb-start",r):e.unbind("click.fb-start").bind("click.fb-start",r),this.filter("[data-fancybox-start=1]").trigger("click"),this},o.ready(function(){var f,t;i.scrollbarWidth===r&&(i.scrollbarWidth=function(){var t=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),n=t.children(),r=n.innerWidth()-n.height(99).innerWidth();return t.remove(),r}),i.support.fixedPosition===r&&(i.support.fixedPosition=function(){var n=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"),t=n[0].offsetTop===20||n[0].offsetTop===15;return n.remove(),t}()),i.extend(u.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),f=i(n).width(),p.addClass("fancybox-lock-test"),t=i(n).width(),p.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(t-f)+"px;}</style>").appendTo("head")})}(window,document,jQuery);var imagesLoaded=!1,windowWidth=$(window).width(),windowHeight=$(window).height(),trueResize=!1,currentSection=1,$current=$(".nav-section:nth-child("+currentSection+")"),countdownInterval=null,countdown=1,menuIsClicked=!1,scrollTop=0,plusAdded=!1,tocHeight=0;$(document).ready(function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)?$("html").addClass("mobile"):$("html").addClass("non-mobile"),$("a").filter(function(){return this.hostname&&this.hostname!==location.hostname||this.href.indexOf(".pdf")>-1}).click(function(){return window.open(this.href),!1}),initElems()})