/**
 * ===ACCORDION===
 * DC jQuery Vertical Accordion Menu - jQuery vertical accordion menu plugin
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 */
!function(e){e.fn.dcAccordion=function(a){function s(a,s){var i=e.cookie(a);if(null!=i){var l=i.split(",");e.each(l,function(a,i){var l=e("li:eq("+i+")",s);e("> a",l).addClass(t.classActive);var n=l.parents("li");e("> a",n).addClass(t.classActive)})}}function i(a,s){var i=[];e("li a."+t.classActive,s).each(function(){var a=e(this).parent("li"),t=e("li",s).index(a);i.push(t)}),e.cookie(a,i,{path:"/"})}var t={classParent:"dcjq-parent",classActive:"active",classArrow:"dcjq-icon",classCount:"dcjq-count",classExpand:"dcjq-current-parent",eventType:"click",hoverDelay:300,menuClose:!0,autoClose:!0,autoExpand:!1,speed:"slow",saveState:!0,disableLink:!0,showCount:!1,cookie:"dcjq-accordion"},a=e.extend(t,a);this.each(function(){function a(){$arrow='<span class="'+t.classArrow+'"></span>';var a=t.classParent+"-li";e("> ul",u).show(),e("li",u).each(function(){e("> ul",this).length>0&&(e(this).addClass(a),e("> a",this).addClass(t.classParent).append($arrow))}),e("> ul",u).hide(),1==t.showCount&&e("li."+a,u).each(function(){if(1==t.disableLink)var a=parseInt(e("ul a:not(."+t.classParent+")",this).length);else var a=parseInt(e("ul a",this).length);e("> a",this).append(' <span class="'+t.classCount+'">'+a+"</span>")})}function l(){$activeLi=e(this).parent("li"),$parentsLi=$activeLi.parents("li"),$parentsUl=$activeLi.parents("ul"),1==t.autoClose&&v($parentsLi,$parentsUl),e("> ul",$activeLi).is(":visible")?(e("ul",$activeLi).slideUp(t.speed),e("a",$activeLi).removeClass(t.classActive)):(e(this).siblings("ul").slideToggle(t.speed),e("> a",$activeLi).addClass(t.classActive)),1==t.saveState&&i(t.cookie,u)}function n(){}function c(){}function o(){1==t.menuClose&&(e("ul",u).slideUp(t.speed),e("a",u).removeClass(t.classActive),i(t.cookie,u))}function v(a,s){e("ul",u).not(s).slideUp(t.speed),e("a",u).removeClass(t.classActive),e("> a",a).addClass(t.classActive)}function r(){e("ul",u).hide(),$allActiveLi=e("a."+t.classActive,u),$allActiveLi.siblings("ul").show()}var u=this;if(a(),1==t.saveState&&s(t.cookie,u),1==t.autoExpand&&e("li."+t.classExpand+" > a").addClass(t.classActive),r(),"hover"==t.eventType){var d={sensitivity:2,interval:t.hoverDelay,over:l,timeout:t.hoverDelay,out:n};e("li a",u).hoverIntent(d);var p={sensitivity:2,interval:1e3,over:c,timeout:1e3,out:o};e(u).hoverIntent(p),1==t.disableLink&&e("li a",u).click(function(a){e(this).siblings("ul").length>0&&a.preventDefault()})}else e("li a",u).click(function(a){$activeLi=e(this).parent("li"),$parentsLi=$activeLi.parents("li"),$parentsUl=$activeLi.parents("ul"),1==t.disableLink&&e(this).siblings("ul").length>0&&a.preventDefault(),1==t.autoClose&&v($parentsLi,$parentsUl),e("> ul",$activeLi).is(":visible")?(e("ul",$activeLi).slideUp(t.speed),e("a",$activeLi).removeClass(t.classActive)):(e(this).siblings("ul").slideToggle(t.speed),e("> a",$activeLi).addClass(t.classActive)),1==t.saveState&&i(t.cookie,u)})})}}(jQuery);

/**
 scrollup v2.2.0
 Author: Mark Goodyear - http://markgoodyear.com
 Git: https://github.com/markgoodyear/scrollup
 Copyright 2014 Mark Goodyear.
 Licensed under the MIT license
 http://www.opensource.org/licenses/mit-license.php
 Twitter: @markgdyr
 */
;(function(c,b,a){c.fn.scrollUp=function(d){if(!c.data(a.body,"scrollUp")){c.data(a.body,"scrollUp",true);c.fn.scrollUp.init(d)}};c.fn.scrollUp.init=function(d){var g=c.fn.scrollUp.settings=c.extend({},c.fn.scrollUp.defaults,d),e=(g.scrollTitle)?g.scrollTitle:g.scrollText,f;if(g.scrollTrigger){f=c(g.scrollTrigger)}else{f=c("<a/>",{id:g.scrollName,href:"#top",title:e})}f.appendTo("body");if(!(g.scrollImg||g.scrollTrigger)){f.html(g.scrollText)}f.css({display:"none",position:"fixed",zIndex:g.zIndex});if(g.activeOverlay){c("<div/>",{id:g.scrollName+"-active"}).css({position:"absolute",top:g.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+g.activeOverlay,zIndex:g.zIndex}).appendTo("body")}scrollEvent=c(b).scroll(function(){if(g.scrollFrom==="top"){scrollDis=g.scrollDistance}else{scrollDis=c(a).height()-c(b).height()-g.scrollDistance}switch(g.animation){case"fade":c((c(b).scrollTop()>scrollDis)?f.fadeIn(g.animationInSpeed):f.fadeOut(g.animationOutSpeed));break;case"slide":c((c(b).scrollTop()>scrollDis)?f.slideDown(g.animationInSpeed):f.slideUp(g.animationOutSpeed));break;default:c((c(b).scrollTop()>scrollDis)?f.show(0):f.hide(0))}});f.click(function(h){h.preventDefault();c("html, body").animate({scrollTop:0},g.scrollSpeed,g.easingType)})};c.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationInSpeed:200,animationOutSpeed:200,scrollTrigger:false,scrollText:"Scroll to top",scrollTitle:false,scrollImg:false,activeOverlay:false,zIndex:2147483647};c.fn.scrollUp.destroy=function(d){c.removeData(a.body,"scrollUp");c("#"+c.fn.scrollUp.settings.scrollName).remove();c("#"+c.fn.scrollUp.settings.scrollName+"-active").remove();if(c.fn.jquery.split(".")[1]>=7){c(b).off("scroll",d)}else{c(b).unbind("scroll",d)}};c.scrollUp=c.fn.scrollUp})(jQuery,window,document);