!function(e){var t={},n=function(e){var t=!1,n=e.documentElement,i=n.firstElementChild||n.firstChild,a=e.createElement("div");if(a.style.cssText="position:absolute;top:-100em;width:1.1px",n.insertBefore(a,i),t=(a.getBoundingClientRect().width||1)%1!==0,n.removeChild(a),!t){var r=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase());r&&(t=8==parseInt(r[1],10)||9==parseInt(r[1],10))}return t}(document);e.fn.socialButtons=function(n){return n=e.extend({wrapper:'
'},n),n.twitter||n.plusone||n.facebook?(n.twitter&&!t.twitter&&(t.twitter=e.getScript("//platform.twitter.com/widgets.js")),n.plusone&&!t.plusone&&(t.plusone=e.getScript("//apis.google.com/js/plusone.js")),window.FB||!n.facebook||t.facebook||(e("body").append('
'),function(e,t,n){var i,a=e.getElementsByTagName(t)[0];e.getElementById(n)||(i=e.createElement(t),i.id=n,i.src="//connect.facebook.net/en_US/all.js#xfbml=1",a.parentNode.insertBefore(i,a))}(document,"script","facebook-jssdk"),t.facebook=!0),this.each(function(){var t=e(this).data("permalink"),i=e(n.wrapper).appendTo(this);n.twitter&&i.append('
'),n.plusone&&i.append('
'),n.facebook&&i.append('
')})):this};var i={};e.matchHeight=function(t,n,a){function r(){u.match()}var o=e(window),s="debouncedresize orientationchange",u=t&&i[t];return u||(u=i[t]={id:t,elements:n,deepest:a,match:function(){var t=this.revert(),n=0;e(this.elements).each(function(){n=Math.max(n,e(this).outerHeight())}).each(function(i){var a="outerHeight";"border-box"==t[i].css("box-sizing")&&(a="height");var r=e(this),o=t[i],s=o.height()+(n-r[a]());o.css("min-height",s+"px")})},revert:function(){var t=[],n=this.deepest;return e(this.elements).each(function(i){var a=n?e(this).find(n+":first"):e(this);t.push(a.css("min-height",""))}),t},remove:function(){o.unbind(s,r),this.revert(),delete i[this.id]}},o.bind(s,r)),u},e.matchWidth=function(t,a,r){function o(){c.match()}var s=e(window),u="debouncedresize orientationchange",c=t&&i[t];if(!c){if(n)return i[t]={match:function(){},revert:function(){},remove:function(){}},i[t];c=i[t]={id:t,elements:a,selector:r,match:function(){this.revert(),e(this.elements).each(function(){var t=e(this),n=t.width(),i=t.children(r),a=0;i.each(function(t){return tt?-.5*(s*Math.pow(2,10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o))+n:s*Math.pow(2,-10*(t-=1))*Math.sin((t*a-r)*(2*Math.PI)/o)*.5+i+n},easeInBack:function(e,t,n,i,a,r){return void 0==r&&(r=1.70158),i*(t/=a)*t*((r+1)*t-r)+n},easeOutBack:function(e,t,n,i,a,r){return void 0==r&&(r=1.70158),i*((t=t/a-1)*t*((r+1)*t+r)+1)+n},easeInOutBack:function(e,t,n,i,a,r){return void 0==r&&(r=1.70158),(t/=a/2)<1?i/2*(t*t*(((r*=1.525)+1)*t-r))+n:i/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+n},easeInBounce:function(t,n,i,a,r){return a-e.easing.easeOutBounce(t,r-n,0,a,r)+i},easeOutBounce:function(e,t,n,i,a){return(t/=a)<1/2.75?i*(7.5625*t*t)+n:2/2.75>t?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:2.5/2.75>t?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(t,n,i,a,r){return r/2>n?.5*e.easing.easeInBounce(t,2*n,0,a,r)+i:.5*e.easing.easeOutBounce(t,2*n-r,0,a,r)+.5*a+i}})}(jQuery),function(e){function t(t){var n={},i=/^jQuery\d+$/;return e.each(t.attributes,function(e,t){t.specified&&!i.test(t.name)&&(n[t.name]=t.value)}),n}function n(){var t=e(this);t.val()===t.attr("placeholder")&&t.hasClass("placeholder")&&(t.data("placeholder-password")?t.hide().next().show().focus():t.val("").removeClass("placeholder"))}function i(i){var a,r=e(this);if(""===r.val()||r.val()===r.attr("placeholder")){if(r.is(":password")){if(!r.data("placeholder-textinput")){try{a=r.clone().attr({type:"text"})}catch(o){a=e("").attr(e.extend(t(r[0]),{type:"text"}))}a.removeAttr("name").data("placeholder-password",!0).bind("focus.placeholder",n),r.data("placeholder-textinput",a).before(a)}r=r.hide().prev().show()}r.addClass("placeholder").val(r.attr("placeholder"))}else r.removeClass("placeholder")}var a="placeholder"in document.createElement("input"),r="placeholder"in document.createElement("textarea");a&&r?e.fn.placeholder=function(){return this}:e.fn.placeholder=function(){return this.filter((a?"textarea":":input")+"[placeholder]").bind("focus.placeholder",n).bind("blur.placeholder",i).trigger("blur.placeholder").end()},e(function(){e("form").bind("submit.placeholder",function(){var t=e(".placeholder",this).each(n);setTimeout(function(){t.each(i)},10)})}),e(window).bind("unload.placeholder",function(){e(".placeholder").val("")})}(jQuery),function(e){if(!e.event.special.debouncedresize){var t,n,i=e.event;t=i.special.debouncedresize={setup:function(){e(this).on("resize",t.handler)},teardown:function(){e(this).off("resize",t.handler)},handler:function(e,a){var r=this,o=arguments,s=function(){e.type="debouncedresize",i.dispatch.apply(r,o)};n&&clearTimeout(n),a?s():n=setTimeout(s,t.threshold)},threshold:150}}}(jQuery); !function(t){var e=function(){};t.extend(e.prototype,{name:"accordionMenu",options:{mode:"default",display:null,collapseall:!1,toggler:"span.level1.parent",content:"ul.level2",onaction:function(){}},initialize:function(e,a){var a=t.extend({},this.options,a),i=e.find(a.toggler);i.each(function(e){var i=t(this),o=i.next(a.content).wrap("
").parent();o.data("height",o.height()),i.hasClass("active")||e==a.display?o.show():o.hide().css("height",0),i.bind("click",function(){n(e)})});var n=function(e){var n=t(i.get(e)),o=t([]);switch(n.hasClass("active")&&(o=n,n=t([])),a.collapseall&&(o=i.filter(".active")),a.mode){case"slide":n.next().stop().show().animate({height:n.next().data("height")},400),o.next().stop().animate({height:0},400,function(){o.next().hide()}),setTimeout(function(){a.onaction.apply(this,[n,o])},401);break;default:n.next().show().css("height",n.next().data("height")),o.next().hide().css("height",0),a.onaction.apply(this,[n,o])}n.addClass("active").parent().addClass("active"),o.removeClass("active").parent().removeClass("active")}}}),t.fn[e.prototype.name]=function(){var a=arguments,i=a[0]?a[0]:null;return this.each(function(){var n=t(this);if(e.prototype[i]&&n.data(e.prototype.name)&&"initialize"!=i)n.data(e.prototype.name)[i].apply(n.data(e.prototype.name),Array.prototype.slice.call(a,1));else if(!i||t.isPlainObject(i)){var o=new e;e.prototype.initialize&&o.initialize.apply(o,t.merge([n],a)),n.data(e.prototype.name,o)}else t.error("Method "+i+" does not exist on jQuery."+e.name)})}}(jQuery); !function(t){var i=function(){};t.extend(i.prototype,{name:"dropdownMenu",options:{mode:"default",itemSelector:"li",firstLevelSelector:"li.level1",dropdownSelector:"ul",duration:600,remainTime:800,remainClass:"remain",matchHeight:!0,transition:"easeOutExpo",withopacity:!0,centerDropdown:!1,reverseAnimation:!1,fixWidth:!1,fancy:null,boundary:t(window),boundarySelector:null},initialize:function(i,n){this.options=t.extend({},this.options,n);var o=this,e=null,a=!1;if(this.menu=i,this.dropdowns=[],this.options.withopacity=t.support.opacity?this.options.withopacity:!1,this.options.fixWidth){var s=5;this.menu.children().each(function(){s+=t(this).width()}),this.menu.css("width",s)}if(this.options.matchHeight&&this.matchHeight(),this.menu.find(this.options.firstLevelSelector).each(function(i){var n=t(this),s=n.find(o.options.dropdownSelector).css({overflow:"hidden"});if(s.length){s.css("overflow","hidden").show(),s.data("init-width",parseFloat(s.css("width"))),s.data("columns",s.find(".column").length),s.data("single-width",s.data("columns")>1?s.data("init-width")/s.data("columns"):s.data("init-width"));var d=t("
").css({overflow:"hidden"}).append("
"),r=d.find("div:first");s.children().appendTo(r),d.appendTo(s),o.dropdowns.push({dropdown:s,div:d,innerdiv:r}),s.hide()}n.bind({mouseenter:function(h){if(a=!0,o.menu.trigger("menu:enter",[n,i]),e){if(e.index==i)return;e.item.removeClass(o.options.remainClass),e.div.hide().parent().hide()}if(!s.length)return active=null,void(e=null);s.parent().find("div").css({width:"",height:"","min-width":"","min-height":""}),s.removeClass("flip").removeClass("stack"),n.addClass(o.options.remainClass),d.stop().show(),s.show(),o.options.centerDropdown&&s.css("margin-left",-1*(parseFloat(s.data("init-width"))/2-n.width()/2));var p=s.css("width",s.data("init-width")).data("init-width");dpitem=o.options.boundarySelector?t(o.options.boundarySelector,d):d,boundary={top:0,left:0,width:o.options.boundary.width()},r.css({"min-width":p});try{t.extend(boundary,o.options.boundary.offset())}catch(c){}(dpitem.offset().leftboundary.width)&&(s.addClass("flip"),dpitem.offset().left
').find(".fancy:first").hide(),h=this.menu.find(".active:first"),p=null,c=function(t,i,n){i&&p&&t.get(0)==p.get(0)||(r.stop().show().css("visibility","visible"),"move"==d.mode?h.length||i?r.animate({left:t.position().left+"px",width:t.width()+"px"},d.duration,d.transition):r.hide():i?r.css({opacity:h?0:1,left:t.position().left+"px",width:t.width()+"px"}).animate({opacity:1},d.duration):r.animate({opacity:0},d.duration),p=i?t:null)};this.menu.bind({"menu:enter":function(t,i,n){c(i,!0),d.onEnter&&d.onEnter(i,n,r)},"menu:leave":function(t,i,n){c(h,!1),d.onLeave&&d.onLeave(i,n,r)},"menu:fixfancy":function(t){p&&r.stop().show().css({left:p.position().left+"px",width:p.width()+"px"})}}),h.length&&"move"==d.mode&&c(h,!0)}},matchHeight:function(){this.menu.find("li.level1.parent").each(function(){var i=0;t(this).find("ul.level2").each(function(){var n=t(this),o=n.parents(".dropdown:first").show();i=Math.max(n.height(),i),o.hide()}).css("min-height",i)})}}),t.fn[i.prototype.name]=function(){var n=arguments,o=n[0]?n[0]:null;return this.each(function(){var e=t(this);if(i.prototype[o]&&e.data(i.prototype.name)&&"initialize"!=o)e.data(i.prototype.name)[o].apply(e.data(i.prototype.name),Array.prototype.slice.call(n,1));else if(!o||t.isPlainObject(o)){var a=new i;i.prototype.initialize&&a.initialize.apply(a,t.merge([e],n)),e.data(i.prototype.name,a)}else t.error("Method "+o+" does not exist on jQuery."+i.name)})}}(jQuery); (function($){$(document).ready(function(){var config=$('body').data('config')||{};$('.menu-sidebar').accordionMenu({mode:'slide'});$('#menu').dropdownMenu({mode:'slide',dropdownSelector:'div.dropdown'});$('a[href="#page"]').smoothScroller({duration:500});$('article[data-permalink]').socialButtons(config);});$.onMediaQuery('(min-width: 960px)',{init:function(){if(!this.supported)this.matches=true;},valid:function(){$.matchWidth('grid-block','.grid-block','.grid-h').match();$.matchHeight('main','#maininner, #sidebar-a, #sidebar-b').match();$.matchHeight('top-a','#top-a .grid-h','.deepest').match();$.matchHeight('top-b','#top-b .grid-h','.deepest').match();$.matchHeight('bottom-a','#bottom-a .grid-h','.deepest').match();$.matchHeight('bottom-b','#bottom-b .grid-h','.deepest').match();$.matchHeight('innertop','#innertop .grid-h','.deepest').match();$.matchHeight('innerbottom','#innerbottom .grid-h','.deepest').match();},invalid:function(){$.matchWidth('grid-block').remove();$.matchHeight('main').remove();$.matchHeight('top-a').remove();$.matchHeight('top-b').remove();$.matchHeight('bottom-a').remove();$.matchHeight('bottom-b').remove();$.matchHeight('innertop').remove();$.matchHeight('innerbottom').remove();}});var pairs=[];$.onMediaQuery('(min-width: 480px) and (max-width: 959px)',{valid:function(){$.matchHeight('sidebars','.sidebars-2 #sidebar-a, .sidebars-2 #sidebar-b').match();pairs=[];$.each(['.sidebars-1 #sidebar-a > .grid-box','.sidebars-1 #sidebar-b > .grid-box','#top-a .grid-h','#top-b .grid-h','#bottom-a .grid-h','#bottom-b .grid-h','#innertop .grid-h','#innerbottom .grid-h'],function(i,selector){for(var i=0,elms=$(selector),len=parseInt(elms.length/2);i').prependTo('#header');$('#logo').clone().removeAttr('id').addClass('logo').appendTo(header);$('.searchbox').first().clone().removeAttr('id').appendTo(header);$('#menu').responsiveMenu().next().addClass('menu-responsive').appendTo(header);}}});})(jQuery);