self.name = "vh1";
// browser detection code for legacy pages
var NS = (navigator.appName == "Netscape");
var IE4 = document.all;
var NS4 = document.layers;
mac = navigator.appVersion.indexOf("Mac");
if(mac>=0) {mac=1} else {mac=0}
var compliant = document.getElementById;
var initialized = false;
function imgFlip(imageName,imageSrc){
	if(document.images && document.images[imageName])
		document.images[imageName].src = eval(imageSrc + ".src");
}
// FORM HANDLER CODE ----------------------------------------------------------
var win = null;
function formHandle(formname, listname){
	var l = document.forms[formname][listname];
	var i = l.selectedIndex;
	var url = l.options[i].value;
	var firstChar = url.charAt(0);
	var secondChar = url.charAt(1);
	var windowprops = new Array;
	windowprops[0] = "width=400,height=300,scrollbars=yes,resizable=yes";
	windowprops[1] = "width=320,height=180,screenX=30,screenY=30";
	// add new window properties here and call them by using '$' followed by the next array number and place in front of url 
	// do nothing if no url is selected
	if(url=='none') l.selectedIndex = 0;
	// open the link in a new browser window
	else if(firstChar=='+') open(url.substring(1), '_blank');
	// open as popup with attributes defined in the array windowprops[]
	else if(firstChar=='$') window.open(url.substring(2),"MenuPopup",windowprops[secondChar]);
	// just go to the URL
	else location.href = url;
}
// REGULAR EXPRESSION STRIPPER ------------------------------------------------
function valueStrip(regSearch,features){
	var results =  features.match(regSearch);
	if (results != null) return results[2];
	else return 0;
}
// POSITIONED POP UP WINDOW CODE ----------------------------------------------
function popper(theURL,winName,features,purl){
	var posWin = null;
	var gotIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;	
	var gotNS = (navigator.appName == 'Netscape') ? true : false;
	var gotNN6 = (gotNS && (parseInt(navigator.appVersion) >= 5)) ? true : false;
// REGULAR EXPRESSIONS TO STRIP OUT THE WIDTH AND HEIGHT VARS -----------------
	var widthMatch = /(width=)(\d+)/i;
	var heightMatch = /(height=)(\d+)/i;
	var scrollMatch = /(scrollbars=)([a-zA-Z0-9])/i;
	var numMatch = /\d+/;
	var width = valueStrip(widthMatch,features);
	var height = valueStrip(heightMatch,features);
	var scrollbars = valueStrip(scrollMatch,features);
	if (posWin!=null && !posWin.closed) posWin.close();
	if(gotIE){
		var left = (screen.Width/2) - width/2;
		var top = (screen.Height/2) - height/2;
		posWin = window.open(theURL,winName,"scrollbars=0,left="+left+",top="+top+",width="+width+",height="+height+",scrollbars="+scrollbars);
		if((typeof posWin != "undefined") && (posWin != null)){
			posWin.focus();
		}
	}
	else if(gotNS && !gotNN6){
		var left = (screen.availWidth/2) - width/2;
		var top = (screen.availHeight/2) - height/2;
		posWin = window.open(theURL,winName,"screenX="+left+",screenY="+top+",innerWidth="+width+",innerHeight="+height+",scrollbars="+scrollbars);
		posWin.focus();
	}
	else if(gotNN6){
		var left = (screen.availWidth/2) - width/2;
		var top = (screen.availHeight/2) - height/2;
		posWin = window.open(theURL,winName,"screenX="+left+",screenY="+top+",width="+width+",height="+height+",scrollbars="+scrollbars);
		posWin.focus();
	}else{
		posWin = window.open(theURL,winName,"scrollbars=0,width="+width+",height="+height+",scrollbars="+scrollbars);
		posWin.focus();
	}
	if (purl != null) window.location.href = purl;
}
// RELOADER CODE --------------------------------------------------------------
function load(){
	if (parseFloat(navigator.appVersion) == 4.08) return;
	location.reload();
}
// OPEN UP PREFERENCES WINDOW -------------------------------------------------
function pref(arg){
	var url;
	if (!arg) url = "/my_account/util/direct.jhtml?dir=popup&linkTextID=toPrefs&messageID=loginRequired&welcome=false&postLoginURL=/my_account/prefs/framey.jhtml";
	else if (arg=="newsletters") url = "/my_account/util/direct.jhtml?dir=popup&linkTextID=toNewsletters&messageID=loginRequired&welcome=false&postLoginURL=/my_account/prefs/framey.jhtml%3Fsrc%3Dnewsletters";
	else if (arg=="fanclubs") url = "/my_account/util/direct.jhtml?dir=popup&linkTextID=toFanClubs&messageID=loginRequired&welcome=false&postLoginURL=/my_account/prefs/framey.jhtml%3Fsrc%3Dfanclubs";
	else url = arg;
	popper(url, "prefs", "width=640,height=500,scrollbars=1");
}
function prefs(arg){
	var url;
	var id = null;
	if (!id){
		if (!arg) url = "/interact/my_account/my_account.jhtml";
		else if (arg=="newsletters") url = "/interact/my_account/newsletter_list.jhtml";
		else url = arg;
	}else  url = "/my_account/util/direct.jhtml?dir=popup&linkTextID=toArtistPage&messageID=loginRequired&welcome=false&postLoginURL=/my_account/prefs/framey_new.jhtml%3Fpaid%3D" + id;
	spawnOrLink(url);
}
// RADIO LAUNCH SCRIPTS - New Radio Skin , Urge Conversion --  Jayesh Patel
function depricatedStationAlert(){
	alert('This Station Is No Longer Available');
	return true;
}
function launchRSN(varStationID){
	var depricatedStation = false;
	switch (parseInt(varStationID)){
		case 17 : varStationID = 16372;
			break;
		case 141 : varStationID = 16383;
			break;
		case 59 : varStationID = 16393;
			break;
		case 174 : varStationID = 16458;
			break;
		case 22 : varStationID = 16398;
			break;
		case -147 : varStationID = 16591;
			break;
		case 2 : varStationID = 16437;
			break;
		case -174 : varStationID = 16409;
			break;
		case 14 : varStationID = 16527;
			break;
		case 224 : varStationID = 16370;
			break;
		case 12 : varStationID = 16427;
			break;
		case 231 : varStationID = 16493;
			break;
		case 52 : varStationID = 16367;
			break;
		case 26 : varStationID = 16369;
			break;
		case 24 : varStationID = 16385;
			break;
		case 37 : varStationID = 16381;
			break;
		case -179 : varStationID = 16530;
			break;
		case -221 : varStationID = 16569;
			break;
		case -34 : varStationID = 16406;
			break;
		case -234 : varStationID = 16650;
			break;
		case -247 : varStationID = 16888;
			break;
		case 117 : varStationID = 16430;
			break;
		case 145 : varStationID = 16436;
			break;
		case 28 : varStationID = 16438;
			break;
		case 84 : varStationID = 16439;
			break;
		case 146 : varStationID = 16399;
			break;
		case 27 : varStationID = 47850;
			break;
		case 202: varStationID = 16366;
			break;
		case 204 : varStationID = 16482;
			break;
		case -240 : varStationID = 16583;
			break;
		case 31 : varStationID = 16391;
			break;
		case 79 : varStationID = 16395;
			break;
		case -132 : varStationID = 16587;
			break;
		case -167 : varStationID = 16518;
			break;
		case 215 : varStationID = 16485;
			break;
		case 65 : varStationID = 16425;
			break;
		case 49 : varStationID = 16432;
			break;
		case -166 : varStationID = 16517;
			break;
		case -218 : varStationID = 16566;
			break;
		case -168 : varStationID = 16519;
			break;
		case 38: varStationID = 16460;
			break;
		case -172 : varStationID = 16523;
			break;
		case 143: varStationID = 16386;
			break;
		case 81 : varStationID = 16407;
			break;
		case 50 : varStationID = 16499;
			break;
		case 36 : varStationID = 16380;
			break;
		case -191 : varStationID = 16541;
			break;
			break;
		case -194 : varStationID = 16544;
			break;
		case 9 : varStationID = 16390;
			break;
		case 130 : varStationID = 16401;
			break;
		case 15 : varStationID = 16455;
			break;
		case 136 : varStationID = 16394;
			break;
		case -72 : varStationID = 16408;
			break;
		case -225 : varStationID = 16572;
			break;
		case 19 : varStationID = 16426;
			break;
		case 11 : varStationID = 16442;
			break;
		case -241 : varStationID = 16584;
			break;
		case 82 : varStationID = 16450;
			break;
		case 58 : varStationID = 16373;
			break;
		case 34 : varStationID = 16389;
			break;
		case 4 : varStationID = 16654;
			break;
		case 97 : varStationID = 16403;
			break;
		case 10 : varStationID = 16825;
			break;
		case 68 : varStationID =  16365;
			break;
		case 7 : varStationID = 16371;
			break;
		case 85 : varStationID = 16376;
			break;
		case -196 : varStationID = 16546;
			break;
		case 20 : varStationID = 16422;
			break;
		case 33 : varStationID = 16435;
			break;
		case 61 : varStationID = 16449;
			break;
		case 1205 : varStationID = 16483;
			break;
		case 6 : varStationID = 16388;
			break;
		case 102 : varStationID = 16375;
			break;
		case 5 : varStationID = 16405;
			break;
		case 126 : varStationID = 16443;
			break;
		case -239 : varStationID = 16582;
			break;
		case 35 : varStationID = 16428;
			break;
		case -222 : varStationID = 16570;
			break;
		case 203 : varStationID = 16489;
			break;
		case -270 : varStationID = 96704;
			break;
		case -94 : varStationID = 96710;
			break;
		case -209 : varStationID = 16557;
			break;
		case 162 : varStationID = 96712;
			break;
		case -215 : varStationID = 16564;
			break;
		case 201 : varStationID = 16480;
			break;
		case -158 : varStationID = 19716;
			break;
		case -138 : varStationID = 96717;
			break;
		case -193 : varStationID = 96718;
			break;
		case -180 : varStationID = 96719;
			break;
		case -145 : varStationID = 96723;
			break;
		case 13 : varStationID = 16423;
			break;
		case 500 : depricatedStation = depricatedStationAlert();
			break;
	}
	if(!depricatedStation){
		tuner = window.open('/sitewide/apps/radio/tuner/?stationId='+varStationID,'TUNER','width=688,height=320,toolbar=no,resizable=no,scrollbars=no');
	}
}
// VARIABLE FOR THE MY MUSIC RANDOM PICTURE -----------------------------------
RandNum = null;
var reef = false;
function hotOrNot(url){
	popper(url,'popUp','width=728,height=595,scrollbars=0');
}
function spawnOrLink(theURL){
window.location.href = theURL;
}
function targetBrow(theURL,winName){
	window.open(theURL,winName);
}

// MTVN.Series is moved the below static function from inlineAssetPageTheming.jhtml and introduced global javascript variable for dynamic values
if (typeof(MTVN) == 'undefined') MTVN ={};
MTVN.Series = new function(){
	var contentParams ={};
	var seriesName;
	var seriesId;
	var theme;
	this.nav;
	var dataUrl = "/global/music/scripts/getSeriesTheming.jhtml";
	var defaultNav = "/sitewide/navigation/menubar_new.jhtml";
	this.init = function() {
		if (this.isAssetPage("video")){
			this.getContentRecord();
			this.getVideoRecord();
			this.getSeriesJson();
		}else if (this.isAssetPage("photo")){
			this.getFlipbookRecord();
			this.getSeriesJson();
		}else{
			MTVN.Series.nav = defaultNav;
		}
	}
	this.isAssetPage = function(section){
		var path = window.location.href;
		var pathvars = path.split("/");
		if (pathvars[3].substr(0,5)==section) return true;
		else return false;
	}
	this.getContentRecord = function(){
		// Grab ID from the URL hashmark
		var hash = window.location.hash.substring(1);
		var vars = hash.split("&");
		for (var i=0; i < vars.length; i++){
			var pair = vars[i].split("=");
			if (pair[0] == "id"){
				contentId = pair[1];
			}
		}
		// Set hashmark ID as the param.
		if ( typeof( contentId ) != "undefined") contentParams.id = contentId;
		// If it's undefined, then it could be a full episode with an ID already parameterized. Check for that.
		else contentParams.id = mtvseriesid;
	}
	this.getFlipbookRecord = function(){
		var querySt = window.location.search.substring(1);
		gy = querySt.split("&");
		for (i=0;i<gy.length;i++){
			ft = gy[i].split("=");
			if (ft[0] == "fid") {
				flipbookID = ft[1];
			}
		}
		if ( typeof( flipbookID ) != "undefined") contentParams.id = flipbookID;
		else contentParams.id = mtvseriesfbid;
	}
	this.getVideoRecord = function(){
		// Grab vid for orphan videos and Entity Set theming.
		var videoId = mtvseriesvid;
		if (videoId != "null") contentParams.vid = videoId;
	}
	this.getSeriesJson = function(){
		if ( contentParams.id != "null"){
			$j.ajax({
				url: dataUrl,
				data: contentParams,
				dataType: "json",
				async: false,
				success: function(data){
					MTVN.Series.parseSeriesData(data);
				},
				complete: function(){
				}
			});
		}else{
			MTVN.Series.nav = defaultNav;
		}
	}
	this.parseSeriesData = function(data){
		if (data.document.series != undefined ){
			if(data.document.series.name!=undefined) MTVN.Series.seriesName = data.document.series.name;
			if(data.document.series.id!=undefined) MTVN.Series.seriesId = data.document.series.id;
			if(data.document.series.nav!=undefined) {
				MTVN.Series.nav = data.document.series.nav;
			}
			if(data.document.series.theme!=undefined){
				MTVN.Series.theme = data.document.series.theme;
			}
			if(data.document.series.event!=undefined){
				MTVN.Series.event = data.document.series.event;
				this.setAdProps(MTVN.Series.event);
			}
			this.setReportingProps();
		}
	}
	/* Moved theme and nav setters to inline javascript variables instead of ajax requests */
	this.setReportingProps = function() {
		dispatcher.setAttribute('prop15',MTVN.Series.seriesName+'#'+MTVN.Series.seriesId);		
		// Event reporting
		if (MTVN.Series.event!=undefined) dispatcher.setAttribute('prop44',MTVN.Series.event);
	}
	this.setAdProps = function(eventname) {
		com.mtvi.ads.AdManager.setKeyValues('event='+eventname);
	}
}
/* Launch Vspot is included for vibe awards*/
function launchVspot(){
	var id = null;
	var vid = null;
	var name = null;
	var videoURL = "/video/";
	var params = "?";
	if (arguments.length > 0){
		for(var i=0; i<arguments.length; i++){
			if(arguments[i].indexOf('&')>-1){
				var pairs = arguments[i].split('&');
				for(var j = 0; j <pairs.length; j++){
					var namevalue = pairs[j].split('=');
					if(namevalue[0]=='id')
						id = namevalue[1];
					if(namevalue[0]=='vid')
						vid = namevalue[1];
					if(namevalue[0]=='name')
						name = namevalue[1];
				}
			}else{
				var namevalue = arguments[i].split('=');
				if(namevalue[0]=='id')
					id = namevalue[1];
				if(namevalue[0]=='vid')
					vid = namevalue[1];
				if(namevalue[0]=='name')
					name = namevalue[1];
			}
		}
	}else{
		// no usable arguments - load the /video/ page
		}
		if(id==null && vid==null && name==null){
		document.location.href = '/video/';
		return;
	}else if(id==null && vid==null && name!=null){
		// redirect to the name page
		var redirectPage = "/video/"
		if(name != 'editorspicks' || name != 'featured'){
			redirectPage += name+'.jhtml';
		}
		document.location.href = redirectPage;
		return;
	}else{
		var redirectPage = '/video/play.jhtml';
		var params = '';
		if(id!=null || vid !=null || name!=null)
			params += '?';
		if(id!=null)
			params+='id='+id;
		if(vid!=null){
			if(id!=null)
				params+='&';
			params+='vid='+vid;
		}
		if(name!=null){
			if(id!=null || vid !=null)
				params+='&';
			params+='name='+name;
		}
		document.location.href = redirectPage+params;
		return;
	}
}
function makeScheduleExt(themesJSON, n, sn){
	System.out.println('makeSchduelExt');
	var cd = new Date();//client date
	var loc = window.location.pathname;
	var t = sn['_testTheme']; 
	
	//check if testmode is set to theme_*
	var tm = sn['testmode'];
	if(typeof tm != 'undefined'){
		if(tm.indexOf("theme_") > -1){
			t = tm.substring(5);
		}
	}
	
	for(var i=0;i < themesJSON.themes.length; i++){
	if(themesJSON.themes[i]!=null){
		var pageurl = themesJSON.themes[i].pageurl;
		var start = themesJSON.themes[i].start;
		var end = themesJSON.themes[i].end;
		var url = themesJSON.themes[i].url;
		var oparamName = themesJSON.themes[i].oparamName;
		if(pageurl.indexOf("*") > -1) loc = loc.substring(0,pageurl.indexOf("*"))+'*'; 
		if(loc == pageurl){
			var cn = {};
			cn['start']= themesJSON.themes[i].start;
			cn['end']= themesJSON.themes[i].end;
			cn['pageurl']=themesJSON.themes[i].pageurl;
			cn['url']= themesJSON.themes[i].url;
			cn['oparamName']=themesJSON.themes[i].oparamName;
			if(cn['start'].indexOf(":") < 0){  // mtv format
				var sa = cn['start'].split(" "); var ea = cn['end'].split(" ");
				cn['start'] = sa[2]+'/'+sa[0]+'/'+sa[1]+' '+ sa[3]+':'+sa[4];
				cn['end'] = ea[2]+'/'+ea[0]+'/'+ea[1]+' '+ ea[3]+':'+ea[4];
			}
			var s = new Date(cn['start']);
			var e = new Date(cn['end']);
			if(t==cn['oparamName']||parseInt(t)==i){ // display datetime for this theme
				var h = '<span id="testinfo" style="position:absolute; left:3px; top:3px;padding:3px; background:#ff6600; font-family:helvetica; font-size:11px; z-index:9999999">';
				h += cn['start']+'<br>';
				h += cn['end']+'<br>';
				h += cn['url'];
				h += '</span>'
				document.write(h);
			}
			if((n < e && n >= s)||t==cn['oparamName']||parseInt(t)==i){
				//alert('test');
				//this.scheduledTheme = cn['url'];
				if(cn['track']!=null && cn['track']!='' && cn['track']!='undefined'){
					var ts = cd.getTime();
					var tfp = cn['track'].replace(/\[timestamp\]/, ts);
					document.write('<div id="track" style="position:absolute; left:-10; width:1px; height:1px; overflow:hidden;"><img s'+'rc="'+tfp+'" width="1" height="1" border="0"/></div>');
				}
				return cn['url'];
			}
		}
	}
	}
}
sfHover2 = function(){
	var parentWrap = "watchPerformances";
	var sfEls2 = document.getElementById(parentWrap).getElementsByTagName("li");
	for (var i=1; i != sfEls2.length; i++){
		sfEls2[i].onmouseover=function(){
			this.className+=" sfhover";
		}
		sfEls2[i].onmouseout=function(){
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
/* Start of "CODA" methods moved from /sitewide/droplets/rep_coda_new.jhtml as part of front end optimization work */
function set_HCode_Values(dispatcher,flipbooktitle_flipbookid,flipbooktitle){
	//Set H-code values
	dispatcher.setValues({
		currencyCode: 'USD',
		channel: com.mtvi.config.SectionSetup["portal"],
		prop1: com.mtvi.config.SectionSetup.artist_rollup?unescape(com.mtvi.config.SectionSetup.artist_rollup):"",
		prop2: com.mtvi.config.SectionSetup.album?unescape(com.mtvi.config.SectionSetup.album):"",
		prop3: "",
		prop5: "",
		prop6: "",
		prop8: "",
		prop9: com.mtvi.config.SectionSetup.boardName?unescape(com.mtvi.config.SectionSetup.boardName):"",
		prop10: com.mtvi.config.SectionSetup.dynCharts?unescape(com.mtvi.config.SectionSetup.dynCharts):"",
		prop11: com.mtvi.config.SectionSetup.vid?com.mtvi.config.SectionSetup.vid:"",
		prop12: com.mtvi.config.SectionSetup.if_nt_vidOrigin?com.mtvi.config.SectionSetup.if_nt_vidOrigin:"",
		prop13: "",
		prop14: com.mtvi.config.SectionSetup.section_1=="flipbooks"?flipbooktitle_flipbookid:"",
		prop15: ((flipbooktitle+"")!= "" && typeof com.mtvi.config.SectionSetup.flipImgIndx != "undefined") ? com.mtvi.config.SectionSetup.flipUrl+"|"+com.mtvi.config.SectionSetup.flipImgIndx : "",
		prop16: com.mtvi.config.SectionSetup.partner?com.mtvi.config.SectionSetup.partner:"",
		prop17: "",
		prop18: com.mtvi.config.SectionSetup.story?unescape(com.mtvi.config.SectionSetup.story):"",
		//prop19: com.mtvi.config.SectionSetup.storyDate?com.mtvi.config.SectionSetup.storyDate:"",
		prop20: com.mtvi.config.SectionSetup.intCmp?com.mtvi.config.SectionSetup.intCmp:"",
		prop21: com.mtvi.config.SectionSetup.OD_rollUp?com.mtvi.config.SectionSetup.OD_rollUp:"",
		prop7: com.mtvi.config.SectionSetup.rollUp?com.mtvi.config.SectionSetup.rollUp:"",
		prop23: "",
		prop24: "",
		prop25: com.mtvi.config.SectionSetup["if_nt_Flash"],
		prop26: com.mtvi.config.SectionSetup.rssTraffic?com.mtvi.config.SectionSetup.rssTraffic:"",
		prop19: com.mtvi.config.SectionSetup.movieRollup?com.mtvi.config.SectionSetup.movieRollup:"",
		prop15: com.mtvi.config.SectionSetup.showRollup?com.mtvi.config.SectionSetup.showRollup:"",
		prop32: com.mtvi.config.SectionSetup.lyricsProp32?com.mtvi.config.SectionSetup.lyricsProp32:"",
		prop34: com.mtvi.config.SectionSetup.lyricsProp34?com.mtvi.config.SectionSetup.lyricsProp34:"",
		prop44: com.mtvi.config.SectionSetup.eventRollup?com.mtvi.config.SectionSetup.eventRollup:"",
		trackDownloadLinks: true,
		trackExternalLinks: true,
		trackInlineStats: true,
		linkDownloadFileTypes: 'exe: zip: wav: mp3: mov: mpg: avi: wmv: doc: pdf: xls',
		linkLeaveQueryString: false,
		linkTrackVars : 'eVar2,prop8,events,products,prop25,eVar28,prop31,eVar7,eVar8,eVar9,eVar49',
		linkTrackEvents: 'event15,event12,event13',
		eVarCFG: '',
		campaign: campaign,
		eVar1: com.mtvi.config.SectionSetup.intCmp
	});
}
/* CONVERTED FUNCTIONS FROM omni_config.js */
function vh1_cfg_getPagename(){
	var pn;
	try {
		var ss = com.mtvi.config.SectionSetup;
		var defaultPageName = location.pathname+location.search;
		var origPageName = com.mtvi.config.SectionSetup["origPageName"];
		var path = "";
		if(typeof ss["portal"] != "undefined") path += "/"+ss["portal"] ;
		else if(typeof ss["gateway"] != "undefined") path += "/"+ss["gateway"];
		else return defaultPageName;

		for(s in com.mtvi.config.SectionSetup){
			if(s.indexOf("section_")==0 && com.mtvi.config.SectionSetup[s]!=""){
				path += "/"+com.mtvi.config.SectionSetup[s];
			}
		}
		path += "/"+origPageName;
		path = path.replace(new RegExp("/+","g"),"/");
		path = path.replace(new RegExp("/series/","g"),"/");
		path = path.replace(new RegExp("/dyn/","g"),"/");
	}catch(e){}
	return path;
}
function vh1_cfg_getHierarchy() {
	var h = com.mtvi.config.SectionSetup["pageName"];
	try{
		h = h.replace(new RegExp("#VID:","g"),"/VID/");
	}catch(e){}
	if(h.substring(0,1) == "/"){
	h = h.substring(1);
	}
	return h;
}
function vh1_cfg_getShowName(){
	var hr, sh
	var sn = "";
	try{
		if(com.mtvi.config.SectionSetup.portal == "shows"){
			hr = vh1_cfg_getHierarchy();
			sh = hr.split("/");
			sn = sh[1];
		}
	return sn;
	}catch(e){
		mtvi_catchError(e);
	}
}
/*function moved from coda_overrides_js.jhtml as part of front end optimization work*/
function parseDynCharts(){
	try{
		var prefix = "if_nt_dynCharts_";
		var charts = ["albums","artistBrds","artists","news","photoArtists","photoShows","showBrds","shows","tours","videos"];
		var chartsCall = "";
		for(i in charts){
			if(typeof com.mtvi.config.SectionSetup[prefix + charts[i]] != "undefined"){
				chartsCall += charts[i] + "_" + com.mtvi.config.SectionSetup[(prefix + charts[i])] + "|";
				delete com.mtvi.config.SectionSetup[prefix + charts[i]];
			}
		}
		chartsCall = chartsCall.substring(0, chartsCall.length-1);
		if(chartsCall != "")
			com.mtvi.config.SectionSetup.dynCharts = unescape(chartsCall);
		}catch(e){}
	}
/* End of "CODA" methods*/
/* As a part of Performance Optimization Dart Theme function has been moved to common.js */
DartTheme = function(){
MTVN.DartThemeOverride = function(path){
		System.out.println('dart theme='+path);
		if(path!='no_dart_skin')
			theme = '/sitewide/css/charlie/themes/dart/'+path+'/theme.css';
	}
	MTVN.DartThemeCall = function(){
			com.mtvi.ads.AdManager.placeAd({size:"3x3"});
	}
	out('loc='+document.location.pathname);
	if(document.location.pathname == '/')
		MTVN.DartThemeCall();
}
function openArtistQuiz(paid) {
    popper('/artists/azdroplets/quiz_template/template.jhtml?paid=' + paid,'artistQuiz','width=468,height=421,scrollbars=0');
}



