var client_ua=navigator.userAgent.toLowerCase();var isMobile=client_ua.includes('android')||client_ua.includes('iphone')||client_ua.includes('ipod')||client_ua.includes('ipad');var client_desktop=!isMobile;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('
'+'- Facebook
'+' - Twitter
'+' - Google+
'+' - Reddit
'+' - Text Message
'+' - Email
'+'
'+'