	//document.writeln( '<embed type="application/x-napsterlinks" name="objFFNapsterPlugin" width="1" height="1" hidden="true">' );		

	document.write( '<script src="http://www.napster.com/js/ads.js" type="text/javascript"><\/script>' );
	var XS_ROOT_PATH = '/';
	var XS_IMG_PATH = XS_ROOT_PATH + 'images/';
	var XS_JS_PATH = XS_ROOT_PATH + 'js/';
	var XS_CSS_PATH = XS_ROOT_PATH + 'css/';

	var strThisPath = location.pathname;
	var strThisFile = '';
	
	var strThisFile = strThisPath.replace( XS_ROOT_PATH, '' );
	if( strThisFile.indexOf( '.' ) > -1 )
		strThisFile = strThisFile.substring( 0, strThisFile.lastIndexOf( '.' ) );
	else
		strThisFile += 'index';
		
	var FWSupportedCountries = new Object();
	
	FWSupportedCountries['US'] = true;
	FWSupportedCountries['GB'] = false;
	FWSupportedCountries['CA'] = false;
	FWSupportedCountries['DE'] = false;
	
	var NapSupportedCountries = new Object();
	
	NapSupportedCountries['GB'] = new CountryData( 'the UK', "http://www.napster.co.uk" );
	NapSupportedCountries['CA'] = new CountryData( 'Canada', "http://www.napster.ca" );
	NapSupportedCountries['DE'] = new CountryData( 'Germany', "http://www.napster.de" );
	
	function CountryData(){
		this.name = arguments[0];
		this.url = arguments[1];
	}
		
	/*
		Prototype Section Begins
	*/
		
	String.prototype.UnEscapeString = function(){
		var strValue = this;
		aryEscapeCodes = new Array( '%3A,:', '%2F,/', '%2E,.', '%5F,_', '%26,&', '%3D,=', '%2B,+' );
		for( intCodes = 0; intCodes < aryEscapeCodes.length; intCodes++ ){
			aryTemp = aryEscapeCodes[intCodes].split( ',' );
			objRegExp = new RegExp( '\\' + aryTemp[0], 'gi' );
			strValue = strValue.replace( objRegExp, aryTemp[1] );
		}
		return strValue;
	};
	
	String.prototype.strip = function( strStripWhat ){
		var strToModify = this;
		switch( strStripWhat.toLowerCase() ){
			case 'punc':
			case 'punctuation':
				strToModify = strToModify.replace( /[\\+]+/gi, ' ' );
				var RegExpPattern = new RegExp( '[\\s\\w\\d]+', 'gi' );
				var objMatch = strToModify.match( RegExpPattern );
				strToModify = objMatch.toString( '' ).replace( /[\\,]+/g, '' )
				return strToModify;
				break;
			default:
				return strToModify;
		}
	};
	
	String.prototype.trim = function(){
		strToModify = this;
		var RegExpPattern = new RegExp( '^[\\s]+', 'gi' );
		strToModify = strToModify.replace( RegExpPattern, '' );
		var RegExpPattern = new RegExp( '[\\s]+$', 'gi' );
		strToModify = strToModify.replace( RegExpPattern, '' );
		return strToModify;
	};
	
	String.prototype.escapeURL = function(){
		var strValue = this;
		aryEscapeCodes = new Array( ':,%3A', '/,%2F', '.,%2E', '_,%5F', '&,%26', '=,%3D', '©,%A9', 'Ã,%C3' );
		for( intCodes = 0; intCodes < aryEscapeCodes.length; intCodes++ ){
			aryTemp = aryEscapeCodes[intCodes].split( ',' );
			objRegExp = new RegExp( '[\\' + aryTemp[0] + ']', 'gi' );
			strValue = strValue.replace( objRegExp, aryTemp[1] );
		}
		return strValue;
	};
	
	String.prototype.escapeString = function(){
		var strValue = this;
		aryEscapeCodes = new Array( '&,&amp;', '",&quot;', '<,&lt;', '>,&gt;' );
		for( intCodes = 0; intCodes < aryEscapeCodes.length; intCodes++ ){
			aryTemp = aryEscapeCodes[intCodes].split( ',' );
			objRegExp = new RegExp( '[\\' + aryTemp[0] + ']', 'gi' );
			strValue = strValue.replace( objRegExp, aryTemp[1] );
		}
		return strValue;
	};
	
	String.prototype.QueryFilter = function(){
		var strValue = this;
		aryFilterValues = new Array( '"', "'", "&", "%22" );
		for( intCodes = 0; intCodes < aryFilterValues.length; intCodes++ ){
			objRegExp = new RegExp( aryFilterValues[intCodes], 'gi' );
			strValue = strValue.replace( objRegExp, '' );
		}
		return strValue;
	};
	
	/*
		Prototype Section Ends
	*/

	function GetVersion( strBrowser, objData ){
		var strReturn = null;
		for( var i = 0; i < objData.length; i++ ){
			var strData = objData[i].split( "/" );
			if( strData[0] == strBrowser )
				strReturn = strData[1];
		}
		return strReturn;
	}
	
	function Browser(){
		var objAgent = navigator.userAgent.toLowerCase();

		var objBrowserRegExp = new RegExp( "[\\\w\\\d]+\\\/[\\\.\\\w\\\d]+", "g" );
		var objOSRegExp = new RegExp( "\\\([\\\.\\\;\\\s\\\w\\\d]*", "gi" );

		this.agent = navigator.userAgent;
		this.major  = parseInt( navigator.appVersion );
		this.minor  = parseFloat( navigator.appVersion );

		if( objAgent.indexOf( 'safari' ) != -1 )
			this.browser = 'safari';
		else if( objAgent.indexOf( 'firefox' ) != -1 )
			this.browser = 'firefox';
		else if( objAgent.indexOf( 'opera' ) != -1 )
			this.browser = 'opera';
		else if( objAgent.indexOf( 'msie' ) != -1 )
			this.browser = 'msie';
		else if( objAgent.indexOf( 'mozilla' ) != -1 )
			this.browser = 'mozilla';
		
		objData = objAgent.match( objOSRegExp );
		
		this.isNapCompatible =  ( objAgent.indexOf( "windows nt 5" ) > -1 ) || ( objAgent.indexOf( "Windows NT 6" ) > -1 ) || ( objAgent.indexOf( "Win 9x 4.90" ) > -1 );
		
		if( objData != null ){
			var objDataTemp = objData[0].split( '; ' );
			this.os = objDataTemp[0].replace( "(", "" );
			this.os_ver = objDataTemp[2];
		}
		else{
			this.os = 'unknown';
			this.os_ver = 'unknown';
		}
		
		if( this.browser == 'msie' ){
			var objTemp = objDataTemp[1].split( ' ' );
			this.version = objTemp[1];
		}
		else
			this.version = GetVersion( this.browser, objAgent.match( objBrowserRegExp ) );
	}
	
	var $B = new Browser();
	
	var $T = function(){
		if( arguments[0] != null ){
			document.title = arguments[0];
		}
		else
			return document.title;
	}

	/*	
	function $OC( strOpCode, strLID, strDefaultAction ){
		var objDate = new Date();
		var intTime = objDate.getTime();
		var strExp = ( Math.round( intTime / 1000 ) + 60 ) + ( objDate.getTimezoneOffset() * 60 );
		//if( $B.browser == 'firefox' )
		//	var objPlugin = document.embeds['objFFNapsterPlugin'];
		//else
			var objPlugin = $( 'objNapsterPlugin' );
		var blnSuccess = false;
        if (strOpCode.indexOf('op=') > -1)
        	strOpCode = strOpCode.substring( 3 );

		strOpCode = strOpCode.UnEscapeString();
		try{
			objPlugin.NCOMAuth2( strLID.UnEscapeString(), strExp, 'op=' + strOpCode );
			blnSuccess = true;
		}
		catch(e){
			try{
				objPlugin.DoOpcode( strOpCode );
				blnSuccess = true;
			}
			catch(e){
				try{
					if( strDefaultAction != null ){
						eval( strDefaultAction );
						blnSuccess = true;
					}
				}
				catch(e){
					blnSuccess = false;
				}
			}
		}
		return blnSuccess;
	} */
	
	function AddEvent( objElement, strEvent, funcAction ){
		try{
			objElement.attachEvent( 'on' + strEvent, function(){ eval( funcAction ) } );
		}
		catch(e){
			try{
				objElement.addEventListener( strEvent, function(){ eval( funcAction ) } , false );
			}
			catch(e){}
		}
	}
	
	function IsValidInput( objElementPassed ){
		var objRegExp = new RegExp( '[\\\<\\\%3ca]+script', 'gi' );
		var objNewLineRegExp = new RegExp( '[\\\n\\\r]+', 'gi' );
		var objCleanupRegExp = new RegExp( "[^\\\w^\\\d^\\\s^\\\']*", "g" );
		var blnSubmitForm = true;
		if( typeof objElementPassed == 'object' ){
			for( var i = 0; i < objElementPassed.elements.length; i++ ){
				if( objElementPassed.elements[i].type == 'text' || objElementPassed.elements[i].type == 'textarea' ){
					var strToTest = objElementPassed.elements[i].value.replace( objNewLineRegExp, '' );
					strToTest = strToTest.replace( objCleanupRegExp, '' );
					objElementPassed.elements[i].value = strToTest.QueryFilter();
				}
			}
			if( blnSubmitForm ){
				objElementPassed.submit();
				return true;
			}
		}
		else if( typeof objElementPassed == 'string' ){
			var strToTest = objElementPassed.replace( objNewLineRegExp, '' );
			strToTest = strToTest.replace( objNewLineRegExp, '' );
			strToTest = strToTest.replace( objCleanupRegExp, '' );
			return strToTest.QueryFilter();
		}
	}

	function GetBreadCrumb(){
		if( strThisFile != 'index' )
			return '<a href="/index.html" class="BreadCrumbLink">Home</a> > ' + $T();
		else
			return '';
	}
