(function(f){var e={};f.fn.socialButtons=function(a){a=f.extend({wrapper:'
'},a);if(!a.twitter&&!a.plusone&&!a.facebook)return this;a.twitter&&!e.twitter&&(e.twitter=f.getScript("//platform.twitter.com/widgets.js"));a.plusone&&!e.plusone&&(e.plusone=f.getScript("//apis.google.com/js/plusone.js"));if(!window.FB&&a.facebook&&!e.facebook)f("body").append('
'),function(a,b,d){var g=a.getElementsByTagName(b)[0];if(!a.getElementById(d))a=a.createElement(b),a.id=d,a.src="//connect.facebook.net/en_US/all.js#xfbml=1",g.parentNode.insertBefore(a,g)}(document,"script","facebook-jssdk"),e.facebook=true;return this.each(function(){var c=f(this).data("permalink"),b=f(a.wrapper).appendTo(this);a.twitter&&b.append('
');a.plusone&&b.append('
');a.facebook&&b.append('
')})};f.fn.matchHeight=function(a){var c=0,b=[];this.each(function(){var c=a?f(this).find(a+":first"):f(this);b.push(c);c.css("min-height","")});this.each(function(){c=Math.max(c,f(this).outerHeight())});return this.each(function(a){var g=f(this),a=b[a],g=a.height()+(c-g.outerHeight());a.css("min-height",g+"px")})};f.fn.matchWidth=function(a){return this.each(function(){var c=f(this),b=c.children(a),d=0;b.width(function(a,e){return a").attr(f.extend(e(c[0]),{type:"text"}))}b.removeAttr("name").data("placeholder-password",true).bind("focus.placeholder",a);c.data("placeholder-textinput",b).before(b)}c=c.hide().prev().show()}c.addClass("placeholder").val(c.attr("placeholder"))}else c.removeClass("placeholder")}var b="placeholder"in document.createElement("input"),d="placeholder"in document.createElement("textarea");f.fn.placeholder=b&&d?function(){return this}:function(){return this.filter((b?"textarea":":input")+"[placeholder]").bind("focus.placeholder",a).bind("blur.placeholder",c).trigger("blur.placeholder").end()};f(function(){f("form").bind("submit.placeholder",function(){var b=f(".placeholder",this).each(a);setTimeout(function(){b.each(c)},10)})});f(window).bind("unload.placeholder",function(){f(".placeholder").val("")})})(jQuery); (function(d){var a=function(){};d.extend(a.prototype,{name:"accordionMenu",options:{mode:"default",display:null,collapseall:false,toggler:"span.level1.parent",content:"ul.level2"},initialize:function(a,b){var b=d.extend({},this.options,b),c=a.find(b.toggler);c.each(function(h){var a=d(this),c=a.next(b.content).wrap("
").parent();c.data("height",c.height());a.hasClass("active")||h==b.display?c.show():c.hide().css("height",0);a.bind("click",function(){f(h)})});var f=function(a){var a=d(c.get(a)),e=d([]);a.hasClass("active")&&(e=a,a=d([]));b.collapseall&&(e=c.filter(".active"));switch(b.mode){case"slide":a.next().stop().show().animate({height:a.next().data("height")});e.next().stop().animate({height:0},function(){e.next().hide()});break;default:a.next().show().css("height",a.next().data("height")),e.next().hide().css("height",0)}a.addClass("active").parent().addClass("active");e.removeClass("active").parent().removeClass("active")}}});d.fn[a.prototype.name]=function(){var g=arguments,b=g[0]?g[0]:null;return this.each(function(){var c=d(this);if(a.prototype[b]&&c.data(a.prototype.name)&&b!="initialize")c.data(a.prototype.name)[b].apply(c.data(a.prototype.name),Array.prototype.slice.call(g,1));else if(!b||d.isPlainObject(b)){var f=new a;a.prototype.initialize&&f.initialize.apply(f,d.merge([c],g));c.data(a.prototype.name,f)}else d.error("Method "+b+" does not exist on jQuery."+a.name)})}})(jQuery); (function(b){var e=function(){};b.extend(e.prototype,{name:"dropdownMenu",options:{mode:"default",itemSelector:"li",firstLevelSelector:"li.level1",dropdownSelector:"ul",duration:600,remainTime:800,remainClass:"remain",matchHeight:true,transition:"easeOutExpo",withopacity:true,centerDropdown:false,reverseAnimation:false,fixWidth:false,fancy:null},initialize:function(e,j){this.options=b.extend({},this.options,j);var a=this,g=null,q=false;this.menu=e;this.dropdowns=[];this.options.withopacity=b.browser.msie&&parseFloat(b.browser.version)<9?false:this.options.withopacity;if(this.options.fixWidth){var s=5;this.menu.children().each(function(){s+=b(this).width()});this.menu.css("width",s)}this.options.matchHeight&&this.matchHeight();this.menu.find(this.options.firstLevelSelector).each(function(p){var k=b(this),f=k.find(a.options.dropdownSelector).css({overflow:"hidden"});if(f.length){f.css("overflow","hidden");var d=b("
").data("dpwidth",parseFloat(f.width())).data("dpheight",parseFloat(f.height())).css({overflow:"hidden"}).append("
"),e=d.find("div:first").css({"min-width":d.data("dpwidth"),"min-height":d.data("dpheight")});f.children().appendTo(e);d.appendTo(f);a.options.centerDropdown&&f.css("margin-left",(parseFloat(f.css("width"))/2-k.width()/2)*-1);a.dropdowns.push({dropdown:f,div:d,innerdiv:e})}k.bind({mouseenter:function(){q=true;a.menu.trigger("menu:enter",[k,p]);if(g){if(g.index==p)return;g.item.removeClass(a.options.remainClass);g.div.hide()}if(f.length){k.addClass(a.options.remainClass);d.stop().show();var c=d.data("dpwidth"),b=d.data("dpheight");switch(a.options.mode){case"showhide":c={width:c,height:b};d.css(c);break;case"diagonal":var h={width:0,height:0},c={width:c,height:b};if(a.options.withopacity)h.opacity=0,c.opacity=1;d.css(h).animate(c,a.options.duration,a.options.transition);break;case"height":h={width:c,height:0};c={height:b};if(a.options.withopacity)h.opacity=0,c.opacity=1;d.css(h).animate(c,a.options.duration,a.options.transition);break;case"width":h={width:0,height:b};c={width:c};if(a.options.withopacity)h.opacity=0,c.opacity=1;d.css(h).animate(c,a.options.duration,a.options.transition);break;case"slide":f.css({width:c,height:b});d.css({width:c,height:b,"margin-top":b*-1}).animate({"margin-top":0},a.options.duration,a.options.transition);break;default:h={width:c,height:b};c={};if(a.options.withopacity)h.opacity=0,c.opacity=1;d.css(h).animate(c,a.options.duration,a.options.transition)}g={item:k,div:d,index:p}}else g=active=null},mouseleave:function(c){if(c.srcElement&&b(c.srcElement).hasClass("module"))return false;q=false;f.length?window.setTimeout(function(){if(!(q||d.css("display")=="none")){a.menu.trigger("menu:leave",[k,p]);var b=function(){k.removeClass(a.options.remainClass);g=null;d.hide()};if(a.options.reverseAnimation)switch(a.options.mode){case"showhide":b();break;case"diagonal":var c={width:0,height:0};if(a.options.withopacity)c.opacity=0;d.stop().animate(c,a.options.duration,a.options.transition,function(){b()});break;case"height":c={height:0};if(a.options.withopacity)c.opacity=0;d.stop().animate(c,a.options.duration,a.options.transition,function(){b()});break;case"width":c={width:0};if(a.options.withopacity)c.opacity=0;d.stop().animate(c,a.options.duration,a.options.transition,function(){b()});break;case"slide":d.stop().animate({"margin-top":parseFloat(d.data("dpheight"))*-1},a.options.duration,a.options.transition,function(){b()});break;default:c={};if(a.options.withopacity)c.opacity=0;d.stop().animate(c,a.options.duration,a.options.transition,function(){b()})}else b()}},a.options.remainTime):a.menu.trigger("menu:leave")}})});if(this.options.fancy){var i=b.extend({mode:"move",transition:"easeOutExpo",duration:500,onEnter:null,onLeave:null},this.options.fancy),l=this.menu.append('
').find(".fancy:first").hide(),n=this.menu.find(".active:first"),m=null,r=function(a,b){if(!b||!(m&&a.get(0)==m.get(0)))l.stop().show().css("visibility","visible"),i.mode=="move"?!n.length&&!b?l.hide():l.animate({left:a.position().left+"px",width:a.width()+"px"},i.duration,i.transition):b?l.css({opacity:n?0:1,left:a.position().left+"px",width:a.width()+"px"}).animate({opacity:1},i.duration):l.animate({opacity:0},i.duration),m=b?a:null};this.menu.bind({"menu:enter":function(a,b,f){r(b,true);if(i.onEnter)i.onEnter(b,f,l)},"menu:leave":function(a,b,f){r(n,false);if(i.onLeave)i.onLeave(b,f,l)},"menu:fixfancy":function(){m&&l.stop().show().css({left:m.position().left+"px",width:m.width()+"px"})}});n.length&&i.mode=="move"&&r(n,true)}},matchHeight:function(){this.menu.find("li.level1.parent").each(function(){var e=0;b(this).find("ul.level2").each(function(){e=Math.max(b(this).height(),e)}).css("min-height",e)})}});b.fn[e.prototype.name]=function(){var o=arguments,j=o[0]?o[0]:null;return this.each(function(){var a=b(this);if(e.prototype[j]&&a.data(e.prototype.name)&&j!="initialize")a.data(e.prototype.name)[j].apply(a.data(e.prototype.name),Array.prototype.slice.call(o,1));else if(!j||b.isPlainObject(j)){var g=new e;e.prototype.initialize&&g.initialize.apply(g,b.merge([a],o));a.data(e.prototype.name,g)}else b.error("Method "+j+" does not exist on jQuery."+e.name)})}})(jQuery); (function($){$(document).bind('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});$('.grid-block').matchWidth('.grid-h');$('article[data-permalink]').socialButtons(config);var matchHeight=function(){$('#top-a .grid-h').matchHeight('.deepest');$('#top-b .grid-h').matchHeight('.deepest');$('#bottom-a .grid-h').matchHeight('.deepest');$('#bottom-b .grid-h').matchHeight('.deepest');$('#bottom-c .grid-h').matchHeight('.deepest');$('#innertop .grid-h').matchHeight('.deepest');$('#innerbottom .grid-h').matchHeight('.deepest');$('#maininner, #sidebar-a, #sidebar-b').matchHeight();$('.wrapper').css("min-height",$(window).height());};matchHeight();$(window).bind("load",matchHeight);});})(jQuery); (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x";c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d