(function($){$.fn.resizeCarousel=function(){var carouselCropWidth=$(this).find(".carousel-inside-crop").width();var itemDiv=$(this).find(".carousel-items > div");itemDiv.width(carouselCropWidth);return this}})(jQuery);function initZooms(){if($thm.deviceWidthAtLeast($thm.deviceBreakpoints.tablet)){$("article .zoom").colorbox({rel:"article-gallery",maxWidth:$thm.deviceWidth,})}else{$.colorbox.remove();$("article .zoom").attr("target","_blank")}}$(document).ready(function(){$("article .zoom").append('
');$("article .zoom").addClass("article-gallery");$("article .zoom").attr("title",function(){if($(this).parent().find("figcaption").text()){return $(this).parent().find("figcaption").text()}else{return $(this).find("img").attr("alt")}});$(window).resize(function(){initZooms()}).resize();prettyPrint();$(".proscons-wrapper.multi .ss-icon").click(function(){var clickedProsCons=$(this).parents(".proscons");if(clickedProsCons.hasClass("active")){var toHide=clickedProsCons.find(".proscons-left, .proscons-right");toHide.slideUp();clickedProsCons.removeClass("active");$(this).text("dropdown")}else{var toShow=clickedProsCons.find(".proscons-left, .proscons-right");toShow.slideDown();clickedProsCons.addClass("active");$(this).text("directup")}});var pinAdThreshold=1200;var pinAdShown=false;var pinAdExit;$(window).scroll(function(){pinAdExit=$("footer").offset().top-$(window).height();if($(window).scrollTop()>pinAdThreshold&&$(window).scrollTop()