<!--
// BEGIN www.aarp.org Toolbar WebTrends Live JavaScript
// This should be included at the bottom of
// every TOOLBAR we have
// Last modified: 5/12/03 (cmcdaniel)

	// Needed to set content groups at the bottom of individual pages and topics
	// Must set correpsonding varible in lower code equal to this variable.
	var WTLgroup="";

	// Used to manipulate URL for various reasons. 
	// Must set correpsonding varible in lower code equal to this variable. 
	var docURL=document.URL;
	
// Chris wrote to
// Fix topic URL ending w/o slashes messing up WebTrends.  	
// 13 main topics array
var topicsPath = new Array();
topicsPath[0] = "http://www.aarp.org/aboutaarp";
topicsPath[1] = "http://www.aarp.org/benefits";
topicsPath[2] = "http://www.aarp.org/computers";
topicsPath[3] = "http://www.aarp.org/health";
topicsPath[4] = "http://www.aarp.org/learn";
topicsPath[5] = "http://www.aarp.org/legislative";
topicsPath[6] = "http://www.aarp.org/life";
topicsPath[7] = "http://www.aarp.org/money";
topicsPath[8] = "http://www.aarp.org/research";
topicsPath[9] = "http://www.aarp.org/leisure";
topicsPath[10] = "http://www.aarp.org/volunteer";
topicsPath[11] = "http://www.aarp.org/espanol";

// Go one by one through all 13 and add slash. 
   	for (i=0; i<topicsPath.length; i++) {
    	if (topicsPath[i].match(docURL)) {
			// Add a trailing slash on the end of the string
			docURL = docURL + "/";
		}
		else {
			docURL=document.URL;
		}
	} // End for loop
	
	
// WPP Specific code fix - attaches Page Title Onto URL
	if (document.URL == "https://wpp.aarp.org/servlet/wppdispatcher") {
		docURL = document.URL + "-" + document.title;
	}	
	
// End www.aarp.org head WTL JavaScript	
//-->
