// CODA 2 ARIA AD SETUP var defaultCodaParams = new MTVM.services.CODAParams(); if (typeof mtvn != "undefined"){ mtvn.btg.config.AdSettings.DoubleClick["adClass"] = 'InternationalAd'; mtvn.btg.config.AdSettings.DoubleClick["contentType"] = defaultCodaParams.ads.defaultContentType; // 'adj' mtvn.btg.config.AdSettings.DoubleClick["dartSite"] = defaultCodaParams.ads.dartSite; // 'music.mtv' mtvn.btg.config.AdSettings.DoubleClick["positionThreshold"] = '1'; mtvn.btg.config.AdSettings.DoubleClick["sections"] = defaultCodaParams.ads.defaultSections; // 'artist/jet_rock_/videos/' mtvn.btg.config.AdSettings.DoubleClick["enabled"] = true; // enabling double click ads //set the reload interval to 60 seconds to all reloadable ads on page mtvn.btg.config.AdSettings.reloadInterval=60000; //Initialize Controller mtvn.btg.Controller.init(); } function hiveDynamicHeader(part, options) { switch(part) { /************* start context values*************/ case "contextValues": break; /************* END context values *************/ /************* start scripts*************/ case "scripts": document.write(''+ '' ); break; /************* END scripts *************/ /************* start mtvPlaylistScripts*************/ case "mtvPlaylistScripts": /*load playlist Scripts*/ document.write(''); document.write(''); break; /************* END mtvPlaylistScripts *************/ /************* start mtvPlaylistConfig*************/ case "mtvPlaylistConfig": /* ------------------------------------------------------- */ /* Page Level Configuration */ /* ------------------------------------------------------- */ /* Configure the Controller for this site */ MTVN_PL.Controller.configure('debug', MTVM.Playlist.config.controller.debug); MTVN_PL.Controller.configure('appID', MTVM.Playlist.config.controller.appID); MTVN_PL.Controller.configure('playlistHost', MTVM.Playlist.config.controller.playlistHost); MTVN_PL.Controller.configure('tokenGenURL', MTVM.Playlist.config.controller.tokenGenURL); MTVN_PL.Controller.configure('version', MTVM.Playlist.config.controller.version); MTVN_PL.Controller.configure('defaultThumbnail', MTVM.Playlist.config.controller.defaultThumbnail); //MTVN_PL.Controller.configure('userLoggedIn', MTVM.flux.isUserLoggedInFlux()); MTVN_PL.Controller.configure('userLoggedIn', MTVM.flux.isUserLoggedInFlux4()); //MTVN_PL.Controller.configure('currentExternUserID', MTVM.flux.getUserUcid()); MTVN_PL.Controller.configure('currentExternUserID', MTVM.flux.getUserUcidFlux4()); MTVN_PL.Controller.configure('loginSystem', MTVM.Playlist.config.controller.loginSystem); //MTVN_PL.Controller.configure('isCommunityMember', MTVM.flux.isUserCommunityMember()); MTVN_PL.Controller.configure('isCommunityMember', MTVM.flux.isUserCommunityMemberFlux4()); MTVN_PL.Controller.configure('requireMembership', true); break; /************* END mtvPlaylistConfig *************/ /************* start mtvPlaylistOverload*************/ case "mtvPlaylistOverload": document.write(''+ '<\/sc'+'ript>'+ ''+ '' ); break; /************* END mtvPlaylistOverload *************/ /************* start mtvPlaylistInit*************/ case "mtvPlaylistInit": document.write(''+ '
'); /* Start whatever components we want */ MTVN_PL.Controller.onInit = function () { MTVN_PL.PlaylistManager.init(); MTVN_PL.AddButtonManager.init(); MTVN_PL.VideoHelper.init(); MTVN_PL.DialogManager.init(); MTVN_PL.ListSetManager.init(); } /* Let it rip */ MTVN_PL.Controller.init(); MTVN_PL.Controller.addListener (MTVN_PL.Controller.CREATE_LIST, MTVM.services.Reporting.sendPlaylistCreateEvent, this); document.write(''+ '
'+ '' ); break; /************* END mtvPlaylistInit *************/ /************* start header*************/ case "header": document.write(''+ '
'+ '
'+ ''+ '
'+ '
'+ ''+ '
'+ ''+ '/*Flux.createWidget("QuickMenu", { containerId:"mtvhive-navigation-loginbar-content", showAvatar: false, showFBConnectButton: true, showProfileLink:false });*/'+ ''+ ''+ '
'+ '
'+ ''+ '
'+ '
'+ ''+ '
'+ '
    '+ ''+ ''+ ''+ ''+ ''+ 'MTVN_PL.Controller.addListener(MTVN_PL.Controller.RESOLVE_LIST, MTVM.Playlist.updateQuicklistCount, this);'+ ''+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ ''+ '
    '+ '
  • '+ ''+ 'READ'+ ''+ '
  • '+ '
  • '+ '
  • '+ ''+ 'WATCH'+ ''+ '
  • '+ '
  • '+ '
  • '+ 'LISTEN'+ '
  • '+ '
  • '+ '
  • '+ ''+ '
  • '+ '
    '+ '
'+ '
'+ '
'+ '
'+ '
'+ ''+ '
'+ '' ); break; /************* END header *************/ /************* start global header spacing *************/ case "headerSpacing": document.write(''+ '
'+ '' ); break; /************* END global header spacing *************/ /************* start page ad top spacing *************/ case "pageAdTopSpacing": document.write(''+ '
'+ '
'+ '
'+ '' ); break; /************* END global header spacing *************/ /************* start page ad bottom spacing *************/ case "pageAdBottomSpacing": document.write(''+ '
'+ '
'+ '
'+ '' ); break; /************* END global header spacing *************/ /************* start select nav function *************/ case "selectNav": document.write(''+ ''+ '' ); break; /************* END select nav function *************/ /************* start 6x6 page ad *************/ case "6x6Ad": document.write(''+ ''+ ' '+ '' ); break; /************* END 6x6 page ad *************/ /************* start 728 page ad *************/ case "pageAd": MTVM.services.Ads.adTop = new MTVM.services.Ads("728x90", 1); MTVM.services.Ads.adTop.addKeyValue("dcopt=ist;"); if((typeof __isHD !="undefined" && __isHD==true) || MTVM.services.Ads.adTop.isHDPlaylist()) { MTVM.services.Ads.adTop.addKeyValue("hd=true;"); } /*if(typeof MTVM.contextValues == "object" && typeof MTVM.contextValues.video == "object" && MTVM.contextValues.video.keywords.match(/unplugged/i))*/ /*for unplugged sponsorship */ /*{ MTVM.services.Ads.adTop.addKeyValue("event=unplugged;"); }*/ MTVM.services.Ads.adTop.addKeyValue("!category=video;!category=expand;!category=pop;!category=float;"); MTVM.services.Ads.adTop.getAd(); break; /************* END 728 page ad *************/ /************* start page ad with spacing *************/ case "pageAdWithSpacing": document.write(''+ ''+ 'hiveDynamicHeader("pageAdTopSpacing");'+ '<\/sc'+'ript>' ); hiveDynamicHeader("pageAd"); document.write(''+ ''+ 'hiveDynamicHeader("pageAdBottomSpacing");'+ '<\/sc'+'ript>' ); break; /************* END page ad with spacing *************/ /************* start subnav*************/ case "subnav": /* ''+ */ document.write(''+ '
'+ '
'+ '
'+ '
'+ 'Latest'+ '
'+ ''+ '
'+ 'HD'+ '
'+ '
'+ '120 Minutes'+ '
'+ '
'+ 'Live in NYC'+ '
'+ '
'+ 'Weird Vibes'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ 'Latest'+ '
'+ '
'+ 'Features'+ '
'+ '
'+ 'Interviews'+ '
'+ '
'+ 'Music Tech'+ '
'+ '
'+ 'Live'+ '
'+ '
'+ 'News'+ '
'+ '
'+ 'Video'+ '
'+ '
'+ 'First Take'+ '
'+ '
'+ '
'+ '
'+ '' ); break; /************* END subnav *************/ /************* start scripts*************/ case "docOnReady": document.write(''+ ''+ 'function PlaylistDispatcherCheck(){ '+ ' /*console.log("checking");*/ '+ ' if (typeof MTVN_PL.Controller != "undefined"){ '+ ' MTVN_PL.Controller.getLists({ playlistUserID : "__CURRENT_USER__", sort : "createdate:desc" }); '+ ' } else { '+ ' setTimeout("PlaylistDispatcherCheck()", 1000); '+ ' } '+ '} '+ '$J(document).ready(function(){'+ '/*flux 4 followbar initialize, not for playlist pages because they initialze there*/'+ 'switch((MTVM.contextValues.pageType).toUpperCase()){'+ ' case "QUICKLIST":'+ ' case "USERPLAYLIST":'+ ' case "PLAYALL":'+ ' break;'+ ' default:'+ ' $J(".flux4Widget").flux4();'+ '/* Adding event listeners to the sign in/sign out events */'+ '$J(waiting).bind("Flux4.coreLoad", function(){'+ 'Flux4.addEventListener("signIn", function (eventContext, userContext) {'+ ' $J.getScript("'+MTVM.config.flux4ContextUrl+'/api/ContextService/Context?communityUcid=B8E6FFFF00F179450002FFFFE6B8", function() { '+ ' MTVM.services.ui.cleanUpFlux4UserBarDropdown();'+ ' MTVM.services.ui.showMyPlaylists();'+ ' MTVN_PL.Controller.configure("userLoggedIn", MTVM.flux.isUserLoggedInFlux4()); '+ ' MTVN_PL.Controller.configure("currentExternUserID", MTVM.flux.getUserUcidFlux4()); '+ ' MTVN_PL.Controller.configure("isCommunityMember", MTVM.flux.isUserCommunityMemberFlux4()); '+ ' var playlistFlashDispatcherSwf = \'\'; '+ ' var clientBase = "http://"+MTVM.config.playlistServicesURL+"/client/"+MTVM.config.playlistAppVersion; '+ ' if (navigator.appName.indexOf("Microsoft") != -1) { '+ ' playlistFlashDispatcherSwf += \'\'+ '+ ' \'\'+ '+ ' \'\'+ '+ ' \'\'+ '+ ' \'\'+ '+ ' \'\'+ '+ ' \'\'+ '+ ' \'\'; '+ ' } else { '+ ' playlistFlashDispatcherSwf += \'\'; '+ ' } '+ ' $J("#MTVN_PL-Dispatcher-Container").html(playlistFlashDispatcherSwf); '+ ' /*$J("#MTVN_PL-Dispatcher").ready(function(){*/ '+ ' setTimeout("PlaylistDispatcherCheck()", 3000); '+ ' /*});*/ '+ ' }); '+ ' $J.getScript("'+MTVM.config.flux3WidgetsUrl+'/context/short/B8E6FFFF00F179450002FFFFE6B8", function() { }); '+ '});'+ 'Flux4.addEventListener("signOut", function (eventContext) {'+ ' $J.getScript("'+MTVM.config.flux4ContextUrl+'/api/ContextService/Context?communityUcid=B8E6FFFF00F179450002FFFFE6B8", function() { '+ ' MTVM.services.ui.hideMyPlaylists();'+ ' MTVN_PL.Controller.configure("userLoggedIn", MTVM.flux.isUserLoggedInFlux4()); '+ ' MTVN_PL.Controller.configure("currentExternUserID", MTVM.flux.getUserUcidFlux4()); '+ ' MTVN_PL.Controller.configure("isCommunityMember", MTVM.flux.isUserCommunityMemberFlux4()); '+ ' MTVN_PL.Controller.getLists({ playlistUserID : "__CURRENT_USER__", sort : "createdate:desc" }); '+ ' }); '+ ' $J.getScript("'+MTVM.config.flux3WidgetsUrl+'/context/short/B8E6FFFF00F179450002FFFFE6B8", function() { }); '+ '});'+ 'if (MTVM.flux.isUserLoggedInFlux4()) {'+ 'MTVM.services.ui.showMyPlaylists();'+ '} else {'+ 'Flux.loadContext(function(context) {'+ 'if (context.user) {'+ 'MTVM.services.ui.showMyPlaylists(); /* show tab if login again after logout */'+ '} else {'+ '}'+ '});'+ '}'+ '});'+ '}'+ '/*dropdown creation */'+ 'MTVM.services.ui.DropDown.start();'+ '$J("a.mtvhive-navigation-external-icons").each(function(){'+ ' $J(this).mouseover(function(){'+ ' var linkId = $J(this).attr("id");'+ ' if (linkId!=null){'+ ' /*var imageName = linkId.substring(linkId.indexOf("mtvhive-navigation-")+19, linkId.length);*/'+ ' /*$J(this).find("img").attr("src", "http://www.mtvhive.com/sitewide/img/misc/"+imageName+"-roll.gif");*/'+ ' $J(this).find("img#"+linkId+"-off").css("display", "none");'+ ' $J(this).find("img#"+linkId+"-on").css("display", "block");'+ ' }'+ ' });'+ ' $J(this).mouseout(function(){'+ ' var linkId = $J(this).attr("id");'+ ' if (linkId!=null){'+ ' /*var imageName = linkId.substring(linkId.indexOf("mtvhive-navigation-")+19, linkId.length);*/'+ ' /*$J(this).find("img").attr("src", "http://www.mtvhive.com/sitewide/img/misc/"+imageName+".gif");*/'+ ' $J(this).find("img#"+linkId+"-off").css("display", "block");'+ ' $J(this).find("img#"+linkId+"-on").css("display", "none");'+ ' }'+ ' });'+ '});'+ '});'+ '<\/sc'+'ript>' ); break; /************* END scripts *************/ /************* START ADs *************/ case "ads": //MTVM.services.Ads.adTop = new MTVM.services.Ads("728x90", 1); //MTVM.services.Ads.adTop.addKeyValue("dcopt=ist;!c=community;site=community;"); MTVM.services.Ads.sponsorText = new MTVM.services.Ads("2x1", 1); MTVM.services.Ads.sponsorText.addKeyValue("slot_id=logo_4;!c=community;site=community;"); MTVM.services.Ads.logoTop = new MTVM.services.Ads("2x1", 1); MTVM.services.Ads.logoTop.addKeyValue("slot_id=logo_1;!c=community;site=community;"); break; /************* END ADs *************/ /************* START 728ad *************/ case "728ad": //MTVM.services.Ads.adTop.getAd(); break; /************* START sponsorTextAd *************/ case "sponsorTextAd": MTVM.services.Ads.sponsorText.getAd(); break; /************* START postSponsorTextAd *************/ case "postSponsorTextAd": Flux.createWidget('QuickMenu', { showAvatar: false, showFBConnectButton: true, containerId: 'F_fluxSignIn'}); break; /************* END postSponsorTextAd *************/ /************* START preNavbar *************/ case "preNavbar": document.write('
'+ '|'+ ''+ ''+ ''+ '|'); if(MTVM.flux.isUserLoggedInFlux() == true){ document.write(''+ 'My Playlists'+ '|'); } document.write(''+ ''+ '
'+ ''+ ''); break; /************* END preNavbar *************/ /************* START logoTopAd *************/ case "logoTopAd": MTVM.services.Ads.logoTop.getAd(); break; /************* START aboutToggle *************/ case "aboutToggle": $J("body").append("
"); //expand on/off the toggle $J("#about_toggle").html("
MTV Hive is a pure music destination for passionate music fans, featuring original videos, interviews, mp3s, live events and more.
"); $J("#about_toggle").hover( function() { $J(this).animate({ "width": "300" }, 200); MTVM.util.setCookie('aboutToggleViewed','yes',365*10); }, function() { $J(this).animate({ "width": "34" }, 200); }); break; /************* END aboutToggle *************/ } // end of switch } // end of function function hiveDynamicFooter(s) { switch(s) { /************* START PART SURVEY AD *************/ case "surveyad": MTVM.services.Ads.getSurveyAd(); break; /************* END PART SURVEY AD *************/ /************* START PART HIDDEN QUICK LIST *************/ case "quicklist": var footerPlaylistPlacement = (typeof MTVN_PL.PlaylistManager != 'undefined') ? 'MTVN_PL.PlaylistManager.placeList("quicklist", MTVN_PL.LastAddedPlaylist, false);' : ''; document.write('
'+ ''+ footerPlaylistPlacement+ '<\/sc'+'ript>'+ '
'); break; /************* END PART HIDDEN QUICK LIST *************/ /************* START PART FOOTER *************/ default: var fluxFooterLinks = ''; //if (s=='full') fluxFooterLinks = '|  Report Abuse |  Social Projects Agreements'; if (s=='full') fluxFooterLinks = '|  Social Projects Agreements'; document.write('
'+ ''); break; /************* END PART FOOTER *************/ } // end of switch } // end of function