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 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){if(size=='in-article'){var responsive=false;var ad_css='display:block; text-align:center;';var ad_extra=' data-ad-layout="in-article" data-ad-format="fluid"';}else{var responsive=size.includes('r');size.replace('r','');var dimensions=size.split('x');var size_w=dimensions[0];var size_h=dimensions[1];var ad_css=(responsive)?'display:block':'display:inline-block;width:'+size_w+'px;height:'+size_h+'px';var ad_extra=(responsive)?' data-ad-format="auto" data-full-width-responsive="true"':'';} 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_"+(tagid=="1a"?"1a":"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+'
');}