var screen_width=$(window).width();function adLoad(site,type,size,tagid,min_resolution,max_resolution){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;show_ad_code=(screen_width>=min_resolution&&screen_width');} function ad_google(site,size){var dimensions=size.split('x');var size_w=dimensions[0];var size_h=dimensions[1];if(size=='320x50'){google_ad_slot=(site=='warriors')?'8312030295':'0228513301';} if(size=='728x90'){google_ad_slot=(site=='warriors')?'9915921298':'7237761063';} if(size=='300x250'){google_ad_slot=(site=='warriors')?'2369614414':'4218846160';} if(size=='160x600'){google_ad_slot=(site=='warriors')?'6471021415':'9299184020';} document.write('');document.write('');document.write('(adsbygoogle = window.adsbygoogle || []).push({});');} function ad_usatoday(site,size,tagid){var dimensions=size.split('x');var size_w=dimensions[0];var size_h=dimensions[1];var site=(site=='warriors')?'WarriorsCentral':'Lakers365';var tagid_x=tagid.split('_');var tagid_type=tagid_x[0];var tagid_spot=tagid_x[1];var tag_name='usmg_ad_SMG_'+site+'_'+size+(tagid_spot?'_'+tagid_spot:'')+(size!=='320x50'?'_sports_basketball_'+tagid_type:'_'+tagid);if(size=='320x50'){document.write("
");document.write("");document.write("googletag.cmd.push(function(){");document.write("googletag.defineSlot('/7103,2122518/SMG_"+site+"/320x50_"+tagid+"', [[320,50],[300,50]], 'usmg_ad_SMG_"+site+"_320x50_"+tagid+"').addService(googletag.pubads());");document.write("googletag.enableServices();");document.write("googletag.display('usmg_ad_SMG_"+site+"_320x50_"+tagid+"');");document.write("});");document.write("");document.write("
");}else{document.write("
");document.write("");document.write("googletag.cmd.push(function(){");document.write("googletag.defineSlot('/7103,2122518/SMG_"+site+"/"+size+"_"+tagid_spot+"/sports/basketball/"+tagid_type+"', ["+size_w+","+size_h+"], 'usmg_ad_SMG_"+site+"_"+size+"_"+tagid_spot+"_sports_basketball_"+tagid_type+"').addService(googletag.pubads());");document.write("googletag.enableServices();");document.write("googletag.display('usmg_ad_SMG_"+site+"_"+size+"_"+tagid_spot+"_sports_basketball_"+tagid_type+"');");document.write("});");document.write("");document.write("
");}} 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;if(self!=top){if(document.images){top.location.replace(window.location.href);}else{top.location.href=window.location.href;}} $(document).ready(function(){$('#mobile-button-menu').click(function(){$('#site').addClass('scoot');$('#navigation').addClass('visible');$('#cover').show();return false;});$('#cover').click(function(){$('#site').removeClass('scoot');$('#navigation').removeClass('visible');$('#cover').hide();return false;});});if(!client_desktop&&$(window).width()<728){$(document).ready(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(){var y=$(this).scrollTop();if(y>400){$('#mobile-goto-top').show();}else{$('#mobile-goto-top').hide();}});} $(document).ready(function(){$('#search-show').click(function(e){$('#site-logo, #social-links > a').css('opacity',0);$('div.header-searchbox').show();$('div.header-searchbox > form > input#sbi').focus();e.preventDefault();});$('div.header-searchbox > span').click(function(e){$('div.header-searchbox').hide();$('#site-logo').css('opacity',1);$('#social-links > a').css('opacity',0.75);e.preventDefault();});});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;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){content='width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0';} return content;} function setViewport(){if($('meta[name=viewport]').length){$('meta[name=viewport]').attr('content',viewportContent());}} setViewport();$(window).bind('orientationchange',function(){setViewport();});var usatoday_large=false;function utAdCheck(){if(!client_desktop||!$('#usatoday-970x66').length||$('#usatoday-970x66').height()<1){$('#usatoday-970x66').hide();} if($('#usatoday-970x66').length&&$('#usatoday-970x66').height()>=1){usatoday_large=true;}} function popup_cover(){$('body').append('');$('#popup-cover').click(function(){$('div.inline-popup').remove();$('#popup-cover').remove();});} function hide_popup(){$('div.inline-popup > div > a').click(function(e){$('div.inline-popup').remove();$('#popup-cover').remove();e.preventDefault();});} function show_sharebox(url,titleEncode,source){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();} $(document).ready(function(){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);}});$(document).ready(function(){if(client_desktop){$('ul.cms-content > li').hover(function(){$(this).find('span.main-sharelink').show();},function(){$(this).find('span.main-sharelink').hide();});}});