function getCookie(name) {
			var dc = document.cookie;
			var prefix = name + "=";
			var begin = dc.indexOf("; " + prefix);
			if (begin == -1) {
				begin = dc.indexOf(prefix);
				if (begin != 0) return null;
			} else
				begin += 2;
			
			var end = document.cookie.indexOf(";", begin);
			if (end == -1)
				end = dc.length;
			
			return unescape(dc.substring(begin + prefix.length, end));
		}

		// set user information for ads and web side story
		// set defaults
		fname 			= "";
		lname 			= "";
		kpa 			= 0;
		username		= "";
		subs			= "";
		email			= "";
		popgroups		= "1,-2,-3";
		userinfo		= "";
		userref			= "";
		
		// are there any cookies here called userFirstName
			if (getCookie("USERFIRSTNAME") != null)	fname		= getCookie("USERFIRSTNAME");
			if (getCookie("USERLASTNAME") != null)	lname 		= getCookie("USERLASTNAME");
			if (getCookie("SUBSCRIPTIONS") != null)	subs		= getCookie("SUBSCRIPTIONS");
			if (getCookie("USEREMAIL") != null)		email		= getCookie("USEREMAIL");			
			if (getCookie("POPGROUPS") != null) 	popgroups	= getCookie("POPGROUPS");			
			if (getCookie("USERREF") != null) 		userref		= getCookie("USERREF");			
						
			username	= fname + ' ' + lname;
			if (getCookie("USERFIRSTNAME") != null)	 kpa 		= 1;
			userinfo	= username + '|' + email;
			
		// set as strings
		fname 			= String(fname);
		lname 			= String(lname) ;
		username		= String(username);
		subs			= String(subs);
		email			= String(email);
		popgroups		= String(popgroups);
		userinfo		= String(userinfo);
		userref			= String(userref);


	<!--WEBSIDESTORY CODE HBX1.0 (Universal)-->
	<!--COPYRIGHT 1997-2005 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE INFO:http://websidestory.com/privacy-->

	var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
	var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="wss.hbpl.co.uk";
	
	//BEGIN EDITABLE SECTION
	//CONFIGURATION VARIABLES	
	hbx.acct="DM55081927RM84EN3;DM560626HKWV84EN3";//ACCOUNT NUMBER(S)
	
	//hbx.pn="BRSHOWCASE+AGENCY+ABOUT<%=getAgencyNameForStats%>";//PAGE NAME(S)
	hbx.pn = pnForExternalScript;
	//alert("1"+pageNameForExternalScript);
	//alert("2"+hbx.pn);
	
	hbx.mlc = mlcNameForExternalScript;//MULTI-LEVEL CONTENT CATEGORY
	hbx.pndef="index.cfm";//DEFAULT PAGE NAME
	hbx.ctdef="full";//DEFAULT CONTENT CATEGORY
	
	//OPTIONAL PAGE VARIABLES
	//ACTION SETTINGS
	hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
	hbx.lt="auto";//LINK TRACKING
	hbx.dlf="n";//DOWNLOAD FILTER
	hbx.dft="n";//DOWNLOAD FILE NAMING
	hbx.elf="n";//EXIT LINK FILTER
	
	//SEGMENTS AND FUNNELS
	hbx.seg=popgroups;//VISITOR SEGMENTATION
	hbx.fnl="";//FUNNELS
	
	//CAMPAIGNS
	hbx.cmp="";//CAMPAIGN ID
	hbx.cmpn="";//CAMPAIGN ID IN QUERY
	hbx.dcmp="";//DYNAMIC CAMPAIGN ID
	hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
	hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
	hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
	hbx.hra="";//RESPONSE ATTRIBUTE
	hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
	hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
	hbx.hlt="";//LEAD TRACKING
	hbx.hla="";//LEAD ATTRIBUTE
	hbx.gp="";//CAMPAIGN GOAL
	hbx.gpn="";//CAMPAIGN GOAL IN QUERY
	hbx.hcn="";//CONVERSION ATTRIBUTE
	hbx.hcv="";//CONVERSION VALUE
	hbx.cp="null";//LEGACY CAMPAIGN
	hbx.cpd="";//CAMPAIGN DOMAIN
	
	//CUSTOM VARIABLES
	hbx.ci=userref;//CUSTOMER ID
	hbx.hc1="";//CUSTOM 1
	hbx.hc2="";//CUSTOM 2
	hbx.hc3="";//CUSTOM 3
	hbx.hc4="";//CUSTOM 4
	
	
	// CUSTOM VARIABLES EXTENDED
	cv = _hbEvent("cv");
	cv.c5="";//CUSTOM 5
	cv.c6="";//CUSTOM 6
	cv.c7="";//CUSTOM 7
	cv.c8="";//CUSTOM 8
	cv.c9="";//CUSTOM 9
	cv.c10="";//CUSTOM 10
	cv.c11="";//CUSTOM 11
	cv.c12="";//CUSTOM 12
	cv.c13="";//CUSTOM 13
	cv.c14=userinfo;//CUSTOM 14
	
	
	hbx.hrf="";//CUSTOM REFERRER
	hbx.pec="";//ERROR CODES
	
	//INSERT CUSTOM EVENTS
	

	//END EDITABLE SECTION
	//-->
