(function(A){TWP.Module=window.TWP.Module||{};TWP.Module.SocialButtons=window.TWP.Module.SocialButtons||{};TWP.Module.SocialButtons.staticSocialPopup=function(D){window.open(D,"","width=600,height=450,resizable=yes,scrollbars=yes");return false;};var C=TWP.get("Util.HeaderDetection");var B=(C.isIe7()||C.isIe8())?true:false;if(B){A("#check-fb").html("");A("#check-twitter").html("");A("#check-google").html("");}})(jQuery);(function(A){TWP.Module.PartnersContent=function(D){this.sectionContext=D;var F=A("#garden");var E=A("#harvest ul");var C=A(".partners-content");switch(this.sectionContext){case"/Business":case"/World":var B=A("a",F);B.each(function(){E.append(this);});var G=A("a",E);G.each(function(){A(this).wrap("
  • ");});break;}};})(jQuery);(function(A){TWP.Article={windowLoaded:false,elems:{},placeInlineAd:function(){if(TWP.Article.elems.$inlineAd.length>0){var E=TWP.Article.elems.$sideRail;var D=TWP.Article.elems.$article;var B=E.height()+200;var C=TWP.Article.elems.$inlineAd;var F=null;this.elems.$articlePs.each(function(H,I){if(F!=null){return ;}$ele=A(I);var G=$ele.position().top;if(G>B){F=$ele;}});if(F!=null){placeAd2(commercialNode,"inline_bb","adi","");}else{C.css("display","none");}}},relatedContent:function(){var B=this.elems;if(B.$relatedContent.length>0){var C=B.$relatedContent.parent(".wp-row ");TWP.Modules.setLargestHeight(B.$relatedContent,C);}},init:function(B){this.cacheElems();this.treeMenu.init();this.events(this);this.relatedContent();if(this.elems.$graphic_overlay.length>0){this.graphicStory();}},cacheElems:function(){this.elems.$treeMenu=A("#tree-menu");this.elems.$inlineAd=A("#slug_inline_bb");this.elems.$article=A("#article");this.elems.$content=A("#content");this.elems.$sideRail=A("#article-side-rail");this.elems.$articlePs=this.elems.$sideRail.nextAll(".article_body");this.elems.$articlePs=A("p",this.elems.$articlePs);this.elems.$rateLinks=A(".rate");this.elems.$galleryLaunchers=A(".gallery-container");this.elems.$relatedContent=A("#outbrainContainer,#partners-content");this.elems.$carousel=A("#carousel",this.elems.$content);this.elems.$graphic_overlay=A(".mmc_overlay",this.elems.$sideRail);this.elems.$timestamp=A(".timestamp",this.elems.$article);},graphicStory:function(){var E=new Date();var C=E.getSeconds();var B=this.elems.$timestamp.attr("epochtime");var F=new Date("July 28, 2011 10:00:00");var D=F.getSeconds();if(B0){A("body").mouseenter(function(){if(TWP.Article.windowLoaded){A.getScript("/r/sites/twpweb/js/plugin/plugin.carousel-2.0.0.js",function(){E.carousel();});A(this).unbind();}});}C.mouseenter(function(){var F=A(this).find(".Gallery-play");F.removeClass("hide");});C.mouseleave(function(){var F=A(this).find(".Gallery-play");F.addClass("hide");});},treeMenu:{init:function(){if(TWP.Article.elems.$treeMenu.length>0){var B=TWP.Article.elems.$treeMenu;B.nextAll().css("display","none");this.assignHandlers(B);}},assignHandlers:function(B){var C=A("a",B);C.toggle(function(D){D.preventDefault();B.nextAll().css("display","block");},function(D){D.preventDefault();B.nextAll().css("display","none");});}}};A(document).ready(function(){config={context:".newsletter-signup"};TWP.Article.init(siteContext);});A(window).load(function(){TWP.Article.windowLoaded=true;});})(jQuery);(function(A){TWP=TWP||{};TWP.Util=TWP.Util||{};TWP.Util.Fotomoto=TWP.Util.Fotomoto||{};TWP.Util.Fotomoto.apiLoaded=false;TWP.Util.Fotomoto.imgHold=undefined;TWP.Util.Fotomoto.isPrintHold=undefined;TWP.Util.Fotomoto.storeKey="5ae204a04a89b4bad30debac9f46215800736ef5";TWP.Util.Fotomoto.checkinServiceUrl="http://widget.fotomoto.com/stores/photo_checkin";TWP.Util.Fotomoto.buyPhoto=TWP.Util.Fotomoto.buyPhoto||function(C,B){if(TWP.Util.Fotomoto.apiLoaded){TWP.Util.Fotomoto.imgHold=undefined;if(typeof B!="undefined"&&B){FOTOMOTO.API.showWindow(100,C);}else{FOTOMOTO.API.showWindow(FOTOMOTO.API.BUY,C);}}else{TWP.Util.Fotomoto.imgHold=C;if(typeof B!="undefined"){TWP.Util.Fotomoto.isPrintHold=B;}A.getScript("http://widget.fotomoto.com/stores/script/"+TWP.Util.Fotomoto.storeKey+".js?api=true");}};TWP.Util.Fotomoto.checkinPhotos=TWP.Util.Fotomoto.checkinPhotos||function(C){for(var B=0;B