﻿/* SiteCatalyst code version: H.10.
Copyright 1997-2007 Omniture, Inc. More info available at
http://www.omniture.com */
/************************ ADDITIONAL FEATURES ************************
     Plugins
*/
/* Specify the Report Suite ID(s) to track here */
var s_account="";
var hstname=window.location.hostname.toLowerCase();
if(hstname.indexOf('www.realage.com')>=0 || hstname.indexOf('cls.realage.com')>= 0){
    s_account = "hmagglobal,hmagrealage";
}else if(hstname.indexOf('qaweb')>=0 || hstname.indexOf('clsproto')>=0){
    s_account = "hmagdevelopment";
}
var s=s_gi(s_account)
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. */
s.charSet="ISO-8859-1"
/* E-commerce Config */
s.currencyCode="USD"
/* Link Tracking Config */
s.trackDownloadLinks=true
s.trackExternalLinks=true
s.trackInlineStats=true
s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls"
s.linkInternalFilters="javascript:,/,."
s.linkLeaveQueryString=false
s.linkTrackVars="prop29"
s.linkTrackEvents="None"

/* Form Analysis Configuration */
s.formList=""
s.trackFormList=false // if true, explicitly track only listed forms above. if false, do not track forms above.
s.trackPageName=true
s.useCommerce=true
//s.varUsed="eVar47"
//s.eventList="event10" //Abandon,Success,Error

var centerrules = [
{ "rule": "/reg/", "center": "Registration" },
{ "rule": "abrasions", "center": "Common Ailments" },
{"rule":"allergies", "center":"Soothe Your Sinuses"},
{"rule":"alzheimer", "center":"Disease Prevention"},
{"rule":"anxiety", "center":"Mind and Mood"},
{"rule":"backpain", "center":"Chronic Pain Management"},
{"rule":"bph", "center":"Mens' Health"},
{"rule":"breastcancer", "center":"Womens' Health"},
{"rule":"cancerctr", "center":"Disease Prevention"},
{"rule":"cholesterol", "center":"Heart Health"},
{"rule":"coldandflu", "center":"Soothe Your Sinuses"},
{"rule":"depression", "center":"Mind and Mood"},
{"rule":"diabetes", "center":"Disease Prevention"},
{"rule":"diarrhea", "center":"Gastrointestinal Relief"},
{"rule":"doctorcenter", "center":"YOU: On a Diet"},
{"rule":"dvt", "center":"Disease Prevention"},
{"rule":"earache", "center":"Common Ailments"},
{"rule":"effects-high-blood-pressure", "center":"Blood Pressure"},
{"rule":"fever", "center":"Common Ailments"},
{"rule":"financialcenter", "center":"Money and Work"},
{"rule":"games", "center":"Games"},
{"rule":"hangover", "center":"Common Ailments"},
{"rule":"headache", "center":"Chronic Pain Management"},
{"rule":"heartburn", "center":"Gastrointestinal Relief"},
{"rule":"herbs", "center":"Mind and Mood"},
{"rule":"ibs", "center":"Gastrointestinal Relief"},
{"rule":"incontinence-overactive-bladder", "center":"Womens' Health"},
{"rule":"insectbites", "center":"Common Ailments"},
{"rule":"jetlag", "center":"Common Ailments"},
{"rule":"menopause", "center":"Womens' Health"},
{"rule":"motionsickness", "center":"Common Ailments"},
{"rule":"news_features", "center":"New Features"},
{"rule":"nosebleed", "center":"Common Ailments"},
{"rule":"nutritioncenter", "center":"Food and Nutrition"},
{"rule":"osteoarthritis", "center":"Chronic Pain Management"},
{"rule":"osteoporosis", "center":"Womens' Health"},
{"rule":"overactive_bladder", "center":"Womens' Health"},
{"rule":"painrelief", "center":"Common Ailments"},
{"rule":"parentingcenter", "center":"Kids' Health"},
{"rule":"pms", "center":"Womens' Health"},
{"rule":"prostatecancer", "center":"Mens' Health"},
{"rule":"psoriasis", "center":"Simply Beautiful Skin"},
{"rule":"realbeauty", "center":"Simply Beautiful Skin"},
{"rule":"rheumatoid-arthritis", "center":"Chronic Pain Management"},
{"rule":"rls", "center":"Mind and Mood"},
{"rule":"simply-beautiful-skin", "center":"Simply Beautiful Skin"},
{"rule":"sorethroat", "center":"Common Ailments"},
{"rule":"sprains", "center":"Common Ailments"},
{"rule":"stopsmokingcenter", "center":"Stop Smoking"},
{"rule":"stuffy_nose_generated", "center":"Soothe Your Sinuses"},
{"rule":"sunburn", "center":"Common Ailments"},
{"rule":"vaccines", "center":"Disease Prevention"},
{"rule":"warrantytool", "center":"YOU: Staying Young"},
{"rule":"womens-health", "center":"Womens' Health"},
{"rule":"workoutcenter/fitness", "center":"YOU: On a Diet"},
{"rule":"workoutcenter", "center":"Workout Center"},
{"rule":"workouts", "center":"Workout Center"},
{"rule":"you-being-beautiful", "center":"YOU: Being Beautiful"},
{"rule":"you-on-a-diet", "center":"YOU: On a Diet"}
];

var channelrules = [
{"rule": "ralong", "channel": "RA Test" },
{"rule": "cancerctr", "channel": "Check Your Health" },
{"rule":"conditions-and-diseases", "channel":"Check Your Health"},
{"rule":"doctorcenter", "channel":"The YOU Docs"},
{"rule":"financialcenter", "channel":"Soothe Stress"},
{"rule":"gicenter", "channel":"Check Your Health"},
{"rule":"gift-guides", "channel":"Gift Guides"},
{"rule":"goshopping", "channel":"Go Shopping"},
{"rule":"health_guides/anxiety", "channel":"Soothe Stress"},
{"rule":"health_guides/depression", "channel":"Soothe Stress"},
{"rule":"health_guides/herbs", "channel":"Soothe Stress"},
{"rule":"health_guides/psoriasis", "channel":"Look Young, Stay Sharp"},
{"rule":"health_guides/rls", "channel":"Soothe Stress"},
{"rule":"health_guides", "channel":"Check Your Health"},
{"rule":"healthyyoucenter", "channel":"Look Young, Stay Sharp"},
{"rule":"help_desk", "channel":"Help"},
{"rule":"home_care", "channel":"Check Your Health"},
{"rule":"news_features", "channel":"Check Your Health"},
{"rule":"nutritioncenter", "channel":"Eat Smart"},
{"rule":"parentingcenter", "channel":"Check Your Health"},
{"rule":"realbeauty", "channel":"Look Young, Stay Sharp"},
{"rule":"research_library", "channel":"Research Library"},
{"rule":"simply-beautiful-skin", "channel":"Look Young, Stay Sharp"},
{"rule":"srch", "channel":"Search"},
{"rule":"stopsmokingcenter", "channel":"The YOU Docs"},
{"rule":"warrantytool", "channel":"The YOU Docs"},
{"rule": "womens-health", "channel": "Check Your Health" },
{"rule": "workoutcenter/fitness", "channel": "The YOU Docs" },
{"rule": "workoutcenter", "channel": "Workout Center" },
{"rule": "workouts", "channel": "Shape Up, Slim Down" },
{"rule": "you-being-beautiful", "channel": "The YOU Docs" },
{"rule": "you-on-a-diet", "channel": "The YOU Docs" }
];

/* RA Custom */
function dt(cVal) { 
    var dcVal = ''; var n = 5;
	for (x = 0; x < cVal.length; x++) { 
	    var t = cVal.charCodeAt(x);
	    var c = t - n;	    
	    if (t + n == 92 || t + n == 95) { 
	        dcVal += String.fromCharCode(t); }
        else {
           if (c > 31 && c < 127) { 
	        dcVal += String.fromCharCode(c); 
	        }  
	    }    
	} return dcVal; 
}

/* Plugin Config */
s.usePlugins=true
function s_doPlugins(s) {
    var s_url = document.URL.toLowerCase();
    /** Mag hacks **/
    var tmp1 = s.prop1;
    s.prop1 = null;
    for (var i = 0; i < channelrules.length; i++) {
        if (s_url.indexOf(channelrules[i].rule) > 0) {
            s.prop1 = channelrules[i].channel;
            break;
        }
    }
    if (s.prop1 == null)
        s.prop1 = tmp1;

    var tmp2 = s.prop2;
    s.prop2 = null;
    for (var i = 0; i < centerrules.length; i++) {
        if (s_url.indexOf(centerrules[i].rule) > 0) {
            s.prop2 = centerrules[i].center
            break;
        }
    }
    if (s.prop2 == null) {
        if (tmp2 == null)
            s.prop2 = "none"
        else
            s.prop2 = tmp2
    }
    // hack
    if (s.prop2 == "sprains strains and mino")
        s.prop2 = "sprains strains and minor pains"

    s.hier1 = null
    if (s.prop2 != "none")
        s.channel = s.prop2 + ":" + s.prop4;
    else
        s.channel = s.prop1 + ":" + s.prop4;        
    s.pageName = "RealAge:"
    if (s.prop2 != "none")
        s.pageName = s.pageName + s.prop2 + ":"
    else if (s.prop1 != null) {
        if (s.prop7 && s.prop7 != 'ra test')
            s.pageName = s.pageName + s.prop7 + " asmt:"
        else
            s.pageName = s.pageName + s.prop1 + ":"
    }
    s.pageName = s.pageName + s.prop5;
    if (s.prop7 && s.prop7 != 'ra test') //assessment
        s.pageName = s.pageName + ":" + s.prop7 + " asmt";
    if (s.prop6) //is has content id
        s.pageName = s.pageName + ":" + s.prop6
    if (s.pageType == "errorPage") {
        s.pageName = null
        s.prop1 = null
        s.prop2 = null
    }
    /** End Mag hacks **/
        
	/* Add calls to plugins here */
	/* new pagenaming, ugly hack till consistent url naming */
	if (s_url.match("/videos") != null) {
	    s.prop1="videos"; // content channel
	    s.prop4="video"; //page type
	    s.prop2 = s.prop4;
	    var vidnames=["fitness", "healthy-eating", "cooking-tips", "you-docs", "workouts", "you-and-your-body", "beauty-and-skin-care"]
	    for (var vid in vidnames) {
	        if (s_url.match(vidnames[vid])) {
	            s.prop2=vidnames[vid] + " " + s.prop4; // center
	            s.prop2 = s.prop2.replace(/-/g, " ")
	            // if param
	            if (s_url.match("default") != null) { // we're old school
	                if (s.getQueryParam(vidnames[vid]) != "") {
       	                s.prop5=s.getQueryParam(vidnames[vid]) // page description
       	            } else {
       	                s.prop5="default"
       	            }
       	        } else {       	      // we're rewrite
       	            var dirs = s_url.split("/")
       	            // have to do old-school
       	            var count = 0
       	            for (var dir in dirs) {
       	                if (dirs[dir] == "videos") {
       	                    if (dirs[count+2] != null && dirs[count+2] != "")
       	                        s.prop5=dirs[count+2]
       	                    else
       	                        s.prop5 = "default"
       	                    break;
       	                }
       	                count++
       	            }
       	        }
       	        break;
       	    }
       	}
	    if (s.prop2 == s.prop4) { // default page
	        s.prop2 = null;
	        if (s_url.match("aspx?") != null) {
	            s.prop5 = s_url.substring(s_url.indexOf("?")+1);
	            s.prop5 = s.prop5.replace(/\&.*/, "")
	            s.prop5 = s.prop5.replace(/=/, "")
	        } else {
	            s.prop5 = "default"
	        }
	        s.channel = "videos:video";
	    }
	    s.prop5 = s.prop5.replace(/-/g, " "); // get rid of dashes
	    // built variables
	    s.hier1 = null; // allow the hier set later to work...
	    if (s.prop2) {
	        s.channel = s.prop2 + ":" + s.prop2;
	    }
	    s.pageName = s.prop4 + ":" + s.prop5;
	}
	
	/* add new site code here */
	if (!s.prop19)
	    s.prop19=s.prop5;
	    
	/* set prop3 */
	s.prop3 = s.prop1;
	if (s.prop2)
		s.prop3 = s.prop3 + ":" + s.prop2;
	if (s.prop19)
		s.prop3 = s.prop3 + ":" + s.prop19;
	if (s.pageName)
		s.prop3 = s.prop3 + ":" + s.pageName;

	/* deduce prop20 */
	if ((s.prop19) && (!s.prop20)) {
		var x,y;
		if (s.prop2)
			x=s.prop2;
		else {
			if (s.prop1)
				x=s.prop1;
			else 
				x="none";
		}
		if (s.prop6)
			y=s.prop6;
		else
			y= s.prop19;
		s.prop20 = x + ":" + y;
	}

	/* build hierarchy if not available */
	if (!s.hier1) {
		s.hier1 = s.prop1;
		if (s.prop2) //center
			s.hier1 = s.hier1 + "," + s.prop2;
		else
			s.hier1 = s.hier1 + ",none";
		if (s.prop19) //tool
			s.hier1 = s.hier1 + "," + s.prop19;
		if (s.prop7 && s.prop7 != "ra test") //assessment
			s.hier1 = s.hier1 + "," + s.prop7 + " asmt";
		if (s.prop6) //is content (has content id)
			s.hier1 = s.hier1 + "," + s.prop6
	} 

	/* Set campaign if cid is found */
	if(!s.campaign) {
		s.campaign=s.getQueryParam('CBR').toLowerCase()
		if (s.campaign.indexOf("#") >=0)
		    s.campaign = s.campaign.substring(0, s.campaign.indexOf("#"))
		if (!s.campaign && (s_url.match("/cbr/") != null)) {
		    var seo_cbr = s_url
		    seo_cbr = seo_cbr.replace(/.*\/cbr\//, "")
		    seo_cbr = seo_cbr.replace(/\/.*/, "")
		    s.campaign = seo_cbr
		}
	}
	s.campaign=s.getValOnce(s.campaign,"s_campaign",0) 
	
	/* Set days since last visit */
	s.eVar6 = s.getDaysSinceLastVisit();
	s.eVar6 = s.getAndPersistValue(s.eVar6, 's_dslv', .020833333);

	/* plugin: new/repeat */
	s.prop9=s.getNewRepeat();
	/* from omniture: if memberid set, then Repeat */
	/** wrong. we want to have new v repeat. do not override */
	/*if(s.prop18){
		s.prop9="Repeat";
		s.eVar9=s.prop9
	}*/
	s.eVar9=s.getValOnce(s.prop9,"s_evar9",0);
	
	/* Set event1 (unique searches) if prop28 (search term) is found */
	if(s.prop28){
		s.prop28=s.prop28.toLowerCase();
		s.eVar7=s.prop28;
		var t_search=s.getValOnce(s.eVar7,'s_evar7',0)
		if(t_search){
			s.events=s.events?s.events.indexOf('eventSearch')==-1?'eventSearch,'+s.events:s.events:'eventSearch';
		}
	}	
	
	/* Set the server variable to the domain of the page */
	if(!s.server)
		s.server=window.location.host;
		
	/* Copy traffic variable to coresponding conversion variables */
	// User: Member vs. Non-Member
	if(s.prop10) {
	    s.eVar10=s.prop10;
	}
	// User: USA
	if(s.prop11) {
	    s.eVar11=s.prop11;
	}
	// User: Age
	if(s.prop12) {
	    s.eVar12=s.prop12;
	}
	// User: Gender
	if(s.prop13) {
	    s.eVar13=s.prop13;
	}
	// User: BMI
	if(s.prop14) {
	    s.eVar14=s.prop14;
	}
	// User: Length on File
	if(s.prop15) {
	    s.eVar15=s.prop15;
	}
	// User: New v. Existing
	if(s.prop16) {
	    s.eVar16=s.prop16;
	}
	// User: Combined
	if(s.prop17) {
	    s.eVar17=s.prop17;
	}
	// User: MemberID
	if(s.prop18) {
	    s.eVar18=s.prop18;
	}
	/* end copy block */
	
	/* A/B testing */
	/*if(!s.prop22)s.prop22=s.pageName*/
	
	/* Capture the landing page (first page of a visit) into eVar1 */
	var visStart=s.getVisitStart("s_visit");
	/* if eVar1 is set, its a landing page */
	if(visStart=="1"&&s.eVar1){
		s.eVar1=s.eVar1;
	/* otherwise clear it */
	}else{
	    s.eVar1="";
	}
	
	/* Visits initiated by an email clickthrough:
	     - Page pathing into prop25
		 - Landing page into eVar23  */
	s.mailFlag="";
	if(document.referrer&&document.referrer.indexOf("mailer.realage.com")>=0){
		s.mailFlag="Email RA:"
		s.eVar23=s.mailFlag+s.pageName;
	}
	s.prop25=s.getCustomPagePath(s.mailFlag,"s_prop25","");
	
	/* Form Anlaysis */
	s.setupFormAnalysis();
	
	/* Set event 2 (page view) on every page  */	
	/*s.events=s.events?s.events.indexOf('event2')==-1?'event2,'+s.events:s.events:'event2';*/
	/* if something served in an iframe, set event4 - external page view */
	//if (s.prop1 && s.prop1 == "aol mini quiz")
	//    s.events="event4";
	
	/* set Test Category (eVar2) from pagetype (prop4) only if one of the 7 modules */
	if (s.prop4 &&(s.prop4 == "ra gh" || s.prop4 == "ra mh" || s.prop4 == "ra md" || s.prop4 == "ra ls" || s.prop4 == "ra ss" || s.prop4 == "ra nt" || s.prop4 == "ra pa")){
	    s.eVar2=s.prop4;
	}
	
	/* Set prop26 with the original CBR from which a visitor reached the site
	      after the registration event (event9) has been fired  */
	s.prop26=s.getVisitsByCampaignAndEvent('CBR:',s.campaign,'event9');
	
	/* set the url into prop21 to allow for debug */
	s.prop21 = window.location.protocol + "//" + window.location.hostname + "" + window.location.pathname;

	s.prop29 = s.pageName // prop created to work around no link track to pagename for exit correlation

	/* now redo everything to fit into HDM solution */
	// required global traffic
	var tmp3 = s.prop3
	s.prop3 = s.prop4
	var tmp5 = s.prop5
	s.prop5 = s.prop28
	s.prop6 = s.evar19
	var tmp7 = s.prop7
	s.prop7 = s.evar20
	s.prop8 = s.evar21
	var tmp13 = s.prop13
	s.prop13 = s.prop21
	var tmp14 = s.prop14
	s.prop14 = s.prop27
	s.prop44 = s.prop18
	s.prop48 = s.prop29
	s.prop19 = s.eVar6
	// rebranded global
	s.prop4 = tmp3
	s.prop20 = tmp5
	s.prop34 = s.prop10
	s.prop35 = s.prop11
	s.prop36 = s.prop12
	s.prop37 = s.prop9
	s.prop38 = tmp14
	s.prop39 = s.prop15
	s.prop40 = s.prop16
	s.prop41 = s.prop17
	s.prop31 = tmp13
	s.prop47 = s.prop23
	s.prop10 = s.prop6
	s.prop16 = tmp7

    // null required global
	s.prop9 = null
	s.prop18 = null
	s.prop15 = null
	s.prop21 = null
	s.prop22 = null
	s.prop23 = null
	s.prop24 = null
	s.prop25 = null
	s.prop29 = null
	s.prop30 = null
	s.prop45 = null
	s.prop46 = null
	s.prop49 = null
	s.prop17 = null
	s.prop27 = null
	s.prop26 = null
	// null rebranded global
	s.prop11 = null
	s.prop12 = null
	s.prop28 = null
	s.prop31 = null
	s.prop32 = null
	s.prop33 = null
	s.prop50 = null
	s.prop16 = null

	// required global commerce
	var etmp5 = s.eVar5
	var etmp17 = s.eVar17
	s.eVar17 = etmp5
	s.eVar5 = s.eVar7
	s.eVar19 = s.eVar22
	s.eVar21 = s.eVar18
	s.eVar26 = s.eVar23
	s.eVar27 = s.eVar24
	s.eVar3 = s.prop1
	s.eVar4 = s.prop4 // new
	s.eVar31 = s.eVar13
	s.eVar37 = s.eVar9
	// rebranded global
	s.eVar30 = s.eVar10
	s.eVar32 = s.eVar11
	s.eVar36 = s.eVar14
	s.eVar38 = s.eVar15
	s.eVar39 = s.eVar16
	s.eVar40 = etmp17
	s.eVar29 = s.eVar1
	s.eVar24 = s.eVar2
	s.eVar46 = etmp5
	s.eVar35 = s.prop36

    // null required global
	s.eVar7 = null
	s.eVar8 = null
	s.eVar9 = null
	s.eVar10 = null
	s.eVar11 = null
	s.eVar12 = null
	s.eVar13 = null
	s.eVar14 = null
	s.eVar15 = null
	s.eVar16 = null
	s.eVar23 = null
	s.eVar25 = null
	s.eVar28 = null
	s.eVar44 = null
	s.eVar45 = null
	s.eVar2 = null
	s.eVar18 = null
	s.eVar20 = null
	s.eVar42 = null
	s.eVar33 = null
	s.eVar34 = null
	// null rebranded global
	s.eVar1 = null
	s.eVar41 = null
	s.eVar43 = null
	s.eVar48 = null
	s.eVar49 = null
	s.eVar50 = null

	/* Plugin: timeparting - Pacific Daylight Time */
	s.prop6 = s.getTimeParting('h', '-7', '2009');  // Set Hour 
	s.prop7 = s.getTimeParting('d', '-7', '2009');  // Set Day of Week
	s.prop8 = s.getTimeParting('w', '-7', '2009'); // Set Weekend / Weekday
	
    s.prop47 = 'classic'

    // events
    if (s.events != null) {
	    var eArray = s.events.split(",")
	    s.events = ""
	    for (var i = 0; i < eArray.length; i++) {
	        var event = eArray[i]
	        var e = null;
	        if (event == "event1") e = "event9"
	        else if (event == "event14") e = null; // we shouldn't be firing video events.
	        else if (event == "event6") e = "event10"
	        else if (event == "event7") e = "event11"
	        else if (event == "event8") e = "event12"
	        else if (event == "eventSearch") e = "event2"
	        else if (event == "event9") e = "event13"
	        else if (event == "event10") e = "event14"
	        else if (event == "event2") e = "event1"
	        else if (event == "event11") e = "event47"
	        else if (event == "event12") e = "event48"
	        else if (event == "event13") e = "event49" 
	        else if (event == "event16") e = "event58"
	        else if (event == "event17") e = "event59"
	        if (event != null && event != "null" && event != "" && e != null) {
	            //alert(event + " is event " + e)
	            s.events = s.events + e + ",";
	        }
	    }
	    // trim last comma
	    s.events = s.events.substring(0, s.events.length-1)
	}
}
s.doPlugins=s_doPlugins
/************************** PLUGINS SECTION *************************/
/* You may insert any plugins you wish to use here.                 */
/*
 * Plugin: getVisitsByCampaignAndEvent 1.0
 *  Get visits from a campaign after a triggering event
*/
s.getVisitsByCampaignAndEvent=new Function("pf","cm","et",""
+"var s=this,dt=new Date(),cv=s.c_r('s_rvce');dt.setTime(dt.getTime()+"
+"(315576000000));if(cv&&cv.length>0){if(cv.indexOf('[trg]')>=0&&cv.in"
+"dexOf('[cmp:')>=0){return pf+cv.substring(10,cv.length-1);}else if(c"
+"v.indexOf('[cmp:')>=0){if(s.events.indexOf(et)>=0){s.c_w('s_rvce','["
+"trg]'+cv,dt);}return '';}else{return '';}}else if(cm){s.c_w('s_rvce'"
+",'[cmp:'+cm+']',dt);return '';}else{return '';}");
/*
 * Plugin: getNewRepeat 1.1 - Return whether user is new or repeat
 */
s.getNewRepeat=new Function(""
+"var s=this,e=new Date(),cval,ct=e.getTime(),y=e.getYear();e.setTime"
+"(ct+5*365*24*60*60*1000);cval=s.c_r('s_nr');if(cval.length==0){s.c_w("
+"'s_nr',ct,e);return 'New';}if(cval.length!=0&&ct-cval<30*60*1000){s"
+".c_w('s_nr',ct,e);return 'New';}if(cval<1123916400001){e.setTime(cv"
+"al+30*24*60*60*1000);s.c_w('s_nr',ct,e);return 'Repeat';}else retur"
+"n 'Repeat';");
/*
 * Plugin: Days since last Visit 1.RA.1
 *  Custom version for RealAge:
 *    - Return 'First Visit' rather than 'First Page View' on initial visit
 */
s.getDaysSinceLastVisit=new Function(""
+"var s=this,e=new Date(),cval,ct=e.getTime(),c='s_lastvisit',day=24*"
+"60*60*1000;e.setTime(ct+3*365*day);cval=s.c_r(c);if(!cval){s.c_w(c,"
+"ct,e);return 'First visit or cookies not supported';}else{var d"
+"=ct-cval;if(d>30*60*1000){if(d>30*day){s.c_w(c,ct,e);return 'More t"
+"han 30 days';}if(d<30*day+1 && d>7*day){s.c_w(c,ct,e);return 'More "
+"than 7 days';}if(d<7*day+1 && d>day){s.c_w(c,ct,e);return 'Less tha"
+"n 7 days';}if(d<day+1){s.c_w(c,ct,e);return 'Less than 1 day';}}els"
+"e return '';}"
);
/*
 * Plugin: getQueryParam 2.1 - return query string parameter(s)
 */
s.getQueryParam=new Function("p","d","u",""
+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"
+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"
+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t)v+=v?d+t:t;p=p.subs"
+"tring(i==p.length?i:i+1)}return v");
s.p_gpv=new Function("k","u",""
+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"
+"=s.pt(q,'&','p_gvf',k)}return v");
s.p_gvf=new Function("t","k",""
+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"
+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."
+"epa(v)}return ''");
/*
 * Plugin Utility: apl v1.1
 */
s.apl=new Function("L","v","d","u",""
+"var s=this,m=0;if(!L)L='';if(u){var i,n,a=s.split(L,d);for(i=0;i<a."
+"length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas"
+"e()));}}if(!m)L=L?L+d+v:v;return L");
/*
 * Plugin: getValOnce 0.2 - get a value once per session or number of days
 */
s.getValOnce=new Function("v","c","e",""
+"var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime("
+")+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");
/*
 * Plugin: getAndPersistValue 0.3RA - get a value on every page
 *  Custom version for RealAge:
 *    - Resets a persistent cookie (if present) on each page view
 *    - Needed to match behavior of getDaysSinceLastVisit
 */
s.getAndPersistValue=new Function("v","c","e",""
+"var s=this,a=new Date;e=e?e:0;a.setTime(a.getTime()+e*86400000);if("
+"v){s.c_w(c,v,e?a:0);}else if(s.c_r(c)){var curVal=s.c_r(c);s.c_w(c,"
+"curVal,e?a:0);}return s.c_r(c);");
/*
 * Utility Function: split v1.5 - split a string (JS 1.0 compatible)
 */
s.split=new Function("l","d",""
+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"
+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");
/*
 * Plugin: getTimeParting 1.1 - Set timeparting values based on time zone
 */
s.getTimeParting=new Function("t","z","y","" 
+"dc=new Date('6/23/1910');bd=dc.getDay();bm=dc.getMonth();"
+"if(bd!=4||bm!=5){return'Data Not Available'}else{;"
+"cd=new Date();utc=cd.getTime()+(cd.getTimezoneOffset()*60000);"
+"tz=new Date(utc + (3600000*z));thisy=tz.getFullYear();"
+"var days=['Sunday','Monday','Tuesday','Wednesday','Thursday',"
+"'Friday','Saturday'];if(thisy!=y){return'Data Not Available'}else{;"
+"thish=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();"
+"var dow=days[thisd];var ap='AM';var dt='Weekday';var mint='00';"
+"if(thismin>30){mint='30'};if(thish>=12){ap='PM';thish=thish-12};"
+"if (thish==0){thish=12};if(thisd==6||thisd==0){dt='Weekend'};"
+"var timestring=thish+':'+mint+ap;var daystring = dow;"
+"var endstring=dt;if(t=='h'){return timestring}if(t=='d'){return daystring};"
+"if(t=='w'){return endstring}}};"
);
/*
 * Plugin: Form Analysis 2.0 (Success, Error, Abandonment)
 */
s.setupFormAnalysis=new Function(""
+"var s=this;if(!s.fa){s.fa=new Object;var f=s.fa;f.ol=s.wd.onload;s."
+"wd.onload=s.faol;f.uc=s.useCommerce;f.vu=s.varUsed;f.vl=f.uc?s.even"
+"tList:'';f.tfl=s.trackFormList;f.fl=s.formList;f.va=new Array('',''"
+",'','')}");
s.sendFormEvent=new Function("t","pn","fn","en",""
+"var s=this,f=s.fa;t=t=='s'?t:'e';f.va[0]=pn;f.va[1]=fn;f.va[3]=t=='"
+"s'?'Success':en;s.fasl(t);f.va[1]='';f.va[3]='';");
s.faol=new Function("e",""
+"var s=s_c_il["+s._in+"],f=s.fa,r=true,fo,fn,i,en,t,tf;if(!e)e=s.wd."
+"event;f.os=new Array;if(f.ol)r=f.ol(e);if(s.d.forms&&s.d.forms.leng"
+"th>0){for(i=s.d.forms.length-1;i>=0;i--){fo=s.d.forms[i];fn=fo.name"
+";tf=f.tfl&&s.pt(f.fl,',','ee',fn)||!f.tfl&&!s.pt(f.fl,',','ee',fn);"
+"if(tf){f.os[fn]=fo.onsubmit;fo.onsubmit=s.faos;f.va[1]=fn;f.va[3]='"
+"No Data Entered';for(en=0;en<fo.elements.length;en++){el=fo.element"
+"s[en];t=el.type;if(t&&t.toUpperCase){t=t.toUpperCase();var md=el.on"
+"mousedown,kd=el.onkeydown,omd=md?md.toString():'',okd=kd?kd.toStrin"
+"g():'';if(omd.indexOf('.fam(')<0&&okd.indexOf('.fam(')<0){el.s_famd"
+"=md;el.s_fakd=kd;el.onmousedown=s.fam;el.onkeydown=s.fam}}}}}f.ul=s"
+".wd.onunload;s.wd.onunload=s.fasl;}return r;");
s.faos=new Function("e",""
+"var s=s_c_il["+s._in+"],f=s.fa,su;if(!e)e=s.wd.event;if(f.vu){s[f.v"
+"u]='';f.va[1]='';f.va[3]='';}su=f.os[this.name];return su?su(e):tru"
+"e;");
s.fasl=new Function("e",""
+"var s=s_c_il["+s._in+"],f=s.fa,a=f.va,l=s.wd.location,ip=s.trackPag"
+"eName,p=s.pageName;if(a[1]!=''&&a[3]!=''){a[0]=!p&&ip?l.host+l.path"
+"name:a[0]?a[0]:p;if(!f.uc&&a[3]!='No Data Entered'){if(e=='e')a[2]="
+"'Error';else if(e=='s')a[2]='Success';else a[2]='Abandon'}else a[2]"
+"='';var tp=ip?a[0]+':':'',t3=e!='s'?':('+a[3]+')':'',ym=!f.uc&&a[3]"
+"!='No Data Entered'?tp+a[1]+':'+a[2]+t3:tp+a[1]+t3,ltv=s.linkTrackV"
+"ars,lte=s.linkTrackEvents,up=s.usePlugins;if(f.uc){s.linkTrackVars="
+"ltv=='None'?f.vu+',events':ltv+',events,'+f.vu;s.linkTrackEvents=lt"
+"e=='None'?f.vl:lte+','+f.vl;f.cnt=-1;if(e=='e')s.events=s.pt(f.vl,'"
+",','fage',2);else if(e=='s')s.events=s.pt(f.vl,',','fage',1);else s"
+".events=s.pt(f.vl,',','fage',0)}else{s.linkTrackVars=ltv=='None'?f."
+"vu:ltv+','+f.vu}s[f.vu]=ym;s.usePlugins=false;s.tl(true,'o','Form A"
+"nalysis');s[f.vu]='';s.usePlugins=up}return f.ul&&e!='e'&&e!='s'?f."
+"ul(e):true;");
s.fam=new Function("e",""
+"var s=s_c_il["+s._in+"],f=s.fa;if(!e) e=s.wd.event;var o=s.trackLas"
+"tChanged,et=e.type.toUpperCase(),t=this.type.toUpperCase(),fn=this."
+"form.name,en=this.name,sc=false;if(document.layers){kp=e.which;b=e."
+"which}else{kp=e.keyCode;b=e.button}et=et=='MOUSEDOWN'?1:et=='KEYDOW"
+"N'?2:et;if(f.ce!=en||f.cf!=fn){if(et==1&&b!=2&&'BUTTONSUBMITRESETIM"
+"AGERADIOCHECKBOXSELECT-ONEFILE'.indexOf(t)>-1){f.va[1]=fn;f.va[3]=e"
+"n;sc=true}else if(et==1&&b==2&&'TEXTAREAPASSWORDFILE'.indexOf(t)>-1"
+"){f.va[1]=fn;f.va[3]=en;sc=true}else if(et==2&&kp!=9&&kp!=13){f.va["
+"1]=fn;f.va[3]=en;sc=true}if(sc){nface=en;nfacf=fn}}if(et==1&&this.s"
+"_famd)return this.s_famd(e);if(et==2&&this.s_fakd)return this.s_fak"
+"d(e);");
s.ee=new Function("e","n",""
+"return n&&n.toLowerCase?e.toLowerCase()==n.toLowerCase():false;");
s.fage=new Function("e","a",""
+"var s=this,f=s.fa,x=f.cnt;x=x?x+1:1;f.cnt=x;return x==a?e:'';");
/*
 * Function - read combined cookies v 0.2
 */
s.c_rr=s.c_r;
s.c_r=new Function("k",""
+"var s=this,d=new Date,v=s.c_rr(k),c=s.c_rr('s_pers'),i,m,e;if(v)ret"
+"urn v;k=s.ape(k);i=c.indexOf(' '+k+'=');c=i<0?s.c_rr('s_sess'):c;i="
+"c.indexOf(' '+k+'=');m=i<0?i:c.indexOf('|',i);e=i<0?i:c.indexOf(';'"
+",i);m=m>0?m:e;v=i<0?'':s.epa(c.substring(i+2+k.length,m<0?c.length:"
+"m));if(m>0&&m!=e)if(parseInt(c.substring(m+1,e<0?c.length:e))<d.get"
+"Time()){d.setTime(d.getTime()-60000);s.c_w(s.epa(k),'',d);v='';}ret"
+"urn v;");
/*
 * Function - write combined cookies v 0.2
 */
s.c_wr=s.c_w;
s.c_w=new Function("k","v","e",""
+"var s=this,d=new Date,ht=0,pn='s_pers',sn='s_sess',pc=0,sc=0,pv,sv,"
+"c,i,t;d.setTime(d.getTime()-60000);if(s.c_rr(k)) s.c_wr(k,'',d);k=s"
+".ape(k);pv=s.c_rr(pn);i=pv.indexOf(' '+k+'=');if(i>-1){pv=pv.substr"
+"ing(0,i)+pv.substring(pv.indexOf(';',i)+1);pc=1;}sv=s.c_rr(sn);i=sv"
+".indexOf(' '+k+'=');if(i>-1){sv=sv.substring(0,i)+sv.substring(sv.i"
+"ndexOf(';',i)+1);sc=1;}d=new Date;if(e){if(e.getTime()>d.getTime())"
+"{pv+=' '+k+'='+s.ape(v)+'|'+e.getTime()+';';pc=1;}}else{sv+=' '+k+'"
+"='+s.ape(v)+';';sc=1;}if(sc) s.c_wr(sn,sv,0);if(pc){t=pv;while(t&&t"
+".indexOf(';')!=-1){var t1=parseInt(t.substring(t.indexOf('|')+1,t.i"
+"ndexOf(';')));t=t.substring(t.indexOf(';')+1);ht=ht<t1?t1:ht;}d.set"
+"Time(ht);s.c_wr(pn,pv,d);}return v==s.c_r(s.epa(k));");
/*
 * Plugin: getVisitStart v2.0 - returns 1 on first page of visit
 * otherwise 0
 */
s.getVisitStart=new Function("c",""
+"var s=this,v=1,t=new Date;t.setTime(t.getTime()+1800000);if(s.c_r(c"
+")){v=0}if(!s.c_w(c,1,t)){s.c_w(c,1,0)}if(!s.c_r(c)){v=0}return v;"); 
/*
 * Plugin: Custom Page Path v1.0
*/
s.getCustomPagePath=new Function("v","c","p",""
+"var s=this;var pn=s.pageName;r='';"
+"var t=new Date;t.setTime(t.getTime()+1800000);"
+"if(v){if(s.c_w(c,v,t)){r=p+v+':'+pn}}"
+"else{v=s.c_r(c);if(v){s.c_w(c,v,t);r=pn;}}"
+"return r;");

/* WARNING: Changing any of the below variables will cause drastic
changes to how your visitor data is collected.  Changes should only be
made when instructed to do so by your account manager.*/
s.visitorNamespace="hearstmagazines"
s.dc=112

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_objectID;function s_c2fe(f){var x='',s=0,e,a,b,c;while(1){e=
f.indexOf('"',s);b=f.indexOf('\\',s);c=f.indexOf("\n",s);if(e<0||(b>=
0&&b<e))e=b;if(e<0||(c>=0&&c<e))e=c;if(e>=0){x+=(e>s?f.substring(s,e):
'')+(e==c?'\\n':'\\'+f.substring(e,e+1));s=e+1}else return x
+f.substring(s)}return f}function s_c2fa(f){var s=f.indexOf('(')+1,e=
f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')
a+='","';else if(("\n\r\t ").indexOf(c)<0)a+=c;s++}return a?'"'+a+'"':
a}function s_c2f(cc){cc=''+cc;var fc='var f=new Function(',s=
cc.indexOf(';',cc.indexOf('{')),e=cc.lastIndexOf('}'),o,a,d,q,c,f,h,x
fc+=s_c2fa(cc)+',"var s=new Object;';c=cc.substring(s+1,e);s=
c.indexOf('function');while(s>=0){d=1;q='';x=0;f=c.substring(s);a=
s_c2fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(
q){if(h==q&&!x)q='';if(h=='\\')x=x?0:1;else x=0}else{if(h=='"'||h=="'"
)q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)
+'new Function('+(a?a+',':'')+'"'+s_c2fe(c.substring(o+1,e))+'")'
+c.substring(e+1);s=c.indexOf('function')}fc+=s_c2fe(c)+';return s");'
eval(fc);return f}function s_gi(un,pg,ss){var c="function s_c(un,pg,s"
+"s){var s=this;s.wd=window;if(!s.wd.s_c_in){s.wd.s_c_il=new Array;s."
+"wd.s_c_in=0;}s._il=s.wd.s_c_il;s._in=s.wd.s_c_in;s._il[s._in]=s;s.w"
+"d.s_c_in++;s.m=function(m){return (''+m).indexOf('{')<0};s.fl=funct"
+"ion(x,l){return x?(''+x).substring(0,l):x};s.co=function(o){if(!o)r"
+"eturn o;var n=new Object,x;for(x in o)if(x.indexOf('select')<0&&x.i"
+"ndexOf('filter')<0)n[x]=o[x];return n};s.num=function(x){x=''+x;for"
+"(var p=0;p<x.length;p++)if(('0123456789').indexOf(x.substring(p,p+1"
+"))<0)return 0;return 1};s.rep=function(x,o,n){var i=x.indexOf(o);wh"
+"ile(x&&i>=0){x=x.substring(0,i)+n+x.substring(i+o.length);i=x.index"
+"Of(o,i+n.length)}return x};s.ape=function(x){var s=this,h='01234567"
+"89ABCDEF',i,c=s.charSet,n,l,e,y='';c=c?c.toUpperCase():'';if(x){x='"
+"'+x;if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.subs"
+"tring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h"
+".substring(n%16,n%16+1)+e;n=parseInt(n/16);l++}y+='%u'+e}else if(c="
+"='+')y+='%2B';else y+=escape(c)}x=y}else{x=x?s.rep(escape(''+x),'+'"
+",'%2B'):x;if(x&&c&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('%U')<0){i"
+"=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substri"
+"ng(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substri"
+"ng(i);i=x.indexOf('%',i)}}}}return x};s.epa=function(x){var s=this;"
+"return x?unescape(s.rep(''+x,'+',' ')):x};s.pt=function(x,d,f,a){va"
+"r s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.s"
+"ubstring(0,y);r=s.m(f)?s[f](t,a):f(t,a);if(r)return r;z+=y+d.length"
+";t=x.substring(z,x.length);t=z<x.length?t:''}return ''};s.isf=funct"
+"ion(t,a){var c=a.indexOf(':');if(c>=0)a=a.substring(0,c);if(t.subst"
+"ring(0,2)=='s_')t=t.substring(2);return (t!=''&&t==a)};s.fsf=functi"
+"on(t,a){var s=this;if(s.pt(a,',','isf',t))s.fsg+=(s.fsg!=''?',':'')"
+"+t;return 0};s.fs=function(x,f){var s=this;s.fsg='';s.pt(x,',','fsf"
+"',f);return s.fsg};s.c_d='';s.c_gdf=function(t,a){var s=this;if(!s."
+"num(t))return 1;return 0};s.c_gd=function(){var s=this,d=s.wd.locat"
+"ion.hostname,n=s.fpCookieDomainPeriods,p;if(!n)n=s.cookieDomainPeri"
+"ods;if(d&&!s.c_d){n=n?parseInt(n):2;n=n>2?n:2;p=d.lastIndexOf('.');"
+"if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf('.',p-1);n--}s.c_d=p>0&&s"
+".pt(d,'.','c_gdf',0)?d.substring(p):d}}return s.c_d};s.c_r=function"
+"(k){var s=this;k=s.ape(k);var c=' '+s.d.cookie,i=c.indexOf(' '+k+'="
+"'),e=i<0?i:c.indexOf(';',i),v=i<0?'':s.epa(c.substring(i+2+k.length"
+",e<0?c.length:e));return v!='[[B]]'?v:''};s.c_w=function(k,v,e){var"
+" s=this,d=s.c_gd(),l=s.cookieLifetime,t;v=''+v;l=l?(''+l).toUpperCa"
+"se():'';if(e&&l!='SESSION'&&l!='NONE'){t=(v!=''?parseInt(l?l:0):-60"
+");if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if(k&&l!='NONE'"
+"){s.d.cookie=k+'='+s.ape(v!=''?v:'[[B]]')+'; path=/;'+(e&&l!='SESSI"
+"ON'?' expires='+e.toGMTString()+';':'')+(d?' domain='+d+';':'');ret"
+"urn s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s=this,b='s_'+"
+"e+'_'+s._in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<"
+"l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new"
+" Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r||f){x.b=r?0:o[e];x.o[e]=f"
+"}if(x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){va"
+"r s=this,r;if(s.apv>=5&&(!s.isopera||s.apv>=7))eval('try{r=s.m(f)?s"
+"[f](a):f(a)}catch(e){r=s.m(t)?s[t](e):t(e)}');else{if(s.ismac&&s.u."
+"indexOf('MSIE 4')>=0)r=s.m(b)?s[b](a):b(a);else{s.eh(s.wd,'onerror'"
+",0,o);r=s.m(f)?s[f](a):f(a);s.eh(s.wd,'onerror',1)}}return r};s.gtf"
+"set=function(e){var s=this;return s.tfs};s.gtfsoe=new Function('e',"
+"'var s=s_c_il['+s._in+'];s.eh(window,\"onerror\",1);s.etfs=1;var c="
+"s.t();if(c)s.d.write(c);s.etfs=0;return true');s.gtfsfb=function(a)"
+"{return window};s.gtfsf=function(w){var s=this,p=w.parent,l=w.locat"
+"ion;s.tfs=w;if(p&&p.location!=l&&p.location.host==l.host){s.tfs=p;r"
+"eturn s.gtfsf(s.tfs)}return s.tfs};s.gtfs=function(){var s=this;if("
+"!s.tfs){s.tfs=s.wd;if(!s.etfs)s.tfs=s.cet('gtfsf',s.tfs,'gtfset',s."
+"gtfsoe,'gtfsfb')}return s.tfs};s.mr=function(sess,q,ta){var s=this,"
+"dc=s.dc,t1=s.trackingServer,t2=s.trackingServerSecure,ns=s.visitorN"
+"amespace,unc=s.rep(s.fun,'_','-'),imn='s_i_'+s.fun,im,b,e,rs='http'"
+"+(s.ssl?'s':'')+'://'+(t1?(s.ssl&&t2?t2:t1):((ns?ns:(s.ssl?'102':un"
+"c))+'.'+(s.dc?s.dc:112)+'.2o7.net'))+'/b/ss/'+s.un+'/1/H.10-Pdvu-2/"
+"'+sess+'?[AQB]&ndh=1'+(q?q:'')+(s.q?s.q:'')+'&[AQE]';if(s.isie&&!s."
+"ismac){if(s.apv>5.5)rs=s.fl(rs,4095);else rs=s.fl(rs,2047)}if(s.d.i"
+"mages&&s.apv>=3&&(!s.isopera||s.apv>=7)&&(s.ns6<0||s.apv>=6.1)){im="
+"s.wd[imn];if(!im)im=s.wd[imn]=new Image;im.src=rs;if(rs.indexOf('&p"
+"e=')>=0&&(!ta||ta=='_self'||ta=='_top'||(s.wd.name&&ta==s.wd.name))"
+"){b=e=new Date;while(e.getTime()-b.getTime()<500)e=new Date}return "
+"''}return '<im'+'g sr'+'c=\"'+rs+'\" width=1 height=1 border=0 alt="
+"\"\">'};s.gg=function(v){var s=this;return s.wd['s_'+v]};s.glf=func"
+"tion(t,a){if(t.substring(0,2)=='s_')t=t.substring(2);var s=this,v=s"
+".gg(t);if(v)s[t]=v};s.gl=function(v){var s=this;if(s.pg)s.pt(v,',',"
+"'glf',0)};s.gv=function(v){var s=this;return s['vpm_'+v]?s['vpv_'+v"
+"]:(s[v]?s[v]:'')};s.havf=function(t,a){var s=this,b=t.substring(0,4"
+"),x=t.substring(4),n=parseInt(x),k='g_'+t,m='vpm_'+t,q=t,v=s.linkTr"
+"ackVars,e=s.linkTrackEvents;s[k]=s.gv(t);if(s.lnk||s.eo){v=v?v+','+"
+"s.vl_l:'';if(v&&!s.pt(v,',','isf',t))s[k]='';if(t=='events'&&e)s[k]"
+"=s.fs(s[k],e)}s[m]=0;if(t=='visitorID')q='vid';else if(t=='pageURL'"
+"){q='g';s[k]=s.fl(s[k],255)}else if(t=='referrer'){q='r';s[k]=s.fl("
+"s[k],255)}else if(t=='vmk')q='vmt';else if(t=='charSet'){q='ce';if("
+"s[k]&&s[k].toUpperCase()=='AUTO')s[k]='ISO8859-1';else if(s[k]&&s.e"
+"m==2)s[k]='UTF-8'}else if(t=='visitorNamespace')q='ns';else if(t=='"
+"cookieDomainPeriods')q='cdp';else if(t=='cookieLifetime')q='cl';els"
+"e if(t=='variableProvider')q='vvp';else if(t=='currencyCode')q='cc'"
+";else if(t=='channel')q='ch';else if(t=='transactionID')q='xact';el"
+"se if(t=='campaign')q='v0';else if(s.num(x)){if(b=='prop')q='c'+n;e"
+"lse if(b=='eVar')q='v'+n;else if(b=='hier'){q='h'+n;s[k]=s.fl(s[k],"
+"255)}}if(s[k]&&t!='linkName'&&t!='linkType')s.qav+='&'+q+'='+s.ape("
+"s[k]);return ''};s.hav=function(){var s=this;s.qav='';s.pt(s.vl_t,'"
+",','havf',0);return s.qav};s.lnf=function(t,h){t=t?t.toLowerCase():"
+"'';h=h?h.toLowerCase():'';var te=t.indexOf('=');if(t&&te>0&&h.index"
+"Of(t.substring(te+1))>=0)return t.substring(0,te);return ''};s.ln=f"
+"unction(h){var s=this,n=s.linkNames;if(n)return s.pt(n,',','lnf',h)"
+";return ''};s.ltdf=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLow"
+"erCase():'';var qi=h.indexOf('?');h=qi>=0?h.substring(0,qi):h;if(t&"
+"&h.substring(h.length-(t.length+1))=='.'+t)return 1;return 0};s.lte"
+"f=function(t,h){t=t?t.toLowerCase():'';h=h?h.toLowerCase():'';if(t&"
+"&h.indexOf(t)>=0)return 1;return 0};s.lt=function(h){var s=this,lft"
+"=s.linkDownloadFileTypes,lef=s.linkExternalFilters,lif=s.linkIntern"
+"alFilters;lif=lif?lif:s.wd.location.hostname;h=h.toLowerCase();if(s"
+".trackDownloadLinks&&lft&&s.pt(lft,',','ltdf',h))return 'd';if(s.tr"
+"ackExternalLinks&&(lef||lif)&&(!lef||s.pt(lef,',','ltef',h))&&(!lif"
+"||!s.pt(lif,',','ltef',h)))return 'e';return ''};s.lc=new Function("
+"'e','var s=s_c_il['+s._in+'],b=s.eh(this,\"onclick\");s.lnk=s.co(th"
+"is);s.t();s.lnk=0;if(b)return this[b](e);return true');s.bc=new Fun"
+"ction('e','var s=s_c_il['+s._in+'],f;if(s.d&&s.d.all&&s.d.all.cppXY"
+"ctnr)return;s.eo=e.srcElement?e.srcElement:e.target;eval(\"try{if(s"
+".eo&&(s.eo.tagName||s.eo.parentElement||s.eo.parentNode))s.t()}catc"
+"h(f){}\");s.eo=0');s.ot=function(o){var a=o.type,b=o.tagName;return"
+" (a&&a.toUpperCase?a:b&&b.toUpperCase?b:o.href?'A':'').toUpperCase("
+")};s.oid=function(o){var s=this,t=s.ot(o),p=o.protocol,c=o.onclick,"
+"n='',x=0;if(!o.s_oid){if(o.href&&(t=='A'||t=='AREA')&&(!c||!p||p.to"
+"LowerCase().indexOf('javascript')<0))n=o.href;else if(c){n=s.rep(s."
+"rep(s.rep(s.rep(''+c,\"\\r\",''),\"\\n\",''),\"\\t\",''),' ','');x="
+"2}else if(o.value&&(t=='INPUT'||t=='SUBMIT')){n=o.value;x=3}else if"
+"(o.src&&t=='IMAGE')n=o.src;if(n){o.s_oid=s.fl(n,100);o.s_oidt=x}}re"
+"turn o.s_oid};s.rqf=function(t,un){var s=this,e=t.indexOf('='),u=e>"
+"=0?','+t.substring(0,e)+',':'';return u&&u.indexOf(','+un+',')>=0?s"
+".epa(t.substring(e+1)):''};s.rq=function(un){var s=this,c=un.indexO"
+"f(','),v=s.c_r('s_sq'),q='';if(c<0)return s.pt(v,'&','rqf',un);retu"
+"rn s.pt(un,',','rq',0)};s.sqp=function(t,a){var s=this,e=t.indexOf("
+"'='),q=e<0?'':s.epa(t.substring(e+1));s.sqq[q]='';if(e>=0)s.pt(t.su"
+"bstring(0,e),',','sqs',q);return 0};s.sqs=function(un,q){var s=this"
+";s.squ[un]=q;return 0};s.sq=function(q){var s=this,k='s_sq',v=s.c_r"
+"(k),x,c=0;s.sqq=new Object;s.squ=new Object;s.sqq[q]='';s.pt(v,'&',"
+"'sqp',0);s.pt(s.un,',','sqs',q);v='';for(x in s.squ)s.sqq[s.squ[x]]"
+"+=(s.sqq[s.squ[x]]?',':'')+x;for(x in s.sqq)if(x&&s.sqq[x]&&(x==q||"
+"c<2)){v+=(v?'&':'')+s.sqq[x]+'='+s.ape(x);c++}return s.c_w(k,v,0)};"
+"s.wdl=new Function('e','var s=s_c_il['+s._in+'],r=true,b=s.eh(s.wd,"
+"\"onload\"),i,o,oc;if(b)r=this[b](e);for(i=0;i<s.d.links.length;i++"
+"){o=s.d.links[i];oc=o.onclick?\"\"+o.onclick:\"\";if((oc.indexOf(\""
+"s_gs(\")<0||oc.indexOf(\".s_oc(\")>=0)&&oc.indexOf(\".tl(\")<0)s.eh"
+"(o,\"onclick\",0,s.lc);}return r');s.wds=function(){var s=this;if(s"
+".apv>3&&(!s.isie||!s.ismac||s.apv>=5)){if(s.b&&s.b.attachEvent)s.b."
+"attachEvent('onclick',s.bc);else if(s.b&&s.b.addEventListener)s.b.a"
+"ddEventListener('click',s.bc,false);else s.eh(s.wd,'onload',0,s.wdl"
+")}};s.vs=function(x){var s=this,v=s.visitorSampling,g=s.visitorSamp"
+"lingGroup,k='s_vsn_'+s.un+(g?'_'+g:''),n=s.c_r(k),e=new Date,y=e.ge"
+"tYear();e.setYear(y+10+(y<1900?1900:0));if(v){v*=100;if(!n){if(!s.c"
+"_w(k,x,e))return 0;n=x}if(n%10000>v)return 0}return 1};s.dyasmf=fun"
+"ction(t,m){if(t&&m&&m.indexOf(t)>=0)return 1;return 0};s.dyasf=func"
+"tion(t,m){var s=this,i=t?t.indexOf('='):-1,n,x;if(i>=0&&m){var n=t."
+"substring(0,i),x=t.substring(i+1);if(s.pt(x,',','dyasmf',m))return "
+"n}return 0};s.uns=function(){var s=this,x=s.dynamicAccountSelection"
+",l=s.dynamicAccountList,m=s.dynamicAccountMatch,n,i;s.un.toLowerCas"
+"e();if(x&&l){if(!m)m=s.wd.location.host;if(!m.toLowerCase)m=''+m;l="
+"l.toLowerCase();m=m.toLowerCase();n=s.pt(l,';','dyasf',m);if(n)s.un"
+"=n}i=s.un.indexOf(',');s.fun=i<0?s.un:s.un.substring(0,i)};s.sa=fun"
+"ction(un){var s=this;s.un=un;if(!s.oun)s.oun=un;else if((','+s.oun+"
+"',').indexOf(un)<0)s.oun+=','+un;s.uns()};s.t=function(){var s=this"
+",trk=1,tm=new Date,sed=Math&&Math.random?Math.floor(Math.random()*1"
+"0000000000000):tm.getTime(),sess='s'+Math.floor(tm.getTime()/108000"
+"00)%10+sed,yr=tm.getYear(),vt=tm.getDate()+'/'+tm.getMonth()+'/'+(y"
+"r<1900?yr+1900:yr)+' '+tm.getHours()+':'+tm.getMinutes()+':'+tm.get"
+"Seconds()+' '+tm.getDay()+' '+tm.getTimezoneOffset(),tfs=s.gtfs(),t"
+"a='',q='',qs='';s.gl(s.vl_g);s.uns();if(!s.q){var tl=tfs.location,a"
+",o,i,x='',c='',v='',p='',bw='',bh='',j='1.0',k=s.c_w('s_cc','true',"
+"0)?'Y':'N',hp='',ct='',pn=0,ps;if(String&&String.prototype){j=\"1.1"
+"\";if(j.match){j=\"1.2\";if(tm.setUTCDate){j=\"1.3\";if(s.isie&&s.i"
+"smac&&s.apv>=5)j=\"1.4\";if(pn.toPrecision){j=\"1.5\";a=new Array;i"
+"f(a.forEach){j=\"1.6\";i=0;o=new Object;eval(\"try{i=new Iterator(o"
+")}catch(e){}\");if(i&&i.next)j=\"1.7\"}}}}}if(s.apv>=4)x=screen.wid"
+"th+'x'+screen.height;if(s.isns||s.isopera){if(s.apv>=3){v=s.n.javaE"
+"nabled()?'Y':'N';if(s.apv>=4){c=screen.pixelDepth;bw=s.wd.innerWidt"
+"h;bh=s.wd.innerHeight;}}s.pl=s.n.plugins}else if(s.isie){if(s.apv>="
+"4){v=s.n.javaEnabled()?'Y':'N';c=screen.colorDepth;if(s.apv>=5){bw="
+"s.d.documentElement.offsetWidth;bh=s.d.documentElement.offsetHeight"
+";if(!s.ismac&&s.b){eval(\"try{s.b.addBehavior('#default#homePage');"
+"hp=s.b.isHomePage(tl)?'Y':'N'}catch(e){}\");eval(\"try{s.b.addBehav"
+"ior('#default#clientCaps');ct=s.b.connectionType}catch(e){}\")}}}el"
+"se r=''}if(s.pl)while(pn<s.pl.length&&pn<30){ps=s.fl(s.pl[pn].name,"
+"100)+';';if(p.indexOf(ps)<0)p+=ps;pn++}s.q=(x?'&s='+s.ape(x):'')+(c"
+"?'&c='+s.ape(c):'')+(j?'&j='+j:'')+(v?'&v='+v:'')+(k?'&k='+k:'')+(b"
+"w?'&bw='+bw:'')+(bh?'&bh='+bh:'')+(ct?'&ct='+s.ape(ct):'')+(hp?'&hp"
+"='+hp:'')+(p?'&p='+s.ape(p):'')}if(s.usePlugins)s.doPlugins(s);var "
+"l=s.wd.location,r=tfs.document.referrer;if(!s.pageURL)s.pageURL=l;i"
+"f(!s.referrer)s.referrer=r;if(s.lnk||s.eo){var o=s.eo?s.eo:s.lnk;if"
+"(!o)return '';var p=s.gv('pageName'),w=1,t=s.ot(o),n=s.oid(o),x=o.s"
+"_oidt,h,l,i,oc;if(s.eo&&o==s.eo){while(o&&!n&&t!='BODY'){o=o.parent"
+"Element?o.parentElement:o.parentNode;if(!o)return '';t=s.ot(o);n=s."
+"oid(o);x=o.s_oidt}oc=o.onclick?''+o.onclick:'';if((oc.indexOf(\"s_g"
+"s(\")>=0&&oc.indexOf(\".s_oc(\")<0)||oc.indexOf(\".tl(\")>=0)return"
+" ''}ta=n?o.target:1;h=o.href?o.href:'';i=h.indexOf('?');h=s.linkLea"
+"veQueryString||i<0?h:h.substring(0,i);l=s.linkName?s.linkName:s.ln("
+"h);t=s.linkType?s.linkType.toLowerCase():s.lt(h);if(t&&(h||l))q+='&"
+"pe=lnk_'+(t=='d'||t=='e'?s.ape(t):'o')+(h?'&pev1='+s.ape(h):'')+(l?"
+"'&pev2='+s.ape(l):'');else trk=0;if(s.trackInlineStats){if(!p){p=s."
+"gv('pageURL');w=0}t=s.ot(o);i=o.sourceIndex;if(s.gg('objectID')){n="
+"s.gg('objectID');x=1;i=1}if(p&&n&&t)qs='&pid='+s.ape(s.fl(p,255))+("
+"w?'&pidt='+w:'')+'&oid='+s.ape(s.fl(n,100))+(x?'&oidt='+x:'')+'&ot="
+"'+s.ape(t)+(i?'&oi='+i:'')}}if(!trk&&!qs)return '';if(s.p_r)s.p_r()"
+";var code='';if(trk&&s.vs(sed))code=s.mr(sess,(vt?'&t='+s.ape(vt):'"
+"')+s.hav()+q+(qs?qs:s.rq(s.un)),ta);s.sq(trk?'':qs);s.lnk=s.eo=s.li"
+"nkName=s.linkType=s.wd.s_objectID=s.ppu='';if(s.pg)s.wd.s_lnk=s.wd."
+"s_eo=s.wd.s_linkName=s.wd.s_linkType='';return code};s.tl=function("
+"o,t,n){var s=this;s.lnk=s.co(o);s.linkType=t;s.linkName=n;s.t()};s."
+"ssl=(s.wd.location.protocol.toLowerCase().indexOf('https')>=0);s.d="
+"document;s.b=s.d.body;s.n=navigator;s.u=s.n.userAgent;s.ns6=s.u.ind"
+"exOf('Netscape6/');var apn=s.n.appName,v=s.n.appVersion,ie=v.indexO"
+"f('MSIE '),o=s.u.indexOf('Opera '),i;if(v.indexOf('Opera')>=0||o>0)"
+"apn='Opera';s.isie=(apn=='Microsoft Internet Explorer');s.isns=(apn"
+"=='Netscape');s.isopera=(apn=='Opera');s.ismac=(s.u.indexOf('Mac')>"
+"=0);if(o>0)s.apv=parseFloat(s.u.substring(o+6));else if(ie>0){s.apv"
+"=parseInt(i=v.substring(ie+5));if(s.apv>3)s.apv=parseFloat(i)}else "
+"if(s.ns6>0)s.apv=parseFloat(s.u.substring(s.ns6+10));else s.apv=par"
+"seFloat(v);s.em=0;if(String.fromCharCode){i=escape(String.fromCharC"
+"ode(256)).toUpperCase();s.em=(i=='%C4%80'?2:(i=='%U0100'?1:0))}s.sa"
+"(un);s.vl_l='visitorID,vmk,ppu,charSet,visitorNamespace,cookieDomai"
+"nPeriods,cookieLifetime,pageName,pageURL,referrer,currencyCode,purc"
+"haseID';s.vl_t=s.vl_l+',variableProvider,channel,server,pageType,tr"
+"ansactionID,campaign,state,zip,events,products,linkName,linkType';f"
+"or(var n=1;n<51;n++)s.vl_t+=',prop'+n+',eVar'+n+',hier'+n;s.vl_g=s."
+"vl_t+',trackDownloadLinks,trackExternalLinks,trackInlineStats,linkL"
+"eaveQueryString,linkDownloadFileTypes,linkExternalFilters,linkInter"
+"nalFilters,linkNames';s.pg=pg;s.gl(s.vl_g);if(!ss)s.wds()}",
l=window.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=v.indexOf(
'MSIE '),m=u.indexOf('Netscape6/'),a,i,s;if(l)for(i=0;i<l.length;i++){
s=l[i];if(s.oun==un)return s;else if(s.fs(s.oun,un)){s.sa(un);return s
}}if(e>0){a=parseInt(i=v.substring(e+5));if(a>3)a=parseFloat(i)}
else if(m>0)a=parseFloat(u.substring(m+10));else a=parseFloat(v);if(a
>=5&&v.indexOf('Opera')<0&&u.indexOf('Opera')<0){eval(c);return new
s_c(un,pg,ss)}else s=s_c2f(c);return s(un,pg,ss)}function s_co(o){
var s=s_gi("^",1,1);return s.co(o)}function s_gs(un){var s=s_gi(un,1,1
);return s.t()}function s_dc(un){var s=s_gi(un,1);return s.t()}
