var file = window.location.pathname; var _sf_async_config={}; _sf_async_config.useCanonical = true; _sf_async_config.uid = 36240; _sf_async_config.path = file; _sf_async_config.domain = 'mtv.com'; if ( (file.indexOf("/homepage/") == 0) || (file.indexOf("/") == 0) && (file.length == 1) || (file.indexOf("/videos/home.jhtml") == 0) || ((file.indexOf("/games/arcade/") == 0) && (file.length == 14)) || ((file.indexOf("/ontv/") == 0) && (file.length == 6)) ){ // new home page, old home page, full episode hub _sf_async_config.sections = 'MTV Hub Pages'; _sf_async_config.authors = ''; }else if ( (file.indexOf("/geek/") == 0) && (file.length == 6) ){ _sf_async_config.sections = 'MTV Geek'; _sf_async_config.authors = ''; }else if (file.indexOf("/movies/") == 0 || file.indexOf("/content/movies/") == 0){ _sf_async_config.sections = 'MTV Movies'; _sf_async_config.authors = ''; }else if ( (file.indexOf("/shows/hip_hop_squares/") == 0) || (file.indexOf("/shows/bellator/") == 0) || (file.indexOf("/shows/band_of_ballers/") == 0) || (file.indexOf("/shows/dub/") == 0) || (file.indexOf("/shows/dudesons/") == 0) || (file.indexOf("/shows/full_throttle/") == 0) || (file.indexOf("/shows/guy_code/") == 0) || (file.indexOf("/shows/headbangers_ball/") == 0) || (file.indexOf("/shows/lfl/") == 0) || (file.indexOf("/shows/lucha_libre/") == 0) || (file.indexOf("/shows/martin/") == 0) || (file.indexOf("/shows/nitro_circus_live/") == 0) || (file.indexOf("/shows/nothing_but_net/") == 0) || (file.indexOf("/shows/sucker_free/") == 0) || (file.indexOf("/shows/yo_mtv_raps_classic_cuts/") == 0) || (file.indexOf("/shows/nothing_but_net/") == 0) ){ _sf_async_config.sections = 'MTV2'; _sf_async_config.authors = 'MTV2 Shows'; }else if (file.indexOf("/shows/") == 0){ _sf_async_config.sections = 'MTV Show Series'; _sf_async_config.authors = ''; }else if (file.indexOf("/photos/") == 0){ _sf_async_config.sections = 'MTV Photos'; _sf_async_config.authors = ''; }else if ( (file.indexOf("/ontv/woodieawards/") == 0) || (file.indexOf("/ontv/movieawards/") == 0) || (file.indexOf("/ontv/vma/") == 0) || (file.indexOf("/music/hangout-festival/") == 0)){ _sf_async_config.sections = 'Events'; _sf_async_config.authors = ''; }else if(file.indexOf("/news/") == 0 || file.indexOf("/content/news/") == 0){ _sf_async_config.sections = 'MTV News'; _sf_async_config.authors = ''; }else if(file.indexOf("/music/") == 0){ _sf_async_config.sections = 'MTV Music'; _sf_async_config.authors = ''; }else if( (file.indexOf("/mtv2/") == 0) && (file.length == 6) ){ _sf_async_config.sections = 'MTV2'; _sf_async_config.authors = ''; }else if(window.location.hostname == "ma-twittertracker.mtv.com"){ _sf_async_config.sections = 'Events'; _sf_async_config.authors = ''; }else if(file.indexOf("/artists/") == 0){ if (window.location.hostname.indexOf("www.cmt") == 0) { _sf_async_config.sections = 'CMT'; _sf_async_config.authors = 'cmt artists'; } else { _sf_async_config.sections = 'Artist Platform'; _sf_async_config.authors = ''; } }else{ _sf_async_config.sections = ''; _sf_async_config.authors = ''; } //Mobile optimization if (/iphone|ipod|ipad|android|iemobile/i.test(navigator.userAgent)) { _sf_async_config.sessionLength=.5; } (function(){ function loadChartbeat() { window._sf_endpt=(new Date()).getTime(); var e = document.createElement('script'); e.setAttribute('language', 'javascript'); e.setAttribute('type', 'text/javascript'); e.setAttribute('src', (('https:' == document.location.protocol) ? 'https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/' : 'http://static.chartbeat.com/') + 'js/chartbeat.js'); document.body.appendChild(e); } var oldonload = window.onload; window.onload = (typeof window.onload != 'function') ? loadChartbeat : function() { oldonload(); loadChartbeat(); }; })();