function tabberObj(n){var i,r,t;this.div=null;this.classMain="tabber";this.classMainLive="tabberlive";this.classTab="tabbertab";this.classTabDefault="tabbertabdefault";this.classNav="tabbernav";this.classTabHide="tabbertabhide";this.classNavActive="tabberactive";this.titleElements=["h2","h3","h4","h5","h6"];this.titleElementsStripHTML=!0;this.removeTitle=!0;this.tabifySingle=!1;this.classTabifySingle="tabifySingle";this.addLinkId=!0;this.linkIdFormat="nav<tabid>";this.classEqualHeight="tabberequal";this.equalHeightTabs=!1;for(i in n)this[i]=n[i];this.REclassMain=new RegExp("\\b"+this.classMain+"\\b","gi");this.REclassMainLive=new RegExp("\\b"+this.classMainLive+"\\b","gi");this.REclassMainEqualHeight=new RegExp("\\b"+this.classEqualHeight+"\\b","gi");this.REclassTab=new RegExp("\\b"+this.classTab+"\\b","gi");this.REclassTabDefault=new RegExp("\\b"+this.classTabDefault+"\\b","gi");this.REclassTabHide=new RegExp("\\b"+this.classTabHide+"\\b","gi");this.REclassTabifySingle=new RegExp("\\b"+this.classTabifySingle+"\\b","gi");window.location.hash&&window.location.hash.match(/^#/)&&(r=window.location.hash.replace("#nav",""),t=document.getElementById(r),t&&t.className.indexOf(this.classTab)!==-1&&($(t).siblings().removeClass(this.classTabDefault),t.className=this.classTab+" "+this.classTabDefault));this.tabs=[];this.div&&(this.init(this.div),this.div=null)}function tabberAutomatic(n){var r,i,t;for(n||(n={}),r=new tabberObj(n),i=document.getElementsByTagName("div"),t=0;t<i.length;t++)i[t].className&&i[t].className.match(r.REclassMain)&&(i[t].className.match(r.classTabifySingle)&&(n.tabifySingle=!0),i[t].className.match(r.classEqualHeight)&&(n.equalHeightTabs=!0),n.div=i[t],i[t].tabber=new tabberObj(n));return this}function tabberAutomaticOnLoad(n){var t;n||(n={});t=window.onload;window.onload=typeof onload!="function"?function(){tabberAutomatic(n)}:function(){t();tabberAutomatic(n)}}function updateQueryStringParameter(n,t,i){var r=new RegExp("([?&])"+t+"=.*?(&|$)","i"),u=n.indexOf("?")!==-1?"&":"?";return n.match(r)?n.replace(r,"$1"+t+"="+i+"$2"):n+u+t+"="+i}function BreadCrumb(){function e(){return $("body").width()}function l(){r=$(".ddBC ul:first").width()}function a(){n=0;var t;$(".ddBC ul:first > li").each(function(){t=t+$(this).outerWidth(!1)+", ";n=n+$(this).outerWidth(!1)})}function v(){if(screen.width>1e3)for(a();n+s>r&&n!==i;)i=n,$(".ddBC ul:first > li span").each(function(){if(n+s>r){var t=$(this).text(),i=t.length,u=Math.floor(t.length*.9)-1,f=t.substring(0,u);i>3&&$(this).text(f+"…");a()}});w()}function w(){$(".ddBC ul:first").css("visibility","visible")}function b(){for(var n=0;n<h;n++)$(".ddBC ul:first > li:eq("+n+") span").text(c[n]);v()}function o(n){var t=$(".ddBC li.Selected ul"),i,r;t.length>0&&(i=$(".ddBC li.Selected .Dropdown").offset().left-10,r=n-t.outerWidth(!1)-10,t.offset({left:Math.min(i,r)}))}function k(){var n=e();i=0;l();b();t&&(o(n),$(".ddBC ul:first").css("overflow","visible"))}function d(n){if($(".ddBC").removeClass("bcHibernating"),!t){$(".ddBC").css({"z-index":"9999"});t=!0;f=!0;var i=e();n.closest("div").toggleClass("bcActive");n.closest("ul").css("overflow","visible");n.closest("li").siblings("li").removeClass("Selected").end().toggleClass("Selected");o(i)}}var t=!1,f=!1,n=0,r=0,s=20,h=$(".ddBC ul:first > li").length,c=[],p=[],i,u,y;$(".ddBC ul:first > li span").each(function(){var n=$(this).text(),t=n.length;c.push(n);p.push(t)});$(".ddBC ul:first > li").uncomment(!1);$(".ddBC ul li ul").each(function(){$(this).attr("clientWidth")<$(this).attr("scrollWidth")&&$(this).width($(this).width()+$(this).attr("scrollWidth")-$(this).attr("clientWidth")+4)});i=0;timeDiff.setStartTime();l();v();timeString=timeString+timeDiff.getDiff()+"ms";showTimes&&alert(timeString);u=null;$(window).resize(function(){$(".ddBC ul:first").css("overflow","hidden");y!==document.documentElement.clientWidth&&(u&&clearTimeout(u),u=setTimeout(k,100));y=document.documentElement.clientWidth});$("#alertme").click(function(){alert("bcN: "+h+" crumbs\nbcContainerWidth: "+r+"px\nbcCrumbsWidth: "+n+"px\nbcCrumbsWidthOld: "+i+"px")});$(".ddBC").on("mouseenter mouseleave",function(){$(this).toggleClass("bcHover")});$(".ddBC").on("mouseenter mouseleave","ul:first > li",function(){if($(this).toggleClass("Hover").forceRedraw(),t){var n=e();$(this).siblings("li").removeClass("Selected");$(this).addClass("Selected");o(n)}});$(".ddBC").on("mouseenter mouseleave","ul li span",function(){$(this).toggleClass("Hover")});$(".ddBC").on("click",".Dropdown",function(n){d($(this),n);$(this).closest("a").blur();n.preventDefault()});$(".ddBC").on("click",".Dropdown",function(){ga("send","event","BreadCrumb","ExpandMenu",$(this).closest("a").text().trim())});$(".ddBC").on("click",".BreadCrumb > li > a",function(){ga("send","event","BreadCrumb","ClickBreadcrumb",$(this).data("fullname")||$(this).text().trim())});$(".ddBC").on("click",".BreadCrumb li ul li a",function(){ga("send","event","BreadCrumb","ClickMenuItem",$(this).text().trim())});$(".ddBC").on("click",".NextPrev a",function(){ga("send","event","BreadCrumb","NextPrevious",$(this).attr("class"))});$(document).on("click",function(){f?f=!1:(t=!1,$(".ddBC").css({"z-index":""}),$(".ddBC ul:first").css("overflow","hidden"),$(this).find(".ddBC ul > li").removeClass("Selected"),$(this).find(".ddBC").removeClass("bcActive"))})}tabberObj.prototype.init=function(n){var u,i,o,t,l=0,s,h,f,r,e,c=0,a;if(!document.getElementsByTagName)return!1;for(n.id&&(this.id=n.id),this.tabs.length=0,u=n.childNodes,i=0;i<u.length;i++)u[i].className&&u[i].className.match(this.REclassTab)&&(t={},t.div=u[i],t.id=u[i].id,this.tabs[this.tabs.length]=t,u[i].className.match(this.REclassTabDefault)&&(l=this.tabs.length-1),t.height=t.div.clientHeight,c<t.height&&(c=t.height));if(this.equalHeightTabs)for(i=0;i<u.length;i++)u[i].className&&u[i].className.match(this.REclassTab)&&(u[i].style.height=c+"px");if(this.tabs.length>1||this.tabifySingle===!0&&this.tabs.length>0){for(s=document.createElement("ul"),s.className=this.classNav,i=0;i<this.tabs.length;i++){if(t=this.tabs[i],t.headingText=t.div.title,this.removeTitle&&(t.div.title=""),!t.headingText)for(o=0;o<this.titleElements.length;o++)if(e=t.div.getElementsByTagName(this.titleElements[o])[0],e){t.headingText=e.innerHTML;this.titleElementsStripHTML&&(t.headingText.replace(/<br>/gi," "),t.headingText=t.headingText.replace(/<[^>]+>/g,""));break}t.headingText||(t.headingText=i+1);h=document.createElement("li");t.li=h;f=document.createElement("a");DOM_span=document.createElement("span");f.appendChild(DOM_span);DOM_span.innerHTML=t.headingText;a=$(e).find("a").attr("href");f.href=a==undefined?"javascript:void(null);":$(e).find("a").attr("href");f.title=t.headingText;f.onclick=this.navClick;f.tabber=this;f.tabberIndex=i;this.addLinkId&&this.linkIdFormat&&(r=this.linkIdFormat,r=r.replace(/<tabberid>/gi,this.id),r=r.replace(/<tabnumberzero>/gi,i),r=r.replace(/<tabnumberone>/gi,i+1),r=r.replace(/<tabtitle>/gi,t.headingText.replace(/[^a-zA-Z0-9\-]/gi,"")),r=r.replace(/<tabid>/gi,t.id),f.id=r);h.appendChild(f);s.appendChild(h)}if(n.insertBefore(s,n.firstChild),n.className=n.className.replace(this.REclassMain,this.classMainLive),this.tabShow(l),$(".tabberactive a").click(),typeof this.onLoad=="function")this.onLoad({tabber:this});return this}};tabberObj.prototype.navClick=function(n){var f,t,i,r,u;return(t=this,!t.tabber)?!1:(i=t.tabber,r=t.tabberIndex,t.blur(),$(".ModalCurrencySelector li a").each(function(){var n=$(this),i=n.attr("href");t.id.length>0&&n.attr("href",updateQueryStringParameter(i,"Hash",t.id))}),typeof i.onClick=="function"&&(u={tabber:i,index:r,event:n},n||(u.event=window.event),f=i.onClick(u),f===!1))?!1:(i.tabShow(r),window.parent.$.fancybox.getInstance()!==!1&&window.parent.$.fancybox.getInstance().update(),window.history&&history.replaceState&&$(this).attr("href")!=="javascript:void(null);"&&window.history.replaceState(null,"",$(this).attr("href")),!1)};tabberObj.prototype.tabHideAll=function(){for(var n=0;n<this.tabs.length;n++)this.tabHide(n)};tabberObj.prototype.tabHide=function(n){var t;return this.tabs[n]?(t=this.tabs[n].div,t.className.match(this.REclassTabHide)||(t.className+=" "+this.classTabHide),this.navClearActive(n),this):!1};tabberObj.prototype.tabShow=function(n){var t;if(!this.tabs[n])return!1;if(this.tabHideAll(),t=this.tabs[n].div,t.className=t.className.replace(this.REclassTabHide,""),this.navSetActive(n),typeof this.onTabDisplay=="function")this.onTabDisplay({tabber:this,index:n});return this};tabberObj.prototype.navSetActive=function(n){return this.tabs[n].li.className=this.classNavActive,this};tabberObj.prototype.navClearActive=function(n){return this.tabs[n].li.className="",this},function(n){n.fn.extend({spin:function(t){return this.each(function(){function f(f){var l=i.data("interval")||t.interval,h=i.data("min")||t.min,c=i.data("max")||t.max,e=i.val();isNaN(e)||(e=parseFloat(e)+f*l,n(i).change(),h!==null&&e<h&&(e=h),c!==null&&e>c&&(e=c),e!==i.val()&&(i.val(e),i.change(),CssClass=f>0?o:s,r.attr("class",CssClass),t.timeBlink<t.timeInterval&&setTimeout(function(){r.attr("class",u)},t.timeBlink)))}t=n.extend({spinBtnClass:"spinButton",spinUpClass:"spinUp",spinDownClass:"spinDown",spinHeight:30,spinWidth:25,interval:1,max:null,min:null,timeInterval:400,timeBlink:200},t||{});var i=n(this),e=n(this).prop("disabled"),u=t.spinBtnClass,o=t.spinBtnClass+" "+t.spinUpClass,s=t.spinBtnClass+" "+t.spinDownClass,r=n(document.createElement("span"));r.attr("class",u);i.after(r);e!==!0&&(r.mousedown(function(i){var e=i.pageY-r.offset().top,o=r.height()/2>e?1:-1;return function(){f(o);var i=setTimeout(arguments.callee,t.timeInterval);n(document).one("mouseup",function(){clearTimeout(i);r.attr("class",u)})}(),!1}),n.fn.mousewheel&&n(this).mwheelIntent(function(n,t){t>0?f(1):t<0&&f(-1);n.preventDefault()}))})}})}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?n(require("jquery")):n(jQuery)}(function(n){var t={},f={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,autoFocus:!1,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!1},u=function(t){var i=[],u=!1,r=t.dir&&t.dir==="left"?"scrollLeft":"scrollTop";return this.each(function(){var t=n(this);if(this!==document&&this!==window){if(document.scrollingElement&&(this===document.documentElement||this===document.body))return i.push(document.scrollingElement),!1;t[r]()>0?i.push(this):(t[r](1),u=t[r]()>0,u&&i.push(this),t[r](0))}}),i.length||this.each(function(){this===document.documentElement&&n(this).css("scrollBehavior")==="smooth"&&(i=[this]);i.length||this.nodeName!=="BODY"||(i=[this])}),t.el==="first"&&i.length>1&&(i=[i[0]]),i},e=/^([\-\+]=)(\d+)/,i,r;n.fn.extend({scrollable:function(n){var t=u.call(this,{dir:n});return this.pushStack(t)},firstScrollable:function(n){var t=u.call(this,{el:"first",dir:n});return this.pushStack(t)},smoothScroll:function(t,i){if(t=t||{},t==="options")return i?this.each(function(){var t=n(this),r=n.extend(t.data("ss-opts")||{},i);n(this).data("ss-opts",r)}):this.first().data("ss-opts");var r=n.extend({},n.fn.smoothScroll.defaults,t),u=function(t){var s=function(n){return n.replace(/(:|\.|\/)/g,"\\$1")},f=this,o=n(this),u=n.extend({},r,o.data("ss-opts")||{}),h=r.exclude,c=u.excludeWithin,l=0,a=0,i=!0,v={},y=n.smoothScroll.filterPath(location.pathname),p=n.smoothScroll.filterPath(f.pathname),w=location.hostname===f.hostname||!f.hostname,b=u.scrollTarget||p===y,e=s(f.hash);if(e&&!n(e).length&&(i=!1),u.scrollTarget||w&&b&&e){while(i&&l<h.length)o.is(s(h[l++]))&&(i=!1);while(i&&a<c.length)o.closest(c[a++]).length&&(i=!1)}else i=!1;i&&(u.preventDefault&&t.preventDefault(),n.extend(v,u,{scrollTarget:u.scrollTarget||e,link:f}),n.smoothScroll(v))};if(t.delegateSelector!==null)this.off("click.smoothscroll",t.delegateSelector).on("click.smoothscroll",t.delegateSelector,u);else this.off("click.smoothscroll").on("click.smoothscroll",u);return this}});i=function(n){var t={relative:""},i=typeof n=="string"&&e.exec(n);return typeof n=="number"?t.px=n:i&&(t.relative=i[1],t.px=parseFloat(i[2])||0),t};r=function(t){var i=n(t.scrollTarget);t.autoFocus&&i.length&&(i[0].focus(),i.is(document.activeElement)||(i.prop({tabIndex:-1}),i[0].focus()));t.afterScroll.call(t.link,t)};n.smoothScroll=function(u,f){if(u==="options"&&typeof f=="object")return n.extend(t,f);var e,o,c,p,h=i(u),l={},w=0,a="offset",s="scrollTop",v={},y={};h.px?e=n.extend({link:null},n.fn.smoothScroll.defaults,t):(e=n.extend({link:null},n.fn.smoothScroll.defaults,u||{},t),e.scrollElement&&(a="position",e.scrollElement.css("position")==="static"&&e.scrollElement.css("position","relative")),f&&(h=i(f)));s=e.direction==="left"?"scrollLeft":s;e.scrollElement?(o=e.scrollElement,h.px||/^(?:HTML|BODY)$/.test(o[0].nodeName)||(w=o[s]())):o=n("html, body").firstScrollable(e.direction);e.beforeScroll.call(o,e);l=h.px?h:{relative:"",px:n(e.scrollTarget)[a]()&&n(e.scrollTarget)[a]()[e.direction]||0};v[s]=l.relative+(l.px+w+e.offset);c=e.speed;c==="auto"&&(p=Math.abs(v[s]-o[s]()),c=p/e.autoCoefficient);y={duration:c,easing:e.easing,complete:function(){r(e)}};e.step&&(y.step=e.step);o.length?o.stop().animate(v,y):r(e)};n.smoothScroll.version="2.2.0";n.smoothScroll.filterPath=function(n){return n=n||"",n.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")};n.fn.smoothScroll.defaults=f}),function(n){n.fn.forceRedraw=function(t){if(n(this).addClass("forceRedraw").removeClass("forceRedraw"),n("<style><\/style>").appendTo(n(document.body)).remove(),t){var i=n(this).css("padding-left"),r=parseInt(i,10);n(this).css("padding-left",++r);window.setTimeout(n.proxy(function(){n(this).css("padding-left",i)},this),1)}return this}}(jQuery),function(n){n.fn.uncomment=function(t){n(this).contents().each(function(){if(t&&this.hasChildNodes())n(this).uncomment(t);else if(this.nodeType==8){var i=n("<span>"+this.nodeValue+"<\/span>");n(this).replaceWith(i.contents())}})}}(jQuery);var showTimes=!1,timeString="Breadcrumbise: ",time,timeDiff={setStartTime:function(){var n=new Date;time=n.getTime()},getDiff:function(){var n=new Date;return n.getTime()-time}};(function(n,t){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",t):typeof module=="object"&&module.exports?module.exports=t():n.EvEmitter=t()})(typeof window!="undefined"?window:this,function(){function t(){}var n=t.prototype;return n.on=function(n,t){if(n&&t){var i=this._events=this._events||{},r=i[n]=i[n]||[];return r.indexOf(t)==-1&&r.push(t),this}},n.once=function(n,t){if(n&&t){this.on(n,t);var i=this._onceEvents=this._onceEvents||{},r=i[n]=i[n]||{};return r[t]=!0,this}},n.off=function(n,t){var i=this._events&&this._events[n],r;if(i&&i.length)return r=i.indexOf(t),r!=-1&&i.splice(r,1),this},n.emitEvent=function(n,t){var i=this._events&&this._events[n],u,f,r,e;if(i&&i.length){for(i=i.slice(0),t=t||[],u=this._onceEvents&&this._onceEvents[n],f=0;f<i.length;f++)r=i[f],e=u&&u[r],e&&(this.off(n,r),delete u[r]),r.apply(this,t);return this}},n.allOff=function(){delete this._events;delete this._onceEvents},t}),function(n,t){"use strict";typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(n,i)}):typeof module=="object"&&module.exports?module.exports=t(n,require("ev-emitter")):n.imagesLoaded=t(n,n.EvEmitter)}(typeof window!="undefined"?window:this,function(n,t){function o(n,t){for(var i in t)n[i]=t[i];return n}function c(n){if(Array.isArray(n))return n;var t=typeof n=="object"&&typeof n.length=="number";return t?h.call(n):[n]}function i(n,t,r){if(!(this instanceof i))return new i(n,t,r);var f=n;if(typeof n=="string"&&(f=document.querySelectorAll(n)),!f){e.error("Bad element for imagesLoaded "+(f||n));return}if(this.elements=c(f),this.options=o({},this.options),typeof t=="function"?r=t:o(this.options,t),r)this.on("always",r);this.getImages();u&&(this.jqDeferred=new u.Deferred);setTimeout(this.check.bind(this))}function r(n){this.img=n}function f(n,t){this.url=n;this.element=t;this.img=new Image}var u=n.jQuery,e=n.console,h=Array.prototype.slice,s;return i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)},i.prototype.addElementImages=function(n){var i,r,t,f,u,e;if(n.nodeName=="IMG"&&this.addImage(n),this.options.background===!0&&this.addElementBackgroundImages(n),i=n.nodeType,i&&s[i]){for(r=n.querySelectorAll("img"),t=0;t<r.length;t++)f=r[t],this.addImage(f);if(typeof this.options.background=="string")for(u=n.querySelectorAll(this.options.background),t=0;t<u.length;t++)e=u[t],this.addElementBackgroundImages(e)}},s={1:!0,9:!0,11:!0},i.prototype.addElementBackgroundImages=function(n){var i=getComputedStyle(n),r,t,u;if(i)for(r=/url\((['"])?(.*?)\1\)/gi,t=r.exec(i.backgroundImage);t!==null;)u=t&&t[2],u&&this.addBackground(u,n),t=r.exec(i.backgroundImage)},i.prototype.addImage=function(n){var t=new r(n);this.images.push(t)},i.prototype.addBackground=function(n,t){var i=new f(n,t);this.images.push(i)},i.prototype.check=function(){function t(t,i,r){setTimeout(function(){n.progress(t,i,r)})}var n=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}this.images.forEach(function(n){n.once("progress",t);n.check()})},i.prototype.progress=function(n,t,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;this.emitEvent("progress",[this,n,t]);this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,n);this.progressedCount==this.images.length&&this.complete();this.options.debug&&e&&e.log("progress: "+i,n,t)},i.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;this.emitEvent(t,[this]);this.emitEvent("always",[this]);this.jqDeferred&&(n=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[n](this))},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var n=this.getIsImageComplete();if(n){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(n,t){this.isLoaded=n;this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.prototype.onload=function(){this.confirm(!0,"onload");this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror");this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},f.prototype=Object.create(r.prototype),f.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var n=this.getIsImageComplete();n&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},f.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)},f.prototype.confirm=function(n,t){this.isLoaded=n;this.emitEvent("progress",[this,this.element,t])},i.makeJQueryPlugin=function(t){(t=t||n.jQuery,t)&&(u=t,u.fn.imagesLoaded=function(n,t){var r=new i(this,n,t);return r.jqDeferred.promise(u(this))})},i.makeJQueryPlugin(),i}),function(n){"use strict";n.fn.accordionjs=function(t){var f;if(this.length>1)return this.each(function(){n(this).accordionjs(t)}),this;var i=this,u={isInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},isArray:function(n){return Object.prototype.toString.call(n)==="[object Array]"},isObject:function(n){return Object.prototype.toString.call(n)==="[object Object]"},sectionIsOpen:function(n){return n.hasClass("acc_active")},getHash:function(){return window.location.hash?window.location.hash.substring(1):!1}},r=n.extend({closeAble:!1,closeOther:!0,slideSpeed:150,activeIndex:1,rootClass:"accordionjs",openSection:!1,beforeOpenSection:!1,openAll:!1},t);return n.each(r,function(n){var u=n.replace(/([A-Z])/g,"-$1").toLowerCase().toString(),t=i.data(u);(t||!1===t)&&(r[n]=t)}),(r.activeIndex===!1||r.closeOther===!1)&&(r.closeAble=!0),f=function(){i.create();i.openOnClick();r.openAll&&i.children(".acc_section").length>1&&(i.prepend("<input type='button' class='acc_all' value='+' />"),i.openAll());n(window).on("load",function(){i.openOnHash()});n(window).on("hashchange",function(){i.openOnHash()})},this.openSection=function(t,u){n(document).trigger("accjs_before_open_section",[t,]);typeof r.beforeOpenSection=="function"&&r.beforeOpenSection.call(this,t);u=u>=0?u:r.slideSpeed;var f=t.children().eq(1);f.slideDown(u,function(){n(document).trigger("accjs_open_section",[t,]);typeof r.openSection=="function"&&r.openSection.call(this,t)});t.addClass("acc_active");i.find(".acc_all").val("–").addClass("acc_all_active")},this.closeSection=function(t,u){n(document).trigger("accjs_before_close_section",[t,]);typeof r.beforeCloseSection=="function"&&r.beforeCloseSection.call(this,t);u=u>=0?u:r.slideSpeed;var f=t.children().eq(1);f.slideUp(u,function(){n(document).trigger("accjs_close_section",[t,]);typeof r.closeSection=="function"&&r.closeSection.call(this,t)});t.removeClass("acc_active");i.updateAllToggle()},this.updateAllToggle=function(){var t=!1;i.children(".acc_section").each(function(i,r){var f=u.sectionIsOpen(n(r));f&&(t=!0)});t?i.find(".acc_all").val("–").addClass("acc_all_active"):i.find(".acc_all").val("+").removeClass("acc_all_active")},this.closeOtherSections=function(t,u){var f=t.closest("."+r.rootClass).children();n(f).each(function(){i.closeSection(n(this).not(t),u)})},this.create=function(){var t,e,f;if(i.addClass(r.rootClass),t=i.children(),n.each(t,function(t,r){i.createSingleSection(n(r))}),u.isArray(r.activeIndex))for(e=r.activeIndex,f=0;f<e.length;f++)i.openSection(t.eq(e[f]-1),0);else r.activeIndex>1?i.openSection(t.eq(r.activeIndex-1),0):!1!==r.activeIndex&&i.openSection(t.eq(0),0)},this.createSingleSection=function(t){var i=t.children();t.addClass("acc_section");n(i[0]).addClass("acc_head");n(i[0]).wrapInner("<span class='acc_head_inner'><\/span>");n(i[1]).addClass("acc_content");n(i[0]).append("<i class='acc_icon''><\/i>");t.hasClass("acc_active")||t.children(".acc_content").hide()},this.openOnClick=function(){i.on("click",".acc_head",function(t){t.stopImmediatePropagation();t.preventDefault();var f=n(this).closest(".acc_section");u.sectionIsOpen(f)?r.closeAble?i.closeSection(f):i.children().length===1&&i.closeSection(f):r.closeOther?(i.closeOtherSections(f),i.openSection(f)):i.openSection(f)})},this.openAll=function(){i.on("click",".acc_all",function(t){var u,r,f,e;t.stopImmediatePropagation();t.preventDefault();u=n(this);r=0;u.hasClass("acc_all_active")?(f=i.children(".acc_active"),f.each(function(t,u){setTimeout(function(){i.closeSection(n(u))},r);r+=50}),i.addClass("acc_all_hover"),i.removeClass("acc_all_active_hover")):(e=n(i.children(".acc_section").get().reverse()),e.each(function(t,u){setTimeout(function(){i.openSection(n(u))},r);isElementInViewport(this)&&(r+=50)}),i.addClass("acc_all_active_hover"),i.removeClass("acc_all_hover"))}).on("mouseenter",".acc_all",function(){n(this).hasClass("acc_all_active")?i.addClass("acc_all_active_hover"):i.addClass("acc_all_hover")}).on("mouseleave",".acc_all",function(){i.removeClass("acc_all_hover");i.removeClass("acc_all_active_hover")}).updateAllToggle()},this.openOnHash=function(){var f,t;u.getHash()&&(f=n("#"+u.getHash(),i),f.length>0&&(t=f.parent(),t.hasClass("acc_section")&&(i.openSection(t),r.closeOther&&i.closeOtherSections(t),n("html, body").animate({scrollTop:parseInt(t.offset().top)-50},150))))},f(),this}}(jQuery);
//# sourceMappingURL=/bundle/canford2map
