if(!window.adInclude){document.write('<script type="text/javascript" src="http://custom.theatlantic.com/adexclude/?u='+document.location.href.substring(7)+'&c=toyota" ><\/script>')}var ATMO=(function(){var a={};a.borderizeVoices=function(c){var f=$("#voices-grid"),b,e,g,d;if(c){if("string"===typeof c){$("#voice-box-"+c).remove()}else{if($.isArray(c)){for(d=0;d<c.length;d+=1){$("#voice-box-"+c[d]).remove()}}}}b=f.children("div");e=b.length%2;b.each(function(h){g=$(b.get(h));if(!(h%2)){g.addClass("border")}if(e){if(b.length-h<=1){g.addClass("last")}}else{if(b.length-h<=2){g.addClass("last")}}})};return a}());ATMO.ads=(function(){var b={},a=function(d){var c,e="";for(c in d){if(d.hasOwnProperty(c)&&d[c]){e+=c+"="+d[c]+";"}}return e};b.createFactory=function(e,j,i){var f=Math.round(Math.random()*10000000000000000),g=0,h=e||"dctestsite",d=j||"dctestzone",c=i||"",k=function(m,n){return(m||h)+"/"+(n||d)},l={};if("string"!==typeof c){c=a(c)}l.displayAtlanticAd=function(n,p,m,q){var o="http://ad.doubleclick.net/adj/"+k(m,q)+";";g+=1;o+="pos="+n+";";o+="tile="+g+";";if("topleader"===n){o+="dcopt=ist;"}o+=c+"sz="+p+";ord="+f+";exclude=";if(!window.adInclude.toyota){o+="toyota"}o+="?";document.write('<script src="'+o+'" type="text/javascript"><\/script>')};return l};return b}());ATMO.nav=(function(){var b={},c,e=[{title:"Magazine",link:"http://www.theatlantic.com/doc/current",offImg:"http://static.theatlantic.com/images/nav/magazine_off.png",onImg:"http://static.theatlantic.com/images/nav/magazine_on.png",submenu:[{title:"Current Issue",link:"http://www.theatlantic.com/doc/current"},{title:"Back Issues",link:"http://www.theatlantic.com/magazine/backissues.mhtml"},{title:"Fiction Issue",link:"http://www.theatlantic.com/doc/200808"},{title:"Flashbacks",link:"http://www.theatlantic.com/doc/index/flashbacks"},{title:"Premium Archive",link:"http://pqasb.pqarchiver.com/theatlantic/advancedsearch.html"},{title:"Newsletters",link:"http://www.theatlantic.com/a/newsletters.mhtml"},{title:"Subscribe",link:"https://secure.palmcoastd.com/pcd/eSv?iMagId=23301&i4Ky="},{title:"Renew",link:"https://secure.palmcoastd.com/pcd/eServ?iServ=MjMzMDE1ODgzNQ=="}]},{title:"Channels",offImg:"http://static.theatlantic.com/images/nav/channels_off.png",onImg:"http://static.theatlantic.com/images/nav/channels_on.png",submenu:[{title:"Business",link:"http://business.theatlantic.com/"},{title:"Politics",link:"http://politics.theatlantic.com/"},{title:"Food",link:"http://food.theatlantic.com/"}]},{title:"Voices",link:"http://www.theatlantic.com/bloggers.mhtml",offImg:"http://static.theatlantic.com/images/nav/voices_off.png",onImg:"http://static.theatlantic.com/images/nav/voices_on.png",submenu:[{title:"Sullivan",link:"http://andrewsullivan.theatlantic.com/the_daily_dish/"},{title:"McArdle",link:"http://meganmcardle.theatlantic.com/"},{title:"Ambinder",link:"http://marcambinder.theatlantic.com/"},{title:"Coates",link:"http://ta-nehisicoates.theatlantic.com/"},{title:"Fallows",link:"http://jamesfallows.theatlantic.com/"},{title:"Goldberg",link:"http://jeffreygoldberg.theatlantic.com/"},{title:"Crook",link:"http://clivecrook.theatlantic.com/"}]},{title:"Correspondents",link:"http://correspondents.theatlantic.com/",offImg:"http://static.theatlantic.com/images/nav/correspondents_off.png",onImg:"http://static.theatlantic.com/images/nav/correspondents_on.png"},{title:"Dispatches",link:"http://www.theatlantic.com/doc/index/dispatch",offImg:"http://static.theatlantic.com/images/nav/dispatches_off.png",onImg:"http://static.theatlantic.com/images/nav/dispatches_on.png"},{title:"Video",link:"http://podcasts.theatlantic.com/",offImg:"http://static.theatlantic.com/images/nav/video_off.png",onImg:"http://static.theatlantic.com/images/nav/video_on.png",submenu:[{title:"Slideshows",link:"http://podcasts.theatlantic.com/slideshow/"},{title:"Videos",link:"http://podcasts.theatlantic.com/video/"},{title:"Audio",link:"http://podcasts.theatlantic.com/audio/"}]},{title:"Subscribe",link:"https://secure.palmcoastd.com/pcd/eSv?iMagId=23301&i4Ky=",offImg:"http://static.theatlantic.com/images/nav/subscribe_off.png",onImg:"http://static.theatlantic.com/images/nav/subscribe_on.png",submenu:[{title:"Subscribe",link:"https://secure.palmcoastd.com/pcd/eSv?iMagId=23301&i4Ky="},{title:"Renew",link:"https://secure.palmcoastd.com/pcd/eServ?iServ=MjMzMDE1ODgzNQ=="},{title:"Subscribe Help",link:"https://secure.palmcoastd.com/pcd/eServ?iServ=MjMzMDE1ODgzNQ=="}]}],d=function(j){var k,g,h=e[j].submenu,f=$("#submenu");f.empty();for(g=0;g<h.length;g+=1){if(h[g].link){if(h[g].title.match(/subscribe$/i)){h[g].link+=b.subscribeSection}k=$("<a></a>").attr({id:"smitem"+g,href:h[g].link}).text(h[g].title)}else{k=$("<span></span>").attr("id","smitem"+g).text(h[g].title)}k.wrap('<li id="subMenuItem'+g+'"></li>');f.append(k)}},a=function(g){var f=parseInt($(g.target).attr("id").charAt(5),10);if(c>-1){$("#mmImg"+c).attr("src",e[c].offImg)}if(e[f].onImg){$("#mmImg"+f).attr("src",e[f].onImg)}if(e[f].submenu){d(f)}else{$("#submenu").html("<li>&nbsp;</li>")}c=f};b.build=function(k){var f,j,l=$('<div id="menu"></div>'),h=$('<ul id="mainmenu"></ul>'),g=$('<ul id="submenu"></ul>');b.subscribeSection=k||"IA1D";for(f=0;f<e.length;f+=1){if(e[f].title.match(/subscribe/i)){e[f].link+=b.subscribeSection}if(e[f].link){j=$('<a href="'+e[f].link+'"></a>')}else{j=$("<span></span>")}j.attr("id","mmItem"+f);j.bind("mouseover",a);j.append($("<img />").attr({id:"mmImg"+f,src:e[f].offImg,alt:e[f].title}));h.append($("<li></li>").attr({id:"mainMenuItem"+f,className:"mitem menu-item menu-item-"+e[f].title.toLowerCase()}).append(j))}l.append(h);l.append(g.html($("<li>&nbsp;</li>")));l.insertAfter("#header")};b.setMenuTree=function(f){delete e;e=f;$("#menu").remove();b.build()};b.getMenuTree=function(){return e};return b}());ATMO.slideshow=(function(){var c={},a=navigator.userAgent,b=!!(a.match(/mobile/i)&&a.match(/safari/i));c.init=function(g,i){var m,l,e=[],k={},h=[],f=function(n){return $("<p>"+n+"</p>")},d=function(n){$(".ss-serif","#"+k.slideshowID).show().eq(n).hide().end().eq(n-1).hide()},j=function(q){if(m!==q){var t=$(q).parent().find(".slideshow-story").index(q),u=$(q).find("a").attr("href"),r=e[t].image,v=f(i[t].attrib),o=$("#"+k.slideshowID).find(".slideshow-images"),w=o.children("div").get(0),p=$("<a></a>"),n;p.attr("href",u);p.append(r);n=$("<div></div>").addClass("slideshow-image");n.append(p);n.append(v);if(w){o.children(".slideshow-image").replaceWith(n)}else{o.append(n)}$(m).removeClass("selected");$(q).addClass("selected");if(!b){$(q).wrap('<a href="'+u+'"></a>');$(m).parent().replaceWith($(m))}else{$(q).bind("mousemove",function(){document.location=h[t]});$(m).unbind("mousemove")}m=q;d(t)}};k.slideshowID=g;k.setImages=function(n){var o,q,p=[];for(q=0;q<n.length;q+=1){o=$("<img />").attr({src:n[q].src,width:"352",height:"248"});p.push({image:o,attrib:n[q].attrib})}e=p};k.setImages(i);$(".slideshow-story","#"+g).each(function(n){var o=this;$(o).hover(function(){l=setTimeout(function(){j(o)},20)},function(){clearTimeout(l)})});if(b){$("#"+g).find(".story-headline").each(function(n){h[n]=$(this).children("a").attr("href");$(this).html($(this).children("a").html())})}j($(".slideshow-story","#"+g).get(0));return k};return c}());$(document).ready(function(){$("#mainmenu img").click(function(){s.tl(this,"o","Nav - "+$(this).attr("alt"))});$("#submenu a").click(function(){s.tl(this,"o","Subnav - "+$(this).html())});$("#slideshow .heading:eq(1)").click(function(){s.tl(this,"o","Slideshow 1")});$("#slideshow .heading:eq(2)").click(function(){s.tl(this,"o","Slideshow 2")});$("#slideshow .heading:eq(3)").click(function(){s.tl(this,"o","Slideshow 3")});$("#cross-promote a").click(function(){s.tl(this,"o","Feedbox")});$("#channels #politics a").click(function(){s.tl(this,"o","Feedbox - Politics")});$("#channels #business a").click(function(){s.tl(this,"o","Feedbox - Business")});$("#channels #food a").click(function(){s.tl(this,"o","Feedbox - Food")});$("#channels #magazine a").click(function(){s.tl(this,"o","Feedbox - Magazine")});$("#subform form").submit(function(){s.tl(this,"o","Circulation Form Submission")});$("#subform form").focus(function(){s.tl(this,"o","Circulation Form Focused")});$("#mostread_content1 a").click(function(){s.tl(this,"o","Most Box 1")});$("#mostread_content2 a").click(function(){s.tl(this,"o","Most Box 2")});$("#mostread_content3 a").click(function(){s.tl(this,"o","Most Box 3")});$("#magazinebox a").click(function(){s.tl(this,"o","Current Issue")});$("#newsletters form").submit(function(){s.tl(this,"o","Newsletter Enrollment")});$("#AtlanticWireMini a").click(function(){s.tl(this,"o","Special Reports Module")});$("#more_from_the_atlantic a").click(function(){s.tl(this,"o","More From the Atlantic")});$("#voice-box-andrew-sullivan a").click(function(){s.tl(this,"o","Voices - Andrew Sullivan")});$("#voice-box-megan-mcardle a").click(function(){s.tl(this,"o","Voices - Megan McArdle")});$("#voice-box-marc-ambinder a").click(function(){s.tl(this,"o","Voices - Marc Ambinder")});$("#voice-box-ta-nehisi-coates a").click(function(){s.tl(this,"o","Voices - Ta Nahisi")});$("#voice-box-james-fallows a").click(function(){s.tl(this,"o","Voices - James Fallows")});$("#voice-box-jeffrey-goldberg a").click(function(){s.tl(this,"o","Voices - Jeffrey Goldberg")});$("#voice-box-clive-crook a").click(function(){s.tl(this,"o","Voices - Clive Crook")});$("#rp ul:first a").click(function(){s.tl(this,"o","Recent Posts - Ambinder")});$("#rp ul:eq(2) a").click(function(){s.tl(this,"o","Recent Posts - Good")});$("#search form").submit(function(){s.tl(this,"o","Search Box")});$("#circ_ad a").click(function(){s.tl(this,"o","Circ Ad")});$("#circ_ad_2 a").click(function(){s.tl(this,"o","Circ Ad 2")});$("#archives a").click(function(){s.tl(this,"o","Archives")});$("#blog_roll a").click(function(){s.tl(this,"o","Blog Roll")});$("#whatreading a").click(function(){s.tl(this,"o","What Were Reading")});$(".content-nav a").click(function(){s.tl(this,"o","Blog - Next/Previous Entry")})});
