function adLoad(type,size,tagid,min_resolution,max_resolution,iframe){var screen_width=$(window).width();var code='';var show_ad_code=false;tagid=(tagid)?tagid:false;min_resolution=(min_resolution>0)?min_resolution:0;max_resolution=(max_resolution>0)?max_resolution:100000;iframe=(iframe)?iframe:false;show_ad_code=(screen_width>=min_resolution&&screen_width0){tagid=false;ad_pulsepoint(size,tagid,iframe);}else if(show_ad_code&&type=='usatoday'){ad_usatoday(size,tagid,iframe);}} function ad_adsense(size,tagid,iframe){var responsive=size.includes('r');size.replace('r','');var dimensions=size.split('x');var size_w=dimensions[0];var size_h=dimensions[1];adcode='';adcode+='';adcode+='(adsbygoogle = window.adsbygoogle || []).push({});';var iframe_url='/ads/cache/adsense_'+tagid+'_'+size+'.html';ad_refresh(iframe_url,size);if(iframe){document.write(ad_iframecode(iframe_url,size));}else{document.write(adcode);} ad_refresh(false,size);} function ad_usatoday(size,tagid,iframe){var dimensions=size.split('x');var size_w=dimensions[0];var size_h=dimensions[1];var pathname=window.location.pathname;var size2=(size=='970x66')?'728x90':size;var iframe_url='/ads/cache/usatoday_'+tagid+'_'+size2+'.html';ad_refresh(iframe_url,size2);if(iframe){document.write(ad_iframecode(iframe_url,size));}else if(typeof unveil_ads!='undefined'&&size in unveil_ads){document.write('');}else if(size=='320x50'){document.write("googletag.pubads().definePassback('/7103,2122518/SMG_49ersWebZone/320x50_1m', [[320,50],[300,50]]).display();");}else if(size=='300x250'&&tagid=='1m'){document.write("googletag.pubads().definePassback('/7103,2122518/SMG_49ersWebZone/300x250_1m', [300,250]).display();");}else if(size=='300x251'){document.write("googletag.pubads().definePassback('/7103,2122518/SMG_49ersWebZone/300x250_2a/sports/football/nfl."+(pathname=='/'?"main":"general")+"', [[300,250],[300,600]]).display();");}else if(size=='970x66'){document.write("
googletag.pubads().definePassback('/7103,2122518/SMG_49ersWebZone/launchpad/sports/football/nfl."+(pathname=='/'?"main":"general")+"', [[970,66],[970,250],[728,90]]).display();
");}else{document.write("googletag.pubads().definePassback('/7103,2122518/SMG_49ersWebZone/"+size+"_"+tagid+"/sports/football/nfl."+(pathname=='/'?"main":"general")+"', ["+size_w+","+size_h+"]).display();");} ad_refresh(false,size2);} function randomIntFromInterval(min,max){return Math.floor(Math.random()*(max-min+1)+min);} function ad_stanza(layout){var has_stanza=1;document.write("
");} function ad_stanza_foot(){if(typeof has_stanza!=='undefined'&&has_stanza==1){}} function ad_iframecode(url,size){return'';} function ad_refresh(iframe_url,size){if(typeof client_desktop!=='undefined'&&client_desktop&&typeof adxreload=='number'&&(size=='728x90'||size=='160x600'||size=='300x250')){if(iframe_url==false){document.write('');}else{document.write('
');}}} $(function(){if(typeof client_desktop!=='undefined'&&client_desktop&&typeof adxreload=='number'&&$('#usatoday-970x66').length&&$('#usatoday-970x66 > div > div').is(':visible')){var iframe_url='/ads/cache/usatoday_1a_728x90.html';setTimeout(function(){if($('#usatoday-970x66').find('a.backup-ad').length==0){$('#usatoday-970x66').slideUp('slow',function(){$('#usatoday-970x66').remove();$('#top-spacer').html('
'+ad_iframecode(iframe_url,'728x90')+'
');});}},adxreload*1000);} if($('div[data-iframe][data-dimensions]').length){function refreshAds(){var r_ads=setInterval(function(){$('div[data-iframe][data-dimensions]').each(function(){var iframe_load=$(this).data('iframe');var adsize_load=$(this).data('dimensions');if($(this).is(':visible')&&!($(this).find('a.backup-ad').length>0)){$(this).html(ad_iframecode(iframe_load,adsize_load));}});clearInterval(r_ads);refreshAds();},adxreload*1000);} refreshAds();}});function topTicketBanner(line1,line2,line3,link,window,classname){$('#adcontainer_728x90_top').addClass('make-room');document.write('
'+line1+'
'+line2+'
'+line3+'
');} var client_ua=navigator.userAgent.toLowerCase();var client_desktop=(client_ua.indexOf('android')==-1&&client_ua.indexOf('iphone')==-1&&client_ua.indexOf('ipod')==-1&&client_ua.indexOf('ipad')==-1)?true:false;var client_ios=(client_ua.match(/(ipad|iphone|ipod)/g))?true:false;if(self!=top){if(document.images){top.location.replace(window.location.href);}else{top.location.href=window.location.href;}} if(getCookie('theme')=='dark'||(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches&&getCookie('theme')!=='light')){$('html').attr('data-theme','dark');} function theme_switcher(theme){if(theme){theme=theme;}else if(!getCookie('theme')){theme='auto';}else if(getCookie('theme')&&getCookie('theme')=='light'){theme='light';}else if(getCookie('theme')&&getCookie('theme')=='dark'){theme='dark';}else{theme=false;} if($('#theme_switch').length){$('#theme_switch').remove();} $('#footer').before('
Theme: '+(theme=='auto'?'Auto':'Auto')+' • '+(theme=='light'?'Light':'Light')+' • '+(theme=='dark'?'Dark':'Dark')+'
');} function isRetina(){return(window.matchMedia&&(window.matchMedia('only screen and (-webkit-min-device-pixel-ratio:2), only screen and (min-device-pixel-ratio:2)').matches))?true:false;} function max_ellipsis(target,height,after,watch){if($.fn.dotdotdot){$(target).dotdotdot({height:height,after:after,watch:watch,lastCharacter:{remove:[' ',',',';','.','!','?','-']}});return false;}} function popup_cover(){$('body > div, body > a').addClass('blur-effect');$('body').append('');$('#popup-cover').click(function(){$('.blur-effect').removeClass('blur-effect');$('div.inline-popup').remove();$('#popup-cover').remove();});} function hide_popup(){$('div.inline-popup > div > a').click(function(e){$('.blur-effect').removeClass('blur-effect');$('div.inline-popup').remove();$('#popup-cover').remove();e.preventDefault();});} function show_sharebox(url,titleEncode,source){var fb_url=encodeURIComponent((url=='http://www.49erswebzone.com/'?'https://www.facebook.com/49erswebzone':url));var urlEncode=encodeURIComponent(url);var titleEncode=(titleEncode)?encodeURIComponent(titleEncode)+'%20':'';var sourceEncode=(source)?encodeURIComponent(' via @'+source):'';popup_cover();$('body').append('
'+' '+' '+'
');if(typeof stLight!='undefined'&&stLight.publisher.length){var st_networks=['facebook','twitter','googleplus','reddit'];st_networks.forEach(function(st_network){$('#social-sharebox > ul > li#social-share-'+st_network+' > a').removeAttr('href');stWidget.addEntry({"service":st_network,"element":document.getElementById('social-share-'+st_network),"url":url,"title":titleEncode,"type":"custom"});});} hide_popup();} function show_mobilenav(){popup_cover();$('body').append('');hide_popup();} function setCookie(c_name,value,expireseconds,domain){var post_string="&name="+c_name+"&value="+value+"&expires="+expireseconds;$.ajax({type:'POST',url:'/php/cookie-manager.php',data:post_string,async:true,success:function(theResponse){}});} function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}} return"";} function deleteCookie(cookie_name,domain){if(getCookie(cookie_name)){setCookie(cookie_name,'',-1,domain);}} if(client_desktop){$(window).scroll(function(){if($(window).scrollTop()>52){$('#site-navigation').addClass('floater');}else{$('#site-navigation').removeClass('floater');}});} var usatoday_large=true;function utAdCheck(){if(!$('#usatoday-970x66').length||$('#usatoday-970x66').height()<1){$('#usatoday-970x66').hide();usatoday_large=false;}} $(function(){$('html[data-theme=dark] blockquote.twitter-tweet').attr('data-theme','dark');theme_switcher();$('body').on('click','#theme_auto',function(e){$('html').removeAttr('data-theme');if(window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches){$('html').attr('data-theme','dark');} deleteCookie('theme');e.preventDefault();theme_switcher('auto');});$('body').on('click','#theme_light',function(e){$('html').removeAttr('data-theme');setCookie('theme','light',31536000);e.preventDefault();theme_switcher('light');});$('body').on('click','#theme_dark',function(e){$('html').attr('data-theme','dark');setCookie('theme','dark',31536000);e.preventDefault();theme_switcher('dark');});$('#site-navigation > ul > li#navigation-more > h2').on({'touchstart':function(){$(this).parent().removeClass('has-dropdown');$(this).parent().children('div').toggle();if($(this).parent().children('div').is(':visible')){$('#site-navigation > ul').css('-webkit-overflow-scrolling','auto');}else{$('#site-navigation > ul').css('-webkit-overflow-scrolling','touch');}}});$('div.header-social-search > a').click(function(e){$('div.header-searchbox').show();$('div.header-searchbox > form > input#sbi').focus();e.preventDefault();});$('div.header-searchbox > span').click(function(e){$('div.header-searchbox').hide();e.preventDefault();});$('#usatoday-970x66').click(function(){setCookie('no970x66ad','1',60*60*12);});if($('#content-article-sidebar').length&&$(window).width()>868){setTimeout(function(){var sidebar_height=$('#content-article-sidebar').outerHeight();$('#main-container').css('min-height',sidebar_height+'px');},2800);}});var myBackupAds=[['Shop49ers.com','https://49ers.pxf.io/mWVKe','Shop official San Francisco 49ers merchandise',false],['Giants365.com','http://www.giants365.com/','San Francisco Giants baseball coverage',false],['WarriorsCentral.com','http://www.warriorscentral.com/','Golden State Warriors basketball coverage',false],['Amazon.com','http://www.amazon.com/?_encoding=UTF8&camp=1789&creative=390957&linkCode=ur2&tag=49erswebzonec-20&linkId=JVNMEVECHC3F6VT4','Electronics, apparel, computers, movies & more','https://ir-na.amazon-adsystem.com/e/ir?t=49erswebzonec-20&l=ur2&o=1'],['DirecTV.com','http://www.anrdoezrs.net/click-4314871-10456713','Get NFL Sunday Ticket','https://www.awltovhc.com/image-4314871-10456713']];var mobileBackupAds=[['Shop49ers','https://49ers.pxf.io/mWVKe','Shop for official 49ers gear'],['Giants365','http://www.giants365.com/','San Francisco Giants Baseball'],['WarriorsCentral','http://www.warriorscentral.com/','Golden State Warriors News'],['TiqIQ','http://www.tiqiq.com/nfl/san-francisco-49ers-tickets?publisherid=1591733','Find 49ers Game Tickets'],['FacebookPage','https://www.facebook.com/49erswebzone','Like Us on Facebook']];$(function(){var ad300x250='Shop for 49ers gear';setTimeout(function(){$('.adblock_728x90 > div:visible,#usatoday-970x66 > div > div:visible').each(function(){if($(this).height()<1){$(this).html('Shop for 49ers gear');}});$('.adblock_300x250 > div:visible,.adblock_300x250_600 > div:visible,.adblock_300xflex > div:visible').each(function(){if($(this).height()<1){$(this).html(ad300x250);}});$('.adblock_160x600 > div:visible').each(function(){if($(this).height()<1){var backup_rand=Math.floor(Math.random()*myBackupAds.length);$(this).html('
'+myBackupAds[backup_rand][2]+'<\/div>'+myBackupAds[backup_rand][0]+'<\/span><\/a>'+(myBackupAds[backup_rand][3]?'':''));}});$('.adblock_300x600 > div:visible').each(function(){if($(this).height()<1){var backup_rand=Math.floor(Math.random()*myBackupAds.length);$(this).html('
'+myBackupAds[backup_rand][2]+'<\/div>'+myBackupAds[backup_rand][0]+'<\/span><\/a>'+(myBackupAds[backup_rand][3]?'':''));}});$('.adblock_300x250 > div:visible').each(function(){if($(this).find('ins.adsbygoogle > div').length&&$(this).find('ins.adsbygoogle > div').is(':empty')){$(this).html(ad300x250);}});},5000);var backupAdLoad=setTimeout(function(){$('.adblock_320x50 > div:visible').each(function(){if($(this).height()<1){var backup_rand=Math.floor(Math.random()*mobileBackupAds.length);$(this).html('Shop for 49ers gear<\/a>');}});$('.adblock_320x100 > div:visible').each(function(){if($(this).height()<1||($(this).find('ins.adsbygoogle > div').length&&$(this).find('ins.adsbygoogle > div').is(':empty'))){var backup_rand=Math.floor(Math.random()*mobileBackupAds.length);$(this).html('Shop for 49ers gear<\/a>');}});},5000);});;(function($){$.fn.unveil=function(threshold,callback){var $w=$(window),th=threshold||0,retina=window.devicePixelRatio>1,attrib=retina?"data-src-retina":"data-src",images=this,loaded;this.one("unveil",function(){var source=this.getAttribute(attrib);source=source||this.getAttribute("data-src");if(source){if(this.tagName==='IMG'||this.tagName==='IFRAME'){this.setAttribute("src",source);}else{this.style.backgroundImage='url('+source+')';} if(retina){this.removeAttribute("data-src-retina");}else{this.removeAttribute("data-src");} this.classList.remove('unveil');if(typeof callback==="function")callback.call(this);}});function unveil(){var inview=images.filter(function(){var $e=$(this);if($e.is(":hidden"))return;var wt=$w.scrollTop(),wb=wt+$w.height(),et=$e.offset().top,eb=et+$e.height();return eb>=wt-th&&et<=wb+th;});loaded=inview.trigger("unveil");images=images.not(loaded);} $w.on("scroll.unveil resize.unveil lookup.unveil",unveil);unveil();return this;};})(window.jQuery);$(function(){$('.unveil').unveil(300);});$(function(){if(typeof podcast_url!=='undefined'&&typeof podcast_title!=='undefined'&&podcast_url.length&&podcast_title.length){$('#podcast-floater').html('
No Huddle Podcast
');if($('#podcast-insert').length){$('#podcast-insert').html('
');}}});function viewportContent(){var screen_width=window.screen.width;var window_orientation=window.orientation;var content='width=device-width,initial-scale=1.0';var orientation=false;var view_cookie=(getCookie('viewmode'))?true:false;orientation=(window_orientation==0||window_orientation==180)?'portrait':orientation;orientation=(window_orientation==-90||window_orientation==90)?'landscape':orientation;screen_width=(orientation=='landscape')?window.screen.height:screen_width;if(orientation&&screen_width<=728&&!view_cookie){content='width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0';} return(view_cookie)?'':content;} function setViewport(){if($('meta[name=viewport]').length){$('meta[name=viewport]').attr('content',viewportContent());}} setViewport();$(window).bind('orientationchange',function(){setViewport();});$(function(){$('#mobile-button-menu').click(function(e){setTimeout(function(){$('#site-navigation').addClass('visible');$('#cover').show();},100);e.preventDefault();});$('#cover').click(function(){$('#site-navigation').removeClass('visible');$('#cover').hide();});});if(!client_desktop&&$(window).width()<728){$(function(){$(window).scroll(function(){if($(window).scrollTop()>48){$('#header-container').addClass('shrink');}else{$('#header-container').removeClass('shrink');}});});} if(!client_desktop&&$(window).width()<728){$(function(){if(!$('#mobile-goto-top').length){$('body').append('');} $('#mobile-goto-top').click(function(e){$('html,body').animate({scrollTop:0},500);e.preventDefault();});});$(document).scroll(function(){if($(this).scrollTop()>400){$('#mobile-goto-top:hidden').show();}else{$('#mobile-goto-top:visible').hide();}});} function viewmode_desktop(){setCookie('viewmode','desktop',60*60*24);location.reload();} function viewmode_default(){deleteCookie('viewmode');location.reload();} $(function(){if(getCookie('viewmode')){$('#footer-contact').append(' • Mobile Site');}});!function(a,b){function d(a,b,c){var d=a.children(),e=!1;a.empty();for(var f=0,h=d.length;h>f;f++){var i=d.eq(f);if(a.append(i),c&&a.append(c),g(a,b)){i.remove(),e=!0;break}c&&c.detach()}return e}function e(b,c,d,h,i){var j=b.contents(),k=!1;b.empty();for(var l="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",m=0,n=j.length;n>m&&!k;m++){var o=j[m],p=a(o);"undefined"==typeof o||3==o.nodeType&&0==a.trim(o.data).length||(b.append(p),i&&b[b.is(l)?"after":"append"](i),g(d,h)&&(k=3==o.nodeType?f(p,c,d,h,i):e(p,c,d,h,i),k||(p.remove(),k=!0)),k||i&&i.detach())}return k}function f(b,c,d,e,f){var i=b[0];if(!i)return!1;for(var l=k(i),n=-1!==l.indexOf(" ")?" ":"\u3000",o="letter"==e.wrap?"":n,p=l.split(o),q=-1,r=-1,s=0,t=p.length-1;t>=s&&(0!=s||0!=t);){var u=Math.floor((s+t)/2);if(u==r)break;r=u,j(i,p.slice(0,r+1).join(o)+e.ellipsis),g(d,e)?t=r:(q=r,s=r),t==s&&0==t&&e.fallbackToLetter&&(o="",p=p[0].split(o),q=-1,r=-1,s=0,t=p.length-1)}if(-1==q||1==p.length&&0==p[0].length){var v=b.parent();b.remove();var w=f&&f.closest(v).length?f.length:0;v.contents().length>w?i=m(v.contents().eq(-1-w),c):(i=m(v,c,!0),w||v.remove()),i&&(l=h(k(i),e),j(i,l),w&&f&&a(i).parent().append(f))}else l=h(p.slice(0,q+1).join(o),e),j(i,l);return!0}function g(a,b){return a.innerHeight()>b.maxHeight}function h(b,c){for(;a.inArray(b.slice(-1),c.lastCharacter.remove)>-1;)b=b.slice(0,-1);return a.inArray(b.slice(-1),c.lastCharacter.noEllipsis)<0&&(b+=c.ellipsis),b}function i(a){return{width:a.innerWidth(),height:a.innerHeight()}}function j(a,b){a.innerText?a.innerText=b:a.nodeValue?a.nodeValue=b:a.textContent&&(a.textContent=b)}function k(a){return a.innerText?a.innerText:a.nodeValue?a.nodeValue:a.textContent?a.textContent:""}function l(a){do a=a.previousSibling;while(a&&1!==a.nodeType&&3!==a.nodeType);return a}function m(b,c,d){var f,e=b&&b[0];if(e){if(!d){if(3===e.nodeType)return e;if(a.trim(b.text()))return m(b.contents().last(),c)}for(f=l(e);!f;){if(b=b.parent(),b.is(c)||!b.length)return!1;f=l(b[0])}if(f)return m(a(f),c)}return!1}function n(b,c){return b?"string"==typeof b?(b=a(b,c),b.length?b:!1):b.jquery?b:!1:!1}function o(a){for(var b=a.innerHeight(),c=["paddingTop","paddingBottom"],d=0,e=c.length;e>d;d++){var f=parseInt(a.css(c[d]),10);isNaN(f)&&(f=0),b-=f}return b}function p(a,b){return a?(b="string"==typeof b?"dotdotdot: "+b:["dotdotdot:",b],"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log&&window.console.log(b),!1):!1}if(!a.fn.dotdotdot){a.fn.dotdotdot=function(b){if(0==this.length)return b&&b.debug===!1||p(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){a(this).dotdotdot(b)});var f=this;f.data("dotdotdot")&&f.trigger("destroy.dot"),f.data("dotdotdot-style",f.attr("style")),f.css("word-wrap","break-word"),"nowrap"===f.css("white-space")&&f.css("white-space","normal"),f.bind_events=function(){return f.bind("update.dot",function(b,c){b.preventDefault(),b.stopPropagation(),j.maxHeight="number"==typeof j.height?j.height:o(f),j.maxHeight+=j.tolerance,"undefined"!=typeof c&&(("string"==typeof c||c instanceof HTMLElement)&&(c=a("
").append(c).contents()),c instanceof a&&(h=c)),q=f.wrapInner('
').children(),q.empty().append(h.clone(!0)).find("br").replaceWith("
").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var i=!1,l=!1;return k.afterElement&&(i=k.afterElement.clone(!0),k.afterElement.remove()),g(q,j)&&(l="children"==j.wrap?d(q,j,i):e(q,f,q,j,i)),q.replaceWith(q.contents()),q=null,a.isFunction(j.callback)&&j.callback.call(f[0],l,h),k.isTruncated=l,l}).bind("isTruncated.dot",function(a,b){return a.preventDefault(),a.stopPropagation(),"function"==typeof b&&b.call(f[0],k.isTruncated),k.isTruncated}).bind("originalContent.dot",function(a,b){return a.preventDefault(),a.stopPropagation(),"function"==typeof b&&b.call(f[0],h),h}).bind("destroy.dot",function(a){a.preventDefault(),a.stopPropagation(),f.unwatch().unbind_events().empty().append(h).attr("style",f.data("dotdotdot-style")).data("dotdotdot",!1)}),f},f.unbind_events=function(){return f.unbind(".dot"),f},f.watch=function(){if(f.unwatch(),"window"==j.watch){var b=a(window),c=b.width(),d=b.height();b.bind("resize.dot"+k.dotId,function(){c==b.width()&&d==b.height()&&j.windowResizeFix||(c=b.width(),d=b.height(),m&&clearInterval(m),m=setTimeout(function(){f.trigger("update.dot")},10))})}else l=i(f),m=setInterval(function(){var a=i(f);(l.width!=a.width||l.height!=a.height)&&(f.trigger("update.dot"),l=i(f))},100);return f},f.unwatch=function(){return a(window).unbind("resize.dot"+k.dotId),m&&clearInterval(m),f};var h=f.contents(),j=a.extend(!0,{},a.fn.dotdotdot.defaults,b),k={},l={},m=null,q=null;return j.lastCharacter.remove instanceof Array||(j.lastCharacter.remove=a.fn.dotdotdot.defaultArrays.lastCharacter.remove),j.lastCharacter.noEllipsis instanceof Array||(j.lastCharacter.noEllipsis=a.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),k.afterElement=n(j.after,f),k.isTruncated=!1,k.dotId=c++,f.data("dotdotdot",!0).bind_events().trigger("update.dot"),j.watch&&f.watch(),f},a.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0,debug:!1},a.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","\u3000",",",";",".","!","?"],noEllipsis:[]}};var c=1,q=a.fn.html;a.fn.html=function(c){return c!=b&&!a.isFunction(c)&&this.data("dotdotdot")?this.trigger("update",[c]):q.apply(this,arguments)};var r=a.fn.text;a.fn.text=function(c){return c!=b&&!a.isFunction(c)&&this.data("dotdotdot")?(c=a("
").text(c).html(),this.trigger("update",[c])):r.apply(this,arguments)}}}(jQuery);function feature_ellipsis(){max_ellipsis('div.feature-mini:not(.feature-large) > a > div.feature-text > h2',80,null,true);} $(function(){feature_ellipsis();if($(window).width()>868){var side_container=$('#side-container').detach();$('div.main-right-container').append(side_container);} if($('#wibbitz-container').length&&client_ios){$('#wibbitz-container').addClass('mobile');} $('#youtube-podcast > a').click(function(e){$('#youtube-podcast').remove();e.preventDefault();});});function postFetch(script_url,id_name,postdata){$.post(script_url,postdata,function(theResponse){$('#'+id_name).fadeOut('slow',function(){$('#'+id_name).html('');$('#'+id_name).html(theResponse);$('#'+id_name).fadeIn('slow');});});} $(function(){$('#submit_vote').click(function(){if(!$("input[name=poll_option]:checked").val()){alert('You forgot to make a selection');}else{postFetch('/webupdate/poll/poll.php?time='+Math.round(new Date().getTime()/1000),'poll-container','&submit_vote=1&poll_option='+$("input[name=poll_option]:checked").val());} return false;});$('#result_vote').click(function(){postFetch('/webupdate/poll/poll.php?time='+Math.round(new Date().getTime()/1000),'poll-container','&result_vote=1');return false;});if(window.location.hash&&window.location.hash.substring(1)=='poll'&&$('#poll-container').length){popup_cover();$('body').append('
');var pollvote=$('#poll-container').detach();$('#poll-popup > ul > li').html(pollvote);$('#poll-header,#poll-box').hide();hide_popup();$('#poll-popup > div > a,#popup-cover').click(function(e){$('#poll-header,#poll-box').show();$('#poll-box').html(pollvote);e.preventDefault();});}});function showFBComment(hash){var fb_comment_url=$('a[data-hash='+hash+']').attr('href');var title=$('a[data-hash='+hash+'] > div > h2').html();popup_cover();$('body').append('
'+' '+'

'+title+'

'+'
'+'
'+'
'+'
');$('#fb-comment-box > div').html('');FB.XFBML.parse();$('#fb-comment-box > div iframe').attr('src',$('#fb-comment-box > div iframe').attr('src')+'&order_by=reverse_time');hide_popup();} function refreshcontent_after(){feature_ellipsis();$('.unveil').unveil(150);FB.XFBML.parse();} function leadstory_set(leads_path,leadid,max_timestamp){var photo_size=($(window).width()<728)?'454x308':'712x399';$('#feature > div > div > div.lead1 > div.feature-image').attr('data-src',leads_path+'leadstory-'+photo_size+'-'+leadid+'-'+max_timestamp+'.jpg');$('#feature > div > div > div.lead1 > div.feature-image').attr('data-src-retina',leads_path+'leadstory-'+photo_size+'-'+leadid+'-'+max_timestamp+'.jpg');max_ellipsis('#feature > div > div > div.lead-sub > div > div > h2',45,null,true);}