function writeToDom(part) { switch(part) { /************* START PART 1 *************/ case "scripts": MTVM = {} document.write(''+ 'var $J = jQuery.noConflict();<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ ''+ ''+ ' var CoAdBrowser = function(){}'+ '<\/sc'+'ript>'+ ''+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ ''+ ' MTVM.contextValues = {};'+ ' MTVM.contextValues.pageType = "community";'+ ' MTVM.contextValues.artistAlias = ('+ ' ("".length > 0) ?'+ ' "" :'+ ' "none");'+ ' MTVM.contextValues.vid = ('+ ' ("".length > 0) ? "" : "none");'+ ' MTVM.contextValues.genre = "none";'+ ' MTVM.contextValues.vid_type = "none";'+ ' MTVM.contextValues.user_playlist_id = ('+ ' ("".length > 0) ?'+ ' "" :'+ ' "none");'+ ' MTVM.contextValues.chart_id = "none";'+ ' MTVM.contextValues.search_kw = ('+ ' ("".length > 0) ?'+ ' MTVM.util.flattenString("") :'+ ' "none");'+ ' MTVM.contextValues.search_kw = ('+ ' ("".length > 0) ?'+ ' "" :'+ ' "none");'+ ' var userRegion = "US";'+ ' if (userRegion.match(/country_code/)) {'+ ' userRegion = "none";'+ ' }'+ ' MTVM.contextValues.userRegion = userRegion;'+ ' MTVM.contextValues.mpu = "1"; '+ '<\/sc'+'ript>'+ ''+ ' function isContinuousPlay() {'+ ' return false;'+ ' }'+ ' function _void()'+ ' {}'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'); break; /************* END PART SCRIPTS *************/ /************* END beforePageHeader*************/ case "beforePageHeader": document.write(''+ '
'+ ''+ '$J(document).ready(function(){MTVM.Playlist.updateQuicklistCount();});'+ '<\/sc'+'ript>'); document.write(''+ 'MTVM.Playlist.config.userUcid = MTVM.flux.getUserUcid();'+ '<\/sc'+'ript>'); break; /************* END beforePageHeader *************/ /************* START afterPageHeader *************/ case "afterPageHeader": document.write('
 
'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '<\/sc'+'ript>'+ '
'+ ' '+ ''+ '
'+ ''+ '
'+ ''); document.write(''+ ''+ ''+ ''+ ''+ ''+ ''+ '
'+ '
'); break; /************* END afterPageHeader *************/ /************* 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 POST AD *************/ case "post728Ad": document.write(''+ '
'+ '
'+ '
'); break; /************* START sponsorTextAd *************/ case "sponsorTextAd": MTVM.services.Ads.sponsorText.getAd(); break; /************* START postSponsorTextAd *************/ case "postSponsorTextAd": document.write('
'+ ''+ ''+ ''+ ''+ ''+ ''); if(MTVM.flux.isUserLoggedInFlux() == true){ document.write(''+ ''+ ''); } document.write(''+ ''+ '
'+ '
'); break; /************* END postSponsorTextAd *************/ /************* START preNavbar *************/ case "preNavbar": document.write('
|||
'+ '
'); break; /************* END preNavbar *************/ /************* START logoTopAd *************/ case "logoTopAd": MTVM.services.Ads.logoTop.getAd(); break; /************* Start preNavbar2 *************/ case "preNavBar2": document.write('

'+ ''); break; /************* END preNavbar2 *************/ /************* START NAVBAR *************/ case "navbar": document.write(''+ '
'+ ''+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ ' '+ ' '+ '
'+ ' '+ ' FIND ARTIST A B C D E F G H I J K L M N O P Q R S T U V W X Y Z # '+ '
'+ '
'+ '
'+ ''+ ' '+ '
'+ ' '+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ '
'+ ' '); break; /************* END NAV BAR*************/ /************* START PART FOOTER *************/ case "footer": document.write('
'+ ''); 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("externUserID", MTVM.flux.getUserUcid()); MTVN_PL.Controller.configure("loginSystem", MTVM.Playlist.config.controller.loginSystem); MTVN_PL.Controller.configure("isCommunityMember", (window.Flux != undefined && Flux.Context.isCommunityMember())); MTVN_PL.Controller.configure("requireMembership", true); 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(); } MTVN_PL.Controller.init(); document.write('
'+ ''+ 'MTVN_PL.PlaylistManager.placeList("quicklist", MTVN_PL.LastAddedPlaylist, false);'+ '<\/sc'+'ript>'+ '
'); MTVM.services.Ads.getSurveyAd(); break; /************* END PART FOOTER *************/ } }