var sonyBMG = new Object();						//for storing our result variables
var splits = new Object();						//for storing primary site splits
var alias = new Object();						//for storing alternate site splits

//reporting variables specific to sites that use this .js file:
sonyBMG.country = "US";
sonyBMG.labelGroup = "Sony";
sonyBMG.label = "Columbia";

// definitions of all sites and their aliases
// leave "www." off of the beginning of the definitions
// include a trailing "/"
splits["forums1.columbiarecords.com/webx/"] = "bowwow";
splits["forums1.columbiarecords.com/columbia/bowwow/"] = "bowwow";
alias["forums1.columbiarecords.com/Columbia/BowWow/"] = "bowwow";
splits["forums1.columbiarecords.com/columbia/nas/"] = "nas";
alias["forums1.columbiarecords.com/Columbia/Nas/"] = "nas";
splits["forums1.columbiarecords.com/columbia/johnlegend/"] = "johnlegend";
alias["forums1.columbiarecords.com/Columbia/JohnLegend/"] = "johnlegend";
splits["forums1.columbiarecords.com/columbia/switchfoot/"] = "switchfoot";
alias["forums1.columbiarecords.com/Columbia/Switchfoot/"] = "switchfoot";
splits["annanalick.com/"] = "annanalick";
splits["bobdylan.com/"] = "bobdylan";
splits["brandicarlile.com/"] = "brandicarlile";
splits["brucespringsteen.net/"] = "brucespringsteen";
alias["sonymusic.com/artists/BruceSpringsteen/"] = "brucespringsteen";
splits["crossfadeonline.com/"] = "crossfade";
splits["fiveforfighting.com/"] = "fiveforfighting"; 
alias["sonymusic.com/artists/FiveForFighting/"] = "fiveforfighting";
splits["jonasbrothers.com/"] = "jonasbrothers";
splits["peteyorn.com/"] = "peteyorn";
splits["systemofadown.com/"] = "systemofadown";
splits["amerie.net/"] = "amerie";
splits["barbrastreisand.com/"] = "barbrastreisand";
alias["barbra-streisand.com/"] = "barbrastreisand";
splits["beyonceonline.com/"] = "beyonce";
alias["beyonceknowles.net/"] = "beyonce";
splits["billyjoel.com/"] = "billyjoel";
alias["sonymusic.com/artists/BillyJoel/"] = "billyjoel";
splits["bowwowwanted.com/"] = "bowwow";
alias["bowwow87.com/"] = "bowwow";
alias["lilbowwow.com/"] = "bowwow";
alias["bowwowunleashed.com/"] = "bowwow";
splits["chrisbotti.com/"] = "chrisbotti";
splits["coheedandcambria.com/"] = "coheed";
splits["columbiarecords.com/"] = "columbiarecords";
alias["colrec.com/"] = "columbiarecords";
splits["consmusic.com/"] = "consequence";
splits["destinyschild.com/"] = "destinyschild";
splits["dmx-official.com/"] = "dmx";
splits["frankiejonline.com/"] = "frankiej";
splits["iamnas.com/"] = "nas";
alias["godsson.net/"] = "nas";
alias["streetsdisciple.com/"] = "nas";
alias["stillmatic.com/"] = "nas";
alias["nastradamus.com/"] = "nas";
splits["jaggededge.net/"] = "jaggededge";
splits["johnlegend.com/"] = "johnlegend";
splits["kellyrowlandonline.com/"] = "kellyrowland";
alias["kellyrowland.com/"] = "kellyrowland";
splits["marcanthonyonline.com/"] = "marcanthony";
alias["marcanthony.net/"] = "marcanthony";
splits["mary-mary.com/"] = "marymary";
splits["michellewilliamsonline.com/"] = "michellewilliams";
splits["musze.com/"] = "maxwell";
alias["maxwellnow.com/"] = "maxwell";
splits["neildiamond.com/"] = "neildiamond"; 
splits["neildiamond.net/"] = "neildiamond";
splits["oasisus.com/"] = "oasis";
splits["pattismith.net/"] = "pattismith";
splits["projectpat.net/"] = "projectpat";
splits["thisisryanshaw.com/"] = "ryanshaw";
splits["rickymartin.com/"] = "rickymartin";
splits["switchfoot.com/"] = "switchfoot"; 
splits["tiffanyevans.com/"] = "tiffanyevans";
splits["tonybennett.net/"] = "tonybennett";
splits["trainline.com/"] = "train"; 
splits["2lyfe.com/"] = "lyfe";
alias["lyfeonline.com/"] = "lyfe";
splits["three6-mafia.com/"] = "three6mafia";
alias["daunbreakables.com/"] = "three6mafia";
alias["sonymusic.com/artists/Three6Mafia/"] = "three6mafia";
splits["joshuaradin.com/"] = "joshuaradin";
splits["onethousandpictures.net/"] = "onethousandpictures";
splits["hconnickjr.com/"] = "harryconnickjr";
alias["harryconnick.com/"] = "harryconnickjr";
splits["bettemidler.com/"] = "bettemidler";
splits["julioiglesias.com/"] = "julioiglesias";
splits["primalscreamus.com/"] = "primalscream";
 
var urlPattern = /(www\.)?([\w._-]+)(\/[^?]*)\??\S*/;		// our regex pattern for splitting urls
var userURL = window.location.hostname + window.location.pathname;	// the current page url
var urlMatch = urlPattern.exec(userURL);				// apply the regex pattern to the userURL
if (urlMatch != null){						// if our regex is correct this will never be null for valid urls
	var baseUserURL = (urlMatch[urlMatch.length-2] + urlMatch[urlMatch.length-1]);	//extract the portion of the url we match on
	for (var splitsURL in splits){			// loop through splits defs to find the matching primary definition
		if (baseUserURL.indexOf(splitsURL) != -1){		// does a primary def exist as part of this url?
			sonyBMG.sp = splits[splitsURL];	// if so, set sp value
                        sonyBMG.dcssip = 'www.' + urlMatch[urlMatch.length-2];
			break;				// no need to loop more after we have a match
		}
	}// end for loop1
	if (sonyBMG.sp == null){				// we didnt find a primary match, so try for an alias		
		for (var aliasURL in alias){			// loop through splits defs to find the matching primary definition
			if (baseUserURL.indexOf(aliasURL) != -1){		// does a primary def exist as part of this url?
				sonyBMG.sp = alias[aliasURL];	// if so, set sp value	
				// because it is an alias match, we need to make the url look as if it it was the primary
				// start by finding the matching primary definition
				for (var splitsURL in splits){			// loop through primary split definitions
					if(splits[splitsURL] == sonyBMG.sp) {	// does it match a primary (it should!)?				
						// we found a matching primary def, so now normalize the url
						var splitMatch = urlPattern.exec(splitsURL);	// parse the primary definition
						if (splitMatch != null){	// if our regex is correct this will never be null for valid urls
							sonyBMG.dcssip = 'www.' + splitMatch[splitMatch.length-2];	// normalize the host name
							sonyBMG.dcsuri = splitMatch[splitMatch.length-1] + baseUserURL.substr(aliasURL.length);
							break;
						}//end if
					}//end if
				}//end inner for loop 2b
			}
		}// end for loop2a
	} 
	if (sonyBMG.sp == null){				// no primary or alias
		sonyBMG.sp = "unknown";
	}//end if


} // end if
<!-- START OF SDC Cookie Code -->
<!-- Copyright (c) 1996-2005 WebTrends Inc.  All rights reserved. -->
<!-- $DateTime: 2006/03/08 11:31:03 $ -->
var gDomain="statse.webtrendslive.com";
var gDcsId="dcsn7lp6u00000oejv8pguilk_2n5v";				// specific to Columbia!
var gFpc="WT_FPC";
var gConvert=true;
if ((typeof(gConvert)!="undefined")&&gConvert&&(document.cookie.indexOf(gFpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
	document.write("<SCR"+"IPT TYPE='text/javascript' SRC='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+"/"+gDcsId+"/wtid.js"+"'><\/SCR"+"IPT>");
}
