	/*
	
		To Use:
			To add or change an entry.
				$SCData( [name], [value] );
			To remove an entry.
				$SCData( [name], null );
			To get and entry value.
				$SCData( [name] );
	
		ls values (Login Success)
			0 = failed
			1 = sucess
			
		utype values (User Type)
			0 = Anonymous
			1 = Member (LFM)
			2 = Subscriber (NAPSTER)
			3 = NTG

		rs values (Registration Source)
			0 = Explicit
			1 = Play
			2 = Buy
			3 = NapsterLink
			4 = Removed
			5 = Error (Signin)
			6 = Error (Registration)
			
		ref values (Referral Sites)
			0 = NapsterLink
			1 = Media Defender
			3 = Other
			
		ter values (Territory)
			0 = US
			1 = GB
			2 = CA
			3 = DE
			4 = JP
			5 = Other
	*/
	if(document.location.hostname.indexOf("napster.com") > -1) {
		document.writeln( '<sc' + 'ript language="JavaScript1.2" type="text/javascript" src="/js/s_code_remote_H11_orig.js"></' + 'script>' );
	}
	else {
		document.writeln( '<sc' + 'ript language="JavaScript1.2" type="text/javascript" src="http://www.napster.com/js/s_code_remote_H11_orig.js"></' + 'script>' );
	}
	var objSCData = new Object();

	objSCData['utype'] = new Array();
	objSCData['utype'][0] = 'Anonymous';
	objSCData['utype'][1] = 'LFM';
	objSCData['utype'][2] = 'Napster Subscriber';
	objSCData['utype'][3] = 'NTG Subscriber';
	
	objSCData['rs'] = new Array();
	objSCData['rs'][0] = 'Explicit';
	objSCData['rs'][1] = 'Play';
	objSCData['rs'][2] = 'Buy';
	objSCData['rs'][3] = 'NapsterLink';
	objSCData['rs'][4] = '';
	objSCData['rs'][5] = 'Error (Signin)';
	objSCData['rs'][6] = 'Error (Registration)';
	
	objSCData['ref'] = new Array();
	objSCData['ref'][0] = 'NapsterLink';
	objSCData['ref'][1] = 'Media Defender';
	objSCData['ref'][3] = 'Other';
	
	objSCData['ter'] = new Array();
	objSCData['ter'][0] = 'US';
	objSCData['ter'][1] = 'GB';
	objSCData['ter'][2] = 'CA';
	objSCData['ter'][3] = 'DE';
	objSCData['ter'][4] = 'JP';
	objSCData['ter'][5] = 'All Other';
	
	var FWSupportedCountries = new Object();
	FWSupportedCountries['US'] = true;
	FWSupportedCountries['GB'] = false;
	FWSupportedCountries['CA'] = false;
	FWSupportedCountries['DE'] = false;
	FWSupportedCountries['JP'] = false;

	var TerritoryMap = new Object();
	TerritoryMap['US'] = 0;
	TerritoryMap['GB'] = 1;
	TerritoryMap['CA'] = 2;
	TerritoryMap['DE'] = 3;
	TerritoryMap['JP'] = 4;
	TerritoryMap['Other'] = 5;
	
	var UserTypeMap = new Object();
	UserTypeMap['LFM'] = 1;
	UserTypeMap['SUB'] = 2;
	UserTypeMap['NTG'] = 3;

	var EventMap = new Object();
	EventMap['ContentAction'] = 'event1';
	EventMap['Click'] = 'event2';
	EventMap['Sign-In Completion'] = 'event3';
	EventMap['Registration Completion'] = 'event4';

	var $SCData = function(){
		if( arguments[0] != null ){
			var strSCDName = arguments[0];
			var strSCDValue = null;
			if( arguments.length == 2 )
				strSCDValue = arguments[1];
			var strSCCookieData = $C( 'SCD' );
			if( arguments.length == 1 ){
				var aryDataPairs = strSCCookieData.split( '&' );
				for( intDataIndex = 0; intDataIndex < aryDataPairs.length; intDataIndex++ ){
					var intPosition = aryDataPairs[intDataIndex].indexOf('=');
					if( intPosition == -1 ) continue;
					var strDataName = aryDataPairs[intDataIndex].substring( 0, intPosition );
					var strDataValue = aryDataPairs[intDataIndex].substring( intPosition + 1 );
					if( strDataName == strSCDName ){
						if( objSCData[strDataName] != null )
							return unescape( objSCData[strDataName][strDataValue] );
						else
							return unescape( strDataValue );
					}
				}
			}
			else if( arguments.length == 2 ){
				var strSCData = '';
				var aryDataPairs = strSCCookieData.split( '&' );
				var objSCD = new Object();
				for( intDataIndex = 0; intDataIndex < aryDataPairs.length; intDataIndex++ ){
					var intPosition = aryDataPairs[intDataIndex].indexOf('=');
					if( intPosition == -1 ) continue;
					var strDataName = aryDataPairs[intDataIndex].substring( 0, intPosition );
					var strDataValue = aryDataPairs[intDataIndex].substring( intPosition + 1 );
					objSCD[strDataName] = unescape( strDataValue );
				}
				objSCD[strSCDName] = strSCDValue;
				for( var strValues in objSCD ){
                                        if (strValues.indexOf('toSource') > -1) continue;
					if( objSCD[strValues] != null && objSCD[strValues] != 'null' )
						strSCData += "&" + strValues + '=' + escape( objSCD[strValues] );
                                }
				strSCData = strSCData.substring( 1 );
				var objDate = new Date();
				objDate.setTime( objDate.getTime() + ( 1000 * 60 * 60 * 24 * 365 ) );
				document.cookie = "SCD=" + escape( strSCData ) + "; domain=.napster.com; path=/; expires=" + objDate.toGMTString();
			}
		}
	}


	
	if( location.search.indexOf( 'debug=sc' ) > -1 )
		$SCData( 'debug', true );
	
	if( typeof( $SCData( 'r' ) ) == 'undefined' )
		$SCData( 'r', 0 );
	
	if( $C( 'CLID' ) && $SCData( 'r' ) == 0 )
		$SCData( 'r', 1 );
	
	if( typeof( $SCData( 'utype' ) ) == 'undefined' ){
		$SCData( 'utype', 0 );
		var objDate = new Date();
		$SCData( 'time', ( objDate.getTime() / 1000 ) );
	}
	else{
		if( $C( 'SL' ) == null || $C( 'SL' ) == '' )
			$SCData( 'utype', 0 );
		else
			$SCData( 'utype', UserTypeMap[$C( 'SL' )] );
	}

        if( typeof( FWSupportedCountries[$C( 'COUNTRYCODE' )] ) == 'undefined' )
		$SCData( 'ter', TerritoryMap['Other'] )
	else
		$SCData( 'ter', TerritoryMap[$C( 'COUNTRYCODE' )] )
	
	function IsNewUser(){
		var intTime = ( $SCData( 'time' ) * 1000 ) + 864000;
		var objDate = new Date();
		var intNowTime = objDate.getTime();
		if( intNowTime < intTime )
			return "New";
		else
			return "Returning";
	}

	/*
		s_channel = {channel of page}
		s_prop1 = {subsection of page - blank if none}
		s_prop2 = {identifying variables for the particular page [i.e. if it's an artist page, put the artist name here,
					browse - put the browse genre name here]}
		s_prop3 = {subscription level, stored in the SL cookie - we're looking for "visitor", "web user" (LFM), or
					"subscriber", so translate cookie value as necessary}
	*/


	var channelOverrides = new Object();
	//channelOverrides['choose'] = 'Registration';
	channelOverrides['subscribe'] = 'Registration';
	channelOverrides['virgin'] = 'Registration';

	function chOverride(path) {
		// override channel if our path matches
		for(i in channelOverrides) {
			if(path.indexOf(i) > -1) {
				s.channel = channelOverrides[i];
				continue;
			}
		}
	}


	var objChannels = new Object();
	// New reverse-proxied Darwin splash page
	objChannels[''] = ['splash','','main' ];

        objChannels['choose'] = ['splash','','main' ];

	// New Darwin Testing 20080305 
	objChannels['choose/index_default_copy.html'] = ['splash','','copy of main' ];        
	objChannels['choose/index_Dv1_1.html'] = ['splash','','Splash1.1_1' ];
        objChannels['choose/index_Dv1_2.html'] = ['splash','','Splash1.2' ];
        objChannels['choose/index_Dv1_4.html'] = ['splash','','Splash 1.4' ];
        objChannels['choose/index_Dv1_green.html'] = ['splash','','Splash1green' ];
        objChannels['choose/index_Dv1_orange.html'] = ['splash','','Splash1orange' ];
        objChannels['choose/index_Dv2_1orange.html'] = ['splash','','Splash2.1_orange' ];
        objChannels['choose/index_Dv2_1pink.html'] = ['splash','','Splash2.1_pink' ];
        objChannels['choose/index_Dv4_1.html'] = ['splash','','Splash4.1' ];
        objChannels['choose/index_Dv4_2.html'] = ['splash','','Splash4.2' ];
        objChannels['choose/index_Dv4_3.html'] = ['splash','','Splash4.3' ];
        objChannels['choose/index_Dv4_4.html'] = ['splash','','Splash4.4' ];
        objChannels['choose/index_Dv5_1a_norm.html'] = ['splash','','Splash5.1a_norm' ];
        objChannels['choose/index_Dv5_1b_green.html'] = ['splash','','Splash5.1b_green' ];
        objChannels['choose/index_Dv5_1c_orange.html'] = ['splash','','Splash5.1_orange' ];
        objChannels['choose/index_Dv5_1d_pink.html'] = ['splash','','Splash5.1d_pink' ];
        objChannels['choose/index_Dv5_2.html'] = ['splash','','Splash5.2_orange' ];
	
	objChannels['summer69.html'] = ['splash','','Summer 69' ];
	objChannels['summer49.html'] = ['splash','','Summer 49' ];
	objChannels['summer29.html'] = ['splash','','Summer 29' ];

	// End New Darwin Testing 20080305
	objChannels['choose/index_control_1.html'] = ['Napster Sub Upsell Pages','Napster Sub Upsell Pages - Splash Page Main1' ];
       	objChannels['choose/index_control_2.html'] = ['Napster Sub Upsell Pages','Napster Sub Upsell Pages - Splash Page Main2' ];
       	objChannels['choose/index_control_3.html'] = ['Napster Sub Upsell Pages','Napster Sub Upsell Pages - Splash Page Main3' ];
	objChannels['choose/index_ti_hw.html'] = ['Napster Sub Upsell Pages','Splash -- TI-HW - 112907' ];
        objChannels['choose/index_ti_hw-links.html'] = ['Napster Sub Upsell Pages','Splash -- TI-HW - 120607' ];
	objChannels['choose/index_n_hw.html'] = ['Napster Sub Upsell Pages','Splash -- N-HW - 112907' ];
	objChannels['choose/index_n_hw-mp3.html'] = ['Napster Sub Upsell Pages','Splash -- Original Control - 121907' ];
        objChannels['choose/index_control.html'] = ['Napster Sub Upsell Pages','Splash -- Dupe Control - 121907' ];
        
        objChannels['ntg'] = ['splash','','NTG' ];
        objChannels['ntg/index_ntg1.html'] = ['splash','','NTG 1' ];
        objChannels['ntg/index_ntg2.html'] = ['splash','','NTG 2' ];
        objChannels['ntg/index_ntg3.html'] = ['splash','','NTG 3' ];
	
        objChannels['subscribe/redeem.html'] = ['Cards and Codes','Cards and Codes Redemption Instructions' ];
	objChannels['special_offer.html'] = ['splash','','Bundle' ];
	objChannels['summer_offer.html'] = ['splash','','Bundle2' ];

        objChannels['napstermobile'] = ['Devices and More','Mobile Page' ];
        objChannels['compatible_devices'] = ['Devices and More','NTG Compatible Devices' ];
        objChannels['compatible_devices/not_ntg_compatible.html'] = ['Devices and More','Napster Compatible Devices' ];
        objChannels['quickhelp.html'] = ['Help Section','Quick Help' ];
        objChannels['helprequest_form.html'] = ['Help Section','Help Request Form' ];
        objChannels['feedback_buffer.html'] = ['Help Section','Feedback Info' ];
        objChannels['feedback_form.html'] = ['Help Section','Feedback Form' ];
        objChannels['help_confirmation.html'] = ['Help Section','(SCqueryObj.op == \'Help\' ? "Help Request" : "Feedback") + "Confirmation"' ];
        objChannels['cards_promos.html'] = ['Help Section','Napster Prepaid Cards Info' ];
        objChannels['animations.html'] = ['Napster Stuff','Animations' ];
        objChannels['aim_icons.html'] = ['Napster Stuff','AIM Icons' ];
        objChannels['screensavers.html'] = ['Napster Stuff','Screen Savers' ];
        objChannels['wallpaper.html'] = ['Napster Stuff','Wallpaper' ];
        objChannels['shop.html'] = ['Napster Stuff','Shop for MP3 Players Interstitial' ];
        objChannels['about_napster.html'] = ['Company Information','About Napster' ];
        objChannels['contacts.html'] = ['Company Information','Napster Contacts' ];
        objChannels['press_releases.html'] = ['Company Information','Press Releases' ];
        objChannels['napster_on_campus.html'] = ['Company Information','Napster University' ];
        objChannels['join_network.html'] = ['Company Information','Napster Affiliate Network Info' ];
        objChannels['employment.html'] = ['Company Information','Napster Jobs' ];
        objChannels['advertise.html'] = ['Company Information','Advertising Info' ];
        objChannels['info/exchangeonlinemall.html'] = ['Company Information','Military Info' ];


    // iPod SEO
    objChannels['ipodmusicdownloads'] = ['splash','iPod',':seo1' ];
    objChannels['ipodmusicdownloads/dangers-of-illegal-music-download-sites'] = ['splash','iPod',':seo2' ];
    objChannels['ipodmusicdownloads/how-to-buy-music-for-your-ipod'] = ['splash','iPod',':seo3' ];
    objChannels['ipodmusicdownloads/basic-steps-for-downloading-music-to-your-ipod'] = ['splash','iPod',':seo4' ];
    objChannels['ipodmusicdownloads/buying-individual-songs-vs-buying-entire-album'] = ['splash','iPod',':seo5' ];

	// Partner Pages
	objChannels['bestbuy'] = ['splash','partner',':Best Buy' ];
	objChannels['bestbuy/rewardzone15.html'] = ['splash','partner',':BestBuyRZ15for15' ];
	objChannels['bestbuy/rewardzone30.html'] = ['splash','partner',':BestBuyRZ30for30' ];
	objChannels['att'] = ['splash','partner',':ATT' ];
	objChannels['aol'] = ['splash','partner',':AOL' ];
	objChannels['aolmusic'] = ['splash','partner',':AOL Music' ];
	objChannels['creative'] = ['splash','partner',':Creative' ];
	objChannels['uscellular'] = ['splash','partner',':US Cellular' ];
	objChannels['coby'] = ['splash','partner',':Coby' ];
  	objChannels['sandisk'] = ['splash','partner',':SanDisk' ];
	objChannels['motorola'] = ['splash','partner',':Motorola' ];
	objChannels['sony'] = ['splash','partner',':Sony' ];
    objChannels['sonos'] = ['splash','partner',':Sonos' ];
    objChannels['virgin'] = ['splash','partner',':Virgin' ];
    objChannels['logitech'] = ['splash','partner',':Logitech' ]; 
    objChannels['squeezebox'] = ['splash','partner',':Logitech' ]; 
	objChannels['bestbuypc'] = ['splash','partner',':Best Buy PC' ];
	objChannels['asus'] = ['splash','partner',':Asus' ];
	objChannels['visitor'] = ['instoredemo','endcap',':redirect' ];
    objChannels['7day3months'] = ['splash','partner',':7dftrz' ];

	var objSpecialEvaluators = new Object();
	objSpecialEvaluators['help_confirmation.html'] = '$SUBSECTION = eval($SUBSECTION)';
        objSpecialEvaluators['choose'] = 's.prop5_temp = "splash page:main";';
        objSpecialEvaluators[''] = '$SUBSECTION += (document.getElementById("scSplash") ? document.getElementById("scSplash").innerHTML : ""); s.prop5_temp = "splash page:main";';
	
	// Partner Pages
	objSpecialEvaluators['bestbuy'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['att'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['aol'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['aolmusic'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['creative'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['uscellular'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['coby'] = 's.prop5_temp = "splashpage:partner";';
    objSpecialEvaluators['sandisk'] = 's.prop5_temp = "splashpage:partner";';
    objSpecialEvaluators['motorola'] = 's.prop5_temp = "splashpage:partner";';
    objSpecialEvaluators['sony'] = 's.prop5_temp = "splashpage:partner";';
    objSpecialEvaluators['sonos'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['virgin'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['logitech'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['squeezebox'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['bestbuypc'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['asus'] = 's.prop5_temp = "splashpage:partner";';
	objSpecialEvaluators['visitor'] = 's.prop5_temp = "instoredemo:endcap";'
    objSpecialEvaluators['7day3months'] = 's.prop5_temp = "splashpage:partner";';

    // iPod SEO
    objSpecialEvaluators['ipodmusicdownloads'] = 's.prop5_temp = "splashpage:ipodseo";';
    objSpecialEvaluators['ipodmusicdownloads/dangers-of-illegal-music-download-sites'] = 's.prop5_temp = "splashpage:iPodSeo";';
    objSpecialEvaluators['ipodmusicdownloads/how-to-buy-music-for-your-ipod'] = 's.prop5_temp = "splashpage:iPodSeo";';
    objSpecialEvaluators['ipodmusicdownloads/basic-steps-for-downloading-music-to-your-ipod'] = 's.prop5_temp = "splashpage:iPodSeo";';
    objSpecialEvaluators['ipodmusicdownloads/buying-individual-songs-vs-buying-entire-album'] = 's.prop5_temp = "splashpage:iPodSeo";';
                        
	
	function defineChannel(navPath){
		var XS_ROOT_PATH = '/';
		var strThisPath = (typeof(navPath) == "undefined")?(location.pathname != "/" ? location.pathname : ("/" + location.hash.substring(1))):("/" + navPath);
		// redefine this every time - needs to be a global for access by other functions
		ChannelBase = 'web';
		// lookup table for backwards channel compatibility
		var baseTrans = new Object();
		baseTrans['web'] = "Company Pages";
		// end
		var strThisFile = '';
		var inQuery = '';
		var strThisFile = strThisPath.replace( XS_ROOT_PATH, '' );
		if(strThisFile.indexOf("?") > -1) {
			// we've got a hash URL, split the query off
			var tmpSplit = strThisFile.split("?");
			strThisFile = tmpSplit[0];
			inQuery = tmpSplit[1];
		}
		else {
			inQuery = location.search.substring(1);
		}

		// strip quotes
		var stripQuotes = /"/g;
		inQuery = inQuery.replace(stripQuotes,'');
		var stripEnc = /%22/g;
		inQuery = inQuery.replace(stripEnc,'');
		SCqueryObj = new Arguments(inQuery);
		// exception code to change channel to registration if we're in any reg flow
		//chOverride(strThisFile);
		var strSubSection = strThisFile;
		if( strThisFile.indexOf( 'index.html' ) > -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			strSubSection = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
		}
		else if( strThisFile.indexOf('XML') == strThisFile.length - 3) {
			// leave this alone, these are scripts
		}
		else if( strThisFile.indexOf( '.html' ) == -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			strSubSection = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
		}

		if( objChannels[strThisFile] ){
			if( typeof objChannels[strThisFile] == 'object' ){
				if (objChannels[strThisFile].length > 2) {
					ChannelBase	+= ":" + objChannels[strThisFile][0];
				}
				else {
					// retranslate to "Web App/Client App" til we change everything
					ChannelBase = baseTrans[ChannelBase];
				}
			}
			return ChannelBase;
		}

		else if( !objChannels[strThisFile] && strThisFile.indexOf( '.html' ) > -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			if( objChannels[strThisFile] ){
				if( typeof objChannels[strThisFile] == 'object' ){
					if (objChannels[strThisFile].length > 2) {
						ChannelBase	+= ":" + objChannels[strThisFile][0];
					}
					else {
						// retranslate to "Web App/Client App" til we change everything
						ChannelBase = baseTrans[ChannelBase];
					}
				}
				return ChannelBase;
			}
			else
				return 'Napster Web';
		}
		else {
			return 'Napster Web';
			}
	}

	var $SUBSECTION = '';
	var $CHANNEL = 'Company Pages';
	var strSL = $C( 'SL' );
	var $SUBLEVEL = IsNewUser() + ' ' + $SCData( 'utype' );
	var $COUNTRYCODE = $SCData( 'ter' );

	var $FILEPATH = function(){
		var strPath = location.href;
		if( strPath.indexOf( '?' ) > -1 )
			return strPath.substring( 0, strPath.indexOf( '?' ) );
		else
			return strPath
	};

	function $SCE( strID ){
		try{
			s.events = "Play";
			s.eVar1 = strID;
			s.gs( "napsterweb" );
		}
		catch(e){}
	}
	
	function $SCEG( strEvent, strEVars ){
		s.eVar6 = $SUBLEVEL;
		//s.eVar5 = $COUNTRYCODE;
		try{
			s.events = EventMap[strEvent];
			eval( strEVars );
			//s.gs( "napsterweb" );
			if( $SCData( 'debug' ) ){
				DebugSiteCat( strEvent );
			}
		}
		catch(e){}
	}
	
	var objDebugWindow = null;

	function OpenDebugWindow(){
		objDebugWindow = open( '', 'DebugWindow', 'width=500,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0' );
	}
	if( $SCData( 'debug' ) ){
		if( objDebugWindow == null || ( objDebugWindow.closed || !objDebugWindow.closed ) ){
			OpenDebugWindow();
			if( objDebugWindow.window.blnLoaded == null ){
				objDebugWindow.document.writeln( '<style type="text/css">' );
				objDebugWindow.document.writeln( 'BODY{' );
				objDebugWindow.document.writeln( 'margin-top : 0px ;' );
				objDebugWindow.document.writeln( 'font-family : Helvetica, Arial, sans-serif ;' );
				objDebugWindow.document.writeln( 'font-size : 11px ;' );
				objDebugWindow.document.writeln( 'color : #000000 ;' );
				objDebugWindow.document.writeln( '}' );
				objDebugWindow.document.writeln( '</style>' );
				objDebugWindow.document.writeln( '<h3>Site Cat. Debugger</h3><br />' );
				objDebugWindow.document.writeln( '<div id="Debug"></div>' );
				objDebugWindow.document.writeln( '<script language="JavaScript1.2" type="text/javascript">' );
				objDebugWindow.document.writeln( ' var blnLoaded = false;' );
				objDebugWindow.document.writeln( 'function DisplayValue( strLabel, strValue ){' );
				objDebugWindow.document.writeln( "var objDestination = document.getElementById( 'Debug' );" );
				objDebugWindow.document.writeln( "var objDiv = document.createElement( 'DIV' );" );
				objDebugWindow.document.writeln( 'if( strValue != null )' );
				objDebugWindow.document.writeln( "objDiv.innerHTML = strLabel + ' = ' + strValue;" );
				objDebugWindow.document.writeln( 'else' );
				objDebugWindow.document.writeln( "objDiv.innerHTML = '<br><br><hr><br><br>';" );
				objDebugWindow.document.writeln( 'objDestination.appendChild( objDiv );' );
				objDebugWindow.document.writeln( '}' );
				objDebugWindow.document.writeln( 'var blnLoaded = true;' );
				objDebugWindow.document.writeln( '</scr' + 'ipt>' );
			}
		}
	}

	function DebugSiteCat( strEvent ){
		if( objDebugWindow.window.blnLoaded != null && objDebugWindow.window.blnLoaded ){
			if( strEvent == null || strEvent == '' )
				objDebugWindow.window.DisplayValue( 'Event type', 'Page Load' );
			else
			objDebugWindow.window.DisplayValue( 'Event type', strEvent );
			objDebugWindow.window.DisplayValue( 'Page URL', location.href + '<br /><br />' );
			objDebugWindow.window.DisplayValue( 's.events', s.events );
			objDebugWindow.DisplayValue( 's.pageName', s.pageName );
			objDebugWindow.DisplayValue( 's.channel', s.channel );
			for( n = 1; n < 51; n++ ){
				try{
					var strProp = eval( 's.prop' + n );
					if( strProp != '' && strProp != 'undefined' )
						objDebugWindow.DisplayValue( 's.prop' + n, strProp );
				}
				catch(e){}
			}
			
			for( n = 1; n < 51; n++ ){
				try{
					var strProp = eval( 's.eVar' + n );
					if( strProp != '' && strProp != 'undefined' )
						objDebugWindow.DisplayValue( 's.eVar' + n, strProp );
				}
				catch(e){}
			}
			objDebugWindow.DisplayValue( 'space', null );
		}
		else
			setTimeout( DebugSiteCat, 1000 );
	}

	function $SUBSEG(navPath){
		var XS_ROOT_PATH = '/';
		var strThisPath = (typeof(navPath) == "undefined")?(location.pathname != "/" ? location.pathname : ("/" + location.hash.substring(1))):("/" + navPath);
		var strThisFile = '';
		var inQuery = '';
		var strThisFile = strThisPath.replace( XS_ROOT_PATH, '' );
		if(strThisFile.indexOf("?") > -1) {
			// we've got a hash URL, split the query off
			var tmpSplit = strThisFile.split("?");
			strThisFile = tmpSplit[0];
			inQuery = tmpSplit[1];
		}
		else {
			inQuery = location.search.substring(1);
		}

		// strip quotes
		var stripQuotes = /"/g;
		inQuery = inQuery.replace(stripQuotes,'');
		var stripEnc = /%22/g;
		inQuery = inQuery.replace(stripEnc,'');
		SCqueryObj = new Arguments(inQuery);
		// exception code to change channel to registration if we're in any reg flow
		chOverride(strThisFile);
		var strSubSection = strThisFile;
		if( strThisFile.indexOf( 'index.html' ) > -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			strSubSection = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
		}
		else if( strThisFile.indexOf('XML') == strThisFile.length - 3) {
			// leave this alone, these are scripts
		}
		else if( strThisFile.indexOf( '.html' ) == -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			strSubSection = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
		}

		if( objChannels[strThisFile] ){
			if( typeof objChannels[strThisFile] == 'object' ){
				if(objChannels[strThisFile].length > 2) {
					var tmpSubSeg = $CHANNEL + ":" + objChannels[strThisFile][1];
					$SUBSECTION = tmpSubSeg + objChannels[strThisFile][2]; 
					return tmpSubSeg;
				}
				else {
					$SUBSECTION = objChannels[strThisFile][1];
					return objChannels[strThisFile][0];
				}
			}
			else 
				return objChannels[strThisFile];
		}

		else if( !objChannels[strThisFile] && strThisFile.indexOf( '.html' ) > -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			if( objChannels[strThisFile] ){
				if( typeof objChannels[strThisFile] == 'object' ){
					if(objChannels[strThisFile].length > 2) {
						var tmpSubSeg = $CHANNEL + ":" + objChannels[strThisFile][1];
						$SUBSECTION = tmpSubSeg + objChannels[strThisFile][2]; 
						return tmpSubSeg;
					}
					else {
						$SUBSECTION = objChannels[strThisFile][1];
						return objChannels[strThisFile][0];
					}
				}
				else {
					return objChannels[strThisFile];
				}
			}
			else
				return 'Napster Web';
		}
		else {
			return 'Napster Web';
			}
	}


	function RunEvaluator(navPath){
		var XS_ROOT_PATH = '/';
		var strThisPath = (typeof(navPath) == "undefined")?(location.pathname != "/" ? location.pathname : ("/" + location.hash.substring(1))):("/" + navPath);
		var strThisFile = '';

		var strThisFile = strThisPath.replace( XS_ROOT_PATH, '' );

		if(strThisFile.indexOf("?") > -1) {
			// we've got a hash URL, split the query off
			var tmpSplit = strThisFile.split("?");
			strThisFile = tmpSplit[0];
		}
		if( strThisFile.indexOf( 'index.html' ) > -1 )
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
		else if( strThisFile.indexOf('XML') == strThisFile.length - 3) {
			// leave this alone, these are scripts
		}
		else if( strThisFile.indexOf( '.html' ) == -1 )
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
		if( typeof( objSpecialEvaluators[strThisFile] ) != 'undefined' ){
			eval( objSpecialEvaluators[strThisFile] );
		}
		else if( typeof( objSpecialEvaluators[strThisFile] ) == 'undefined' && strThisFile.indexOf( '.html' ) > -1 ){
			strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '/' ) );
			if( typeof( objSpecialEvaluators[strThisFile] ) != 'undefined' )
				eval( objSpecialEvaluators[strThisFile] );
		}
	}

	var SCqueryObj = '';

	function runSCPageLoad(navPath) {

		// clear out the old query
		SCqueryObj = '';
		s.prop2_temp = '';
		s.prop5_temp = '';
		// set up the basic page variables
		$CHANNEL = defineChannel(navPath);
		s.channel = $CHANNEL;
		// set up any special tags for this page
		s.prop1 = $SUBSEG(navPath);
		RunEvaluator(navPath);
		s.pageName = ( ( $SUBSECTION != '' )? $SUBSECTION : '' );
		s.prop2 = ( typeof( s.prop2_temp ) != 'undefined' )? s.prop2_temp : "";
		s.prop3 = $SUBLEVEL;
		
		s.server = "";
		s.pageType = "";
		s.prop4 = typeof(navPath) != 'undefined' ? navPath : self.location.href;
		s.prop5 = ( typeof( s.prop5_temp ) != 'undefined' )? s.prop5_temp : "";
		s.prop6 = "";
		s.prop7 = "";
		s.prop8 = "";
		s.prop9 = "";
		s.prop10 = "";
		s.prop11 = (typeof(SCqueryObj.affiliate_id) != 'undefined')?SCqueryObj.affiliate_id:"7";
		/* E-commerce Variables */
		s.campaign = "";
		s.state = "";
		s.zip = "";
		s.events = "";
		s.products = "";
		s.purchaseID = "";
		s.eVar1 = "";
		s.eVar2 = "";
		s.eVar3 = "";
		s.eVar4 = "";
		s.eVar5 = "";
		s.eVar6 = "";
		s.eVar7 = "";
		s.eVar8 = "";
		s.eVar9 = "";
		s.eVar10 = "";
		s.eVar14 = (typeof(SCqueryObj.affiliate_id) != 'undefined')?SCqueryObj.affiliate_id:"7";

		$SCData( 'ch', $CHANNEL );
		// run the site catalyst function to update the vars
		void(s.t());
		//open the debugger if we need to	
		if( $SCData( 'debug' ) ){
			DebugSiteCat();
		}
	}
