function localModulesHandler() {alert('localModulesHandler');

//6618
	

	// Hope For Haiti Promo
	if (MTVN.Player.id=="1630164"||MTVN.Player.vid=="473588"||MTVN.Player.vid=="473450") {			
		// load promo
		var container = $j("#customPromoB");	
		container.empty().flash(
			{
				swf: '/sitewide/css/themes/hope_for_haiti/haiti_300x155.swf',
				params: {
					bgcolor: '#f2f2f4'
		        }
			}
		);
	}	
	
	// WATW Promo
	if (MTVN.Player.id=="1631873") {
		// load promo
		var container = $j("#customPromoB");
		container.empty().append("<a href='http://www.world25.org/' target='_blank'><img border='0' src='/sitewide/images/WAR_donate.jpg' vspace='5'/></a>");
	}

	// Miley Cyrus Promo
	if (MTVN.Player.id=="1641796") {
//		if (MTVN.Player.artists=="2408193"&&MTVN.contentTypeId=="10") {
		// load promo
		var container = $j("#customPromoB");
		container.empty().append("<a href='http://ad.doubleclick.net/clk;226013950;4007638;z?http://www.mileycyrus.com' target='_blank'><img border='0' src='/sitewide/css/themes/miley_livestream/300x100.jpg' vspace='10'/></a>");
	}

	// if (MTVN.Player.id=="1650635"||MTVN.Player.id=="1650636"||MTVN.Player.vid=="589000") {
    // var container = $j("#playlist");
	//	container.before("<div class='promoBar'><a target='target' href='http://www.target.com/b?node=2431874011'><img border='0'  src='/sitewide/css/themes/taylorswift/promobar.jpg'/></a></div>");
	// }
	
	// YOK Live Module
	if (MTVN.Series.seriesId=="502") {
		var container = $j("#customPromoB");
		$j.get("/video/modules/yok_live.jhtml", {}, function(data){
			container.empty().append(data);	
		});
	}
	if(MTVN.Series.seriesId =="37004"){
		alert('right here');
	
	
	}
	
	// if (MTVN.Player.id=="1652501"||MTVN.Player.vid=="598640") {
		// var container = $j("#playlist");
		// container.before("<div class='promoBar'><a target='target' href='http://twitter.com/home?status=%23MCREncore%20I%20want%20%40MCROfficial%20to%20play%20this%20song%20LIVE%20at%20www.vh1.com%3A'><img border='0'  src='/content/video/config/skins/my_chemical_romance/promobar.jpg'/></a></div>");
	// }
	
	// Browse Video Channels module
	var container = $j("#customPromo");	
	$j.get("/video/modules/browse_video_channels.jhtml", {}, function(data){
		container.empty().append(data);	
	});
		
	MTVN.Flux.Widgets.loadAll();
}

// disable ecom

MTVN.Player.getEcom = function() {}

MTVN.Player.localModulesHandler = localModulesHandler;
MTVN.Player.bannerAdRefreshTime = 45000;
MTVN.Player.coAdRefreshTime = 45000;
MTVN.Player.rectangleAdRefreshTime = 45000;
MTVN.Player.channelId = "3";
MTVN.Player.freeWheelSSID = "VH1_Videos";
//mtvn.btg.config.AdSettings.FreeWheel = {enabled:true,type:"MRM"};

