

try {
var pageTracker = _gat._getTracker("UA-8965543-1");
pageTracker._trackPageview();
} catch(err) {}


COMSCORE.beacon({c1:2,c2:"5916986",c3:"",c4:"",c5:"",c6:"",c15:""});

var mep1='';


if(typeof(window['OAS_sitepage'])==="undefined"||!OAS_sitepage) {OAS_sitepage='artistdirect.com/';}
if(typeof(window['OAS_query'])==="undefined"||!OAS_query) {OAS_query='';}
if(typeof(window['OAS_target'])==="undefined"||!OAS_target) {OAS_target='_top';}


NAD_listpos.push(n_pop);

var duration = 1000 * 60 * 20 * 1;
var pc = getCookie( 'NAD_pc' );
var ses = getCookie( 'NAD_ses' );
var if_google = ( getParam('aff')=='google' )? "true":"false";
if( if_google == "false" ) {
	if( ses == null ) 
	{
		NAD_date = new Date( (new Date()).getTime() + duration );
		document.cookie="NAD_ses=set; path=/; domain=artistdirect.com; expires=" + NAD_date.toGMTString();
		document.cookie="NAD_pc=1; path=/; domain=artistdirect.com;";
		NAD_popstatus= "1; " + NAD_date.toDateString() + " " + NAD_date.toTimeString();
		pc = 1;
	} else {
		if( pc == null ) {pc = 0;}
		pc++;
		document.cookie="NAD_pc=" + pc + "; path=/; domain=artistdirect.com";
		NAD_popstatus=pc;
	}
//if( pc == 1 ) {NAD_listpos.push(n_pop);}
}

var x94enabled=0;
if( window.top==window && 
	isCustomPage==false &&
	window.location.hostname.indexOf("artistdirect.com")!=-1 &&
	window.location.pathname.indexOf("/artist/gallery/")!=0 && 
	window.location.pathname.indexOf("/prm")!=0 )
{
	NAD_listpos.push('x94');
	x94enabled=1;
}

for(var i=0;i<NAD_listpos.length;i++) {



	if(NAD_listpos[i]=="Bottom" || NAD_listpos[i]=="x50") {
		NAD_listpos[i]=undefined;
	}	

	if(NAD_listpos[i]=="Frame1" && isCustomPage!=false) {
		NAD_listpos[i]=undefined;
	}
}

var OAS_listpos = '';
if(NAD_listpos.length>0) {OAS_listpos=NAD_listpos.join(',');}


if(typeof(isVevoVideo)!='undefined' && isVevoVideo) {OAS_listpos = '';}


while( NAD_xevals.length>0 ) { var pair = NAD_xevals.shift(); if( pair != null && pair != '' ) { mep1 = mep1.concat( "&" + pair ); }}

OAS_query += '&XE' + mep1 + '&XE';
OAS_url = 'http://oascentral.artistdirect.com/RealMedia/ads/';
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>'); document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');}

OAS_version = 11;
if (navigator.userAgent.indexOf('Mozilla/3') != -1 || navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1) { OAS_version = 10; }

if(OAS_listpos!='') {
	//if there are any position set at all... call MJX
	if (OAS_version >= 11) {document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"></SCR' + 'IPT>');}
} else {
	function OAS_RICH(position) {}
}



function OAS_AD(pos) {

	
	if(typeof(isVevoVideo)!='undefined' && isVevoVideo) {
		if(pos=='Top') {
			var tempHTML='';
			tempHTML += '<span id="comp_728x90" class="_fwph">';
			tempHTML += '<form id="_fw_form_comp_728x90" style="display:none" >';
			tempHTML += '<input type="hidden" name="_fw_input_comp_728x90" id="_fw_input_comp_728x90" value="ptgt=p&envp=g_iframe_js&slid=comp_728x90&w=728&h=90&flag=-cmpn" />';
			tempHTML += '</form>';
			tempHTML += '<span id="_fw_container_comp_728x90" class="_fwac"></span>';
			tempHTML += '</span>';
			tempHTML += '<style>.ad_300side {display:none !important;}</style>';
			document.writeln(tempHTML);
		}
		return;
	}

	if(pos!='Bottom') {
		//if not position Bottom, serve using OAS


		
		if (OAS_version >= 11) {OAS_RICH(pos);} else {OAS_NORMAL(pos);}

	} else {



	}
}


if( mep1=="" && NAD_xevals.length>0 ) {while( NAD_xevals.length>0 ) { var pair = NAD_xevals.shift(); if( pair != null && pair != '' ) { mep1 = mep1.concat( "&" + pair ); }}}

var xe_random; if (isNaN(document.axel)) {document.axel = Math.random() + ""; xe_random = document.axel * 1000000000000000000;}
NAD_xevals.push( 'xe_agt=' + escape(navigator.userAgent.toLowerCase()) );
NAD_xevals.push( 'xe_random=' + xe_random );

if( typeof(if_artd_country)!="undefined" && if_artd_country ) {NAD_xevals.push( 'Country=' + if_artd_country );}
