;(function(jQuery){var l=location.href.replace(/#.*/,'');var g=jQuery.localScroll=function(a){jQuery('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=jQuery.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;jQuery(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};jQuery.fn.localScroll=function(b){b=jQuery.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=jQuery([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||jQuery(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=jQuery(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=jQuery('<a> </a>').attr(j,d).css({position:'absolute',top:jQuery(window).scrollTop(),left:jQuery(window).scrollLeft()});f[j]='';jQuery('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);;(function(jQuery){var m=jQuery.scrollTo=function(b,h,f){jQuery(window).scrollTo(b,h,f)};m.defaults={axis:'xy',duration:parseFloat(jQuery.fn.jquery)>=1.3?0:1};m.window=function(b){return jQuery(window).scrollable()};jQuery.fn.scrollable=function(){return this.map(function(){var b=this,h=!b.nodeName||jQuery.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!h)return b;var f=(b.contentWindow||b).document||b.ownerDocument||b;return jQuery.browser.safari||f.compatMode=='BackCompat'?f.body:f.documentElement})};jQuery.fn.scrollTo=function(l,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};if(l=='max')l=9e9;a=jQuery.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=jQuery(k),d=l,p,g={},q=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px)?jQuery/.test(d)){d=n(d);break}d=jQuery(d,this);case'object':if(d.is||d.style)p=(d=jQuery(d)).offset()}jQuery.each(a.axis.split(''),function(b,h){var f=h=='x'?'Left':'Top',i=f.toLowerCase(),c='scroll'+f,r=k[c],s=h=='x'?'Width':'Height';if(p){g[c]=p[i]+(q?0:r-o.offset()[i]);if(a.margin){g[c]-=parseInt(d.css('margin'+f))||0;g[c]-=parseInt(d.css('border'+f+'Width'))||0}g[c]+=a.offset[i]||0;if(a.over[i])g[c]+=d[s.toLowerCase()]()*a.over[i]}else g[c]=d[i];if(/^\d+jQuery/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],u(s));if(!b&&a.queue){if(r!=g[c])t(a.onAfterFirst);delete g[c]}});t(a.onAfter);function t(b){o.animate(g,j,a.easing,b&&function(){b.call(this,l,a)})};function u(b){var h='scroll'+b;if(!q)return k[h];var f='client'+b,i=k.ownerDocument.documentElement,c=k.ownerDocument.body;return Math.max(i[h],c[h])-Math.min(i[f],c[f])}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);jQuery(document).ready(function(){jQuery('#categoryHolder a').click(function(){if(jQuery('#categoriesListHolder').html().length<200)
{jQuery.ajax({type:"GET",url:"/controller/?action=categories",dataType:"html",success:function(html){jQuery('#categoriesListHolder').html(html);setupCategories();jQuery('#topCategoriesLink').click();}});}
if(jQuery('#categoryHolder').hasClass('open'))
{jQuery('#categoriesListHolder').slideUp('slow',function(){jQuery('#categoryHolder').removeClass('open');jQuery('.hideMe').css({'visibility':'visible'});});}
else
{rollupMenus();jQuery('#categoryHolder').addClass('open');jQuery('.hideMe').css({'visibility':'hidden'});jQuery('#categoriesListHolder').slideDown();jQuery("body").bind("click",function(){rollupMenus();});jQuery('#categoriesListHolder').mouseout(function(){jQuery("body").bind("click",function(){rollupMenus();});});jQuery('#categoriesListHolder').mouseover(function(){jQuery("body").unbind("click");});}
jQuery(this).blur();return false;});jQuery('#archiveHolder a').click(function(){if(jQuery('#archivesList').html().length<50)
{jQuery.ajax({type:"GET",url:"/controller/?action=archives",dataType:"html",success:function(html){jQuery('#archivesList').html(html);setupArchives();}});}
if(jQuery('#archiveHolder').hasClass('open'))
{jQuery('#archiveListHolder').slideUp('slow',function(){jQuery('#archiveHolder').removeClass('open');jQuery('.hideMe').css({'visibility':'visible'});});}
else
{rollupMenus();jQuery('#archiveHolder').addClass('open');jQuery('.hideMe').css({'visibility':'hidden'});jQuery('#archiveListHolder').slideDown();jQuery("body").bind("click",function(){rollupMenus();});jQuery('#archiveListHolder').mouseout(function(){jQuery("body").bind("click",function(){rollupMenus();});});jQuery('#archiveListHolder').mouseover(function(){jQuery("body").unbind("click");});}
jQuery(this).blur();return false;});jQuery('#searchbox').focus(function(){if(jQuery('#searchbox').val()=='Search...')
{jQuery('#searchbox').val('');}});jQuery('#searchbox').blur(function(){if(jQuery('#searchbox').val()=='')
{jQuery('#searchbox').val('Search...');}});if(jQuery('.comments a').length==1)
{jQuery('.comments a').click(function(){jQuery.scrollTo('#comments',1000);});}
if(jQuery('#bottomNavHolder a').length==0)
{}
jQuery('.share a').each(function(){jQuery(this).bind("click",function(){var url=jQuery(this).parent().siblings('.permalink').children('a').attr('href');var title=jQuery(this).parents('.post').find('.storytitle').text();return addthis_open(this,'',url,title);});jQuery(this).bind("mouseout",function(){addthis_close()});});jQuery('.twitter a').each(function(){jQuery(this).bind("mouseover",function(){jQuery(this).addClass('target');var url=jQuery(this).parents('.postLeft').find('.permalink a').attr('href');var title=jQuery(this).parents('.post').find('.storytitle').text();var uri='http://api.bitly.com/shorten?version=2.0.1&longUrl='+url+'&login=ewdotcom&apiKey=R_b6e13e21933721d3ad9e3e64e306d6f0&format=json&history=1&callback=?';jQuery.ajax({url:uri,dataType:'json',success:function(data){jQuery.each(data.results,function(i,result){var hash=result.userHash;var shorturl='http://bit.ly/'+hash;var twitter_url='http://twitter.com/home?status=EW.com: '+title+' - '+shorturl+' +%23EW';jQuery('.target').attr('href',twitter_url).removeClass('target');});},error:function(error)
{}});jQuery(this).unbind("mouseover");});});if((jQuery.browser.msie)&&(jQuery.browser.version==6))
{}
jQuery('.storycontent embed, .storycontent iframe').each(function(){var height=jQuery(this).height();jQuery(this).css({'position':'relative','height':height});var width=jQuery(this).width();var parent=jQuery(this).parents('.postRight');var parent_offset=parent.offset();var offset=jQuery(this).offset();var actual_offset=offset.top-parent_offset.top;if(actual_offset>87)
{if(width>510)
{var new_left=510-width;jQuery(this).css({'left':new_left+'px'});if(jQuery.browser.msie)
{if(jQuery.browser.version!='8.0')
{jQuery(this).parents('.postRight').css({'overflow':'hidden'});}}}}});jQuery('.storycontent object, .storycontent embed').addClass('hideMe');jQuery('.storycontent a img').each(function(){jQuery(this).parent().css({'display':'block'});});if(jQuery('#bottomNav .alignright').height()>jQuery('#bottomNav .alignleft').height())
{jQuery('#bottomNav .alignleft').height(jQuery('#bottomNav .alignright').height());}
jQuery('#topCategoriesLink').click();jQuery('.ad').each(function(){var firstchild=jQuery(this).find('div:first');if(firstchild.width()==300)
{jQuery(firstchild).css({'margin':'0px auto'});}});jQuery('#blogNav #emailLink').click(function(){var email_iframe=jQuery(this).attr('href');var frame='<iframe id="emailiframe" src="'+email_iframe+'" width="500" height="380"/>';jQuery('#container').append(frame);return false;});});function setupCategories(){jQuery('#allCategories').click(function(){jQuery('#topCategories').hide();jQuery('#alphaCategories').show();jQuery('#categoriesListHeader .selected').removeClass('selected');jQuery(this).addClass('selected');return false;});jQuery('#topCategoriesLink').click(function(){jQuery('#alphaCategories').hide();jQuery('#topCategories').show();jQuery('#categoriesListHeader .selected').removeClass('selected');jQuery(this).addClass('selected');return false;});jQuery('#alphaLinksHolder a').click(function(){jQuery('#topCategories').hide();jQuery('#alphaCategories').show();jQuery('#categoriesListHeader .selected').removeClass('selected');jQuery('#allCategories').addClass('selected');jQuery('#categoriesList').scrollTo(jQuery(this).attr('href'));return false;});jQuery('#categoriesListHolder .closeDropdown').click(function(){rollupMenus();return false;});}
function setupArchives(){jQuery('#archivesListHolder .closeDropdown').click(function(){rollupMenus();return false;});}
function removeEmail(){jQuery('#emailiframe').remove();}
function rollupMenus()
{if(jQuery('#archiveHolder').hasClass('open'))
{jQuery('#archiveListHolder').slideUp('slow',function(){jQuery('#archiveHolder').removeClass('open');});}
if(jQuery('#categoryHolder').hasClass('open'))
{jQuery('#categoriesListHolder').slideUp('slow',function(){jQuery('#categoryHolder').removeClass('open');});}
jQuery('.hideMe').css({'visibility':'visible'});jQuery("body").unbind("click");}
var WEEKDAYS=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var MONTHS=['January','February','March','April','May','June','July','August','September','October','November','December'];var MONTHS_ABBREVIATED=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];function initializePartnerBar(){var partners=[{logo:"http://img2.timeinc.net/ew/i/homepage/partners/people_logo.gif",feed:"http://rss.people.com/web/people/rss/topheadlines/index.xml",moreTitle:"More from People.com",link:"http://www.people.com/people",classSuffix:"people"},{logo:"http://img2.timeinc.net/ew/i/homepage/partners/cnn_logo.gif",feed:"http://www.cnn.com/partners/ew/index.rss",moreTitle:"More from CNN",link:"http://www.cnn.com/",classSuffix:"cnn"},{logo:"http://img2.timeinc.net/ew/img/newsletter/aol_tv_logo6.gif",feed:"http://feeds.aol.com/rss_2.0/entertainment/tv/tv_goingon.rss",moreTitle:"More from AOL Television",link:"http://television.aol.com/",classSuffix:"aol"},{logo:"http://img2.timeinc.net/ew/img/newsletter/huffingtonpost-sr6.gif",feed:"http://feeds.huffingtonpost.com/HP/Entertainment?format=xml",moreTitle:"More from Huffington Post",link:"http://www.huffingtonpost.com/",classSuffix:"huffpost"},{logo:"http://img2.timeinc.net/ew/img/consumer_marketing/fark-minilogo3.gif",feed:"http://www.fark.com/showbiz/fark.rss",moreTitle:"More from Fark.com",link:"http://www.fark.com/",classSuffix:"fark"}];var options={semanticMarkup:true,headerTitle:"From our Partners",numEntries:2,autoAdjustOnFailure:true}
jQuery('#partnerbar').append('<div class="pb-root"><h3 class="pb-header">'+options.headerTitle+'</h3><div class="pb-partner-table">');jQuery.each(partners,function(i,partner){var uri='http://www.google.com/uds/Gfeeds?context=0&num=2&hl=en&q='+partner.feed+' &key=notsupplied&v=1.0&;alt=json-in-script&callback=data';var feed=new google.feeds.Feed(partner.feed);feed.setNumEntries(options.numEntries);feed.load(function(json){if(!json.error){var html='<div class="pb-partner-cell pb-partner-cell-'+partner.classSuffix+'"><h4 class="pb-partner-logo pb-partner-logo-'+partner.classSuffix+'"><a href="'+partner.link+'" class="pb-partner-logo pb-partner-'+partner.classSuffix+'" target="_blank"><img src="'+partner.logo+'" class="pb-partner-logo pb-partner-logo-'+partner.classSuffix+'"/></a></h4><ul class="pb-partner-feedData pb-partner-feedData-'+partner.classSuffix+'">';jQuery.each(json.feed.entries,function(i,entry){html+='<li class="pb-entry pb-entry-'+partner.classSuffix+'"><div class="pb-title"><a href="'+entry.link+'" class="pb-title" target="_blank">'+entry.title+'</a></div></li>';});html+='</ul><div class="pb-partner-moreLink pb-partner-moreLink-'+partner.classSuffix+'"><div class="pb-partner-moreLink pb-partner-moreLink-'+partner.classSuffix+'"><a href="'+partner.link+'" class="pb-partner-moreLink" target="_blank">'+partner.moreTitle+'</a></div></div>';jQuery('#partnerbar .pb-partner-table').append(html);}});});jQuery('#partnerbar .pb-root').append('<div class="pb-footer"></div>');jQuery('#partnerbar').append('</div></div>');}
function showCenteredPopup(name,url,features,width,height){var top=(window.screen.height/2)-height/2;var left=(window.screen.width/2)-width/2;if(features==null||features==''){features="scrollbars=yes,toolbar=no,menubar=no,status=no,location=no";}
window.open(url,name.replace(' ','_'),features+",top="+top+",left="+left+",width="+width+",height="+height);}
MoviesCalendarFeed={calendar:'dk7ni186hjl08opf9pv5673o78@group.calendar.google.com',title:'Movies',page_url:'/ew/picks/movies/0,,,00.html'};TVCalendarFeed={calendar:'g25q1f38jj5au1ie7i72jqkqjk@group.calendar.google.com',title:'TV',page_url:'/ew/picks/tv/0,,,00.html'};MusicCalendarFeed={calendar:'399e1ajetvqfocpqta796fn3as@group.calendar.google.com',title:'Music',page_url:'/ew/picks/music/0,,,00.html'};BooksCalendarFeed={calendar:'vq165ao5ta8vbvpeh22ta0ql5s@group.calendar.google.com',title:'Books',page_url:'/ew/picks/books/0,,,00.html'};TechCalendarFeed={calendar:'3l3l739du9ceins3ip56osun8g@group.calendar.google.com',title:'Tech',page_url:'/ew/picks/tech/0,,,00.html'};WhatElseIsNewFeed={calendar:'bo209cq3743qkmd4ik5pkmjjv8@group.calendar.google.com',title:'What Else Is New',page_url:'/ew/picks/what-else-is-new/0,,,00.html'};WhatElseIsNewBooks={calendar:'ajjc0vun8agaubovuk9en25jp8@group.calendar.google.com',title:'What Else is New: Books',page_url:'/ew/picks/what-else-is-new/book/0,,,00.html'};function getPicks(feed)
{var now=new Date();var curr_date=now.getDate();var curr_month=now.getMonth();var curr_year=now.getFullYear();var curr_day=now.getDay();var months_array=['01','02','03','04','05','06','07','08','09','10','11','12'];var WEEKDAYS=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var MONTHS=['January','February','March','April','May','June','July','August','September','Octover','November','December'];var MONTHS_ABBREVIATED=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];if(curr_date.toString().length==1)
{nice_date='0'+curr_date;}
else
{nice_date=curr_date;}
var start_min=curr_year+'-'+months_array[curr_month]+'-'+nice_date;var start_min_text="start-min="+start_min+"&";var uri="http://www.google.com/calendar/feeds/"+feed.calendar+"/public/full?"+start_min_text+"orderby=starttime&sortorder=ascending&singleevents=true&alt=json-in-script&callback=?";jQuery.getJSON(uri,function(json){var header='<div class="dtstart" title="'+curr_year+'-'+months_array[curr_month]+'-'+curr_year+'">';header+='<span class="weekday">'+WEEKDAYS[curr_day]+'</span><abbr class="month" title="'+MONTHS_ABBREVIATED[curr_month]+'">'+MONTHS_ABBREVIATED[curr_month]+'</abbr>';header+='<span class="day">'+curr_date+'</span></div>';jQuery('#ewpicks-channelapp .hd').append(header);var html='<h3><a href="http://ew.com'+feed.page_url+'">'+feed.title+'</a></h3>';jQuery.each(json.feed.entry,function(i,entry){if(i<1)
{var x=(entry['gd$where'])?entry['gd$where'][0].valueString:"";var links=x.split('#');html+='<div class="vevent"><h4 class="summary"><a href="'+links[0]+'">'+entry.title.$t+'</a></h4>';if(typeof(links[1])=="undefined")
{links[1]='Read More';}
html+='<p class="description">'+entry.content.$t+'</p><a class="url" href="'+links[0]+'">'+links[1]+'</a>';}})
html+='<a class="more" href="http://www.ew.com/'+feed.page_url+'">See Weekly '+feed.title+' Picks </a></div>';var title=feed.title.toLowerCase();jQuery('#ewpicks-'+title).removeClass('loading').append(html);jQuery('#ewpicks-'+title).addClass(title);});}
function update_comments(post_id){jQuery('#'+post_id+' .commentPager a').each(function(){jQuery(this).unbind("click");jQuery(this).bind("click",function(){var page=jQuery(this).html();if(page.toString().search(/^-?[0-9]+jQuery/)==0)
{}
else
{if(page.substring(0,1)=="N")
{current_page=jQuery('#'+post_id+' .commentPager .current').html();page=parseInt(current_page,10)+1;}
else
{current_page=jQuery('#'+post_id+' .commentPager .current').html();page=parseInt(current_page,10)-1;}}
jQuery.ajax({url:'/controller/',type:'GET',data:"action=show_comments&post_id="+post_id+"&page="+page,success:function(html){jQuery('#'+post_id+' .feedback').html(html);update_comments(post_id);}});return false;});});}
function ewGetTypePadsprop7(){var url=document.location+'';url=url.split("?",1);return url;}
function tiiQuigoSetEnabled(b){_tiiQuigoEnabled=b;}
function tiiQuigoIsEnabled(){if(typeof(_tiiQuigoEnabled)=="boolean"){return _tiiQuigoEnabled;}
return true;}
function tiiQuigoWriteAd(pid,placementId,zw,zh,ps){if(tiiQuigoIsEnabled()){qas_writeAd(placementId,pid,ps,zw,zh,'ads.adsonar.com');}}
function showCenteredPopup(name,url,features,width,height){var top=(window.screen.height/2)-height/2;var left=(window.screen.width/2)-width/2;if(features==null||features==''){features="scrollbars=yes,toolbar=no,menubar=no,status=no,location=no";}
window.open(url,name.replace(' ','_'),features+",top="+top+",left="+left+",width="+width+",height="+height);}
ewMagicNumberObject=function(adWidth,adHeight,magicNumber){this.adWidth=adWidth;this.adHeight=adHeight;this.magicNumber=magicNumber;this.placementKey=adWidth+"x"+adHeight;this.placements=new Array();this.placements[this.placementKey]=magicNumber;}
ewMagicNumberObject.prototype.getMagicNumber=function(adWidth,adHeight){return this.placements[this.placementKey];}
var ewMagicNumberObj=new ewMagicNumberObject('','','');var ewHeaderMagicNumberObj=new ewMagicNumberObject(365,104,93223283);function getMostPopular(){jQuery.getJSON("/controller/?action=show_json",function(json){var block="<h3>"+json.title+"</h3>";block+="<ul>"
jQuery.each(json.rows,function(i,item){block+="<li>"+
'<div class="numcont '+item.row+item.position+'"></div>'+
'<div class="txtcont"><span class="eyebrow"></span><a href="'+item.url+'">'+item.text+'</a></div>'+
'</li>';});block+="<div class=\"clr\"></div></ul>";jQuery('.tmostpopH').html(block);});}
function alsoThisWeek(){var WEEKDAYS=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var MONTHS=['January','February','March','April','May','June','July','August','September','Octover','November','December'];var MONTHS_ABBREVIATED=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];var now=new Date();var curr_date=now.getDate();var curr_month=now.getMonth();var curr_year=now.getFullYear();var months_array=['01','02','03','04','05','06','07','08','09','10','11','12'];if(curr_date.toString().length==1)
{curr_date='0'+curr_date;}
var start_min=curr_year+'-'+months_array[curr_month]+'-'+curr_date;var start_min_text="start-min="+start_min+"&";var uri="http://www.google.com/calendar/feeds/74n5gsne9fbjfo5coh9tr2gnok@group.calendar.google.com/public/full?"+start_min_text+"orderby=starttime&sortorder=ascending&singleevents=true&alt=json-in-script&callback=?"
jQuery.getJSON(uri,function(json){var html='<h3><a href="/ew/picks/also-this-week/0,,,00.html">'+json.feed.title.$t+'</a></h3>'+
'<div id="looking-ahead-results">'+
'<div id="looking-ahead-loading" class=""></div>';jQuery.each(json.feed.entry,function(i,entry){var start=(entry['gd$when'])?entry['gd$when'][0].startTime:"";var niceDate=start.replace(/-/g,'/');var mydate=new Date(niceDate);var startDate=mydate.getDate();var month=mydate.getMonth();var niceMonth=MONTHS_ABBREVIATED[month];if(i<8){html+='<div class="item"><div class="dateHolder" title="'+start+'"><span class="month">'+niceMonth+'</span>  <span class="date">'+startDate+'</span></div><div class="item-description"><span class="summary">'+entry.title.$t+'</span></div></div>';}})
html+='</div>';jQuery('#lookingAhead').hide().html(html);jQuery('#lookingAhead .item:last').addClass('last');jQuery('#lookingAhead').fadeIn();});}
function buildBrightcovePlayer(playerID,videoID,width,height){var config=new Array();config["videoRef"]=null;config["lineupId"]=null;config["playerTag"]=null;config["autoStart"]=false;config["preloadBackColor"]="#FFFFFF";config["width"]=width;config["height"]=height;config["playerId"]=playerID;config["videoId"]=videoID;createExperience(config,8);}
function getTonightsBest(){var uri='http://www.ew.com/ew/static/j/ads/tonights_best_jsonp.js';jQuery.getScript(uri,function(){setTimeout("tonightsBest()",700);});}
var addthis_exclude='print, email';