<!-- // HIT BOX PAGE CODE
// MAGAZINE PAGE CODE - PUBLICATIONS (actual account)

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="ehg-aarp.hitbox.com";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES

// ACCOUNT VAR SETUP - CUSTOM
/////////////////////////////////////////
// WWW.AARP.ORG = 		DM54060289AC07EN3
// GLOBAL ACCT = 		DM5406110ANC07EN3
// PUBLICATIONS = 		DM540826BBWD07EN3
// COMMUNITY = 			DM540611J1ZC07EN3
// RESEARCH MAIN =      DM540826G8AZ07EN3
// RESEARCH INTERNAL =  DM540826KNSE07EN3
// STATEPAGES = 		DM5408266HCF07EN3
/////////////////////////////////////////

//////////////////////////////////////////////////
//////////////////////////////////////////////////
// WSO CUSTOMIZED HBX PAGE NAMING
// Customizes the page naming in HBX
// Copyright 2004, AARP Services Inc. 
// Developer: Chris McDaniel

// VARIABLE SET UP
// Path variable (part of URL) - this is passed to main function
var urlPath = window.location.pathname;
// Hostname (part of URL) this is tacked on at the end
var host = window.location.host; 
var slashChar = "/"; 
// Default Hostname - in case for some odd reason there is not one.
var defaultHost = "www.aarpmagazine.org";


/////////////////////////////////////
// ACCOUNT VARIABLE SETTING & TESTING

// MAGAZINE TEST
// If it has hostname - www.aarpmagazine.org
// OR if document.URL www.uclick.com OR http://www.uclick.com/client/mma/ 
if ((host.match("www.aarpmagazine.org")) || (document.URL.match("www.uclick.com/client/mma/")) || (host.match("assets.aarp.org")) ) {
	// Set accounts to >> MAGAZINE, PUBLICATIONS & GLOBAL
	hbx.acct="DM54111907NS07EN3;DM540826BBWD07EN3;DM5406110ANC07EN3"; //ACCOUNT NUBMER(S)
	}
// SEGUNDA TEST
// If hostname contains - segundajuventud
else if (host.match("segundajuventud.org")) {
	// Set accounts to >> SEGUNDA, PUBLICATIONS & GLOBAL
	hbx.acct="DM54111920DW07EN3;DM540826BBWD07EN3;DM5406110ANC07EN3"; //ACCOUNT NUBMER(S)
	}	
// VOICES TEST
// If hostname contains - www.voicesofcivilrights
else if (host.match("www.voicesofcivilrights")) {
	// Set accounts to >> VOICES, PUBLICATIONS & GLOBAL
	hbx.acct="DM541119BOVS07EN3;DM540826BBWD07EN3;DM5406110ANC07EN3"; //ACCOUNT NUBMER(S)
	}		
	
else { // If none of the above match, tag with Pub & Global
	// PUBLICATIONS & GLOBAL
	hbx.acct="DM540826BBWD07EN3;DM5406110ANC07EN3"; //ACCOUNT NUBMER(S)
}
// END ACCOUNT VAR SETTING
/////////////////////////////////////

// STRIP OUT BAD CHARACTERS FUNCTION
function badCharStrip(a) { 
	a = a.split("|").join(""); 
	a = a.split("&").join("_"); 
	a = a.split("'").join(""); 
	a = a.split("#").join(""); 
	a = a.split("$").join(""); 
	a = a.split("%").join(""); 
	a = a.split("^").join(""); 
	a = a.split("*").join(""); 
	a = a.split(":").join(""); 
	a = a.split("!").join(""); 
	a = a.split(">").join(""); 
	a = a.split("<").join(""); 
	a = a.split("~").join(""); 
	a = a.split(";").join(""); 
	a = a.split(" ").join("+"); 
   return a; 
}
// Document Title - run function on document.title
docTitle = badCharStrip(document.title);

// MAIN FUNCTION - spliceURL
// Chops out what we need from URL - directory path & filename
function spliceFullURL(fullString, subString) { // fullString = url, subString = slashChar

	// Get Content Group (directory path) 
	// GIVE ME EVERYTHING BETWEEN THE FIRST "/" and last "slash"
	contentGroup = fullString.substring(fullString.indexOf("/"),fullString.lastIndexOf(subString)+1);
		
	// GRAB FILENAME
	// If the final "/" has nothing after it, set the "fileName to ""
	// This happens with pages that are just directories (i.e. http://www.aarp.org/travel/)
	if (fullString.lastIndexOf(subString) == -1) { 
		// Put a Space in there
		return "+"; 
	} else { 
		return fullString.substring(fullString.lastIndexOf(subString)+1, fullString.length); 
	} 
	// HOSTNAME TEST - if no hostname, then set to www.aarp.org
	if (host == "") {
		host = defaultHost;
	}
	
} // END FUNCTION

// RUN FUNCTION - sets filename
fileName = spliceFullURL(urlPath, slashChar);
// HBX Content Group = host + content group (
WSO_mlc = host + contentGroup;
// HBX PAGE NAME = file name + document.title
WSO_pn = fileName + "+" + docTitle;

//alert("MLC & Page Name = " + mlc + pn);

// Set Page Name and MLC here
hbx.pn=WSO_pn;
hbx.mlc=WSO_mlc;

//hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
//hbx.mlc="CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY
// END WSO CUSTOM
//////////////////////////////////////////////////
//////////////////////////////////////////////////

hbx.pndef="title";//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 - defualt was none
hbx.dlf="n";//DOWNLOAD FILTER 
hbx.dft="n";//DOWNLOAD FILE NAMING - y would get the full path name. 
hbx.elf="n";//EXIT LINK FILTER - click off to sub-domain, count as an exit from site. 

//SEGMENTS AND FUNNELS
hbx.seg="";//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 - put on campagin conversion page "LAST"
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
// PUt anything you want, seperate with "|" 
hbx.ci="";//CUSTOMER ID
hbx.hc1="";//CUSTOM 1
hbx.hc2="";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES

//INSERT CUSTOM EVENTS

//END EDITABLE SECTION

//REQUIRED SECTION. CHANGE "YOURSERVER" TO VALID LOCATION ON YOUR WEB SERVER (HTTPS IF FROM SECURE SERVER)
// Defer - tells your browser that this is the last to load, defer to everything. 
// defer - can be made sure that the user actually loads the whole page. 


// END HIT BOX PAGE CODE
////////////////////////////////////////////////////////////////////////////
//-->