// Customer: BLS Occupational Outlook Handbook2
// Version : OnExit 4.5

function cppUrlPatch(s) {
	var translated = "";
	var i; 
	var found = 0;
	for(i = 0; (found = s.indexOf(':', found)) != -1; ) {
		translated += s.substring(i, found) + "|";
		i = found + 1;
		found++;
	}
	translated += s.substring(i, s.length);
	return translated;
}

var triggerParms = new Array();
triggerParms["trigger_type"] = "OE";
triggerParms["dt"] = 0; // disable trigger if 1
triggerParms["meas_id"] = "IxYYphpsIwRoEQc8BtIAZA=="; 
triggerParms["mid"] = "IxYYphpsIwRoEQc8BtIAZA=="; // model instance id
triggerParms["cid"] = "UxsxEhc90VY89IEstok1VA=="; // customer id
triggerParms["dLF"] = 4; //domain loyalty factor
//triggerParms["nLF"] = 9; //navigation loyalty factor
triggerParms["spL"] = 2.0; //  launch sample percentage
triggerParms["spE"] = 100.0; // execute sample percentage
triggerParms["lfcookie"] = "ForeseeLoyalty_MID_IxYYphpsIw";
triggerParms["ascookie"] = "ForeseeSurveyShown_IxYYphpsIw";

triggerParms["npc"] = 1; // no persistent cookies if 1
triggerParms["rw"] = 129600; // resample wait (value in minutes)
triggerParms["width"] = 460; 
triggerParms["height"] = 500; 
triggerParms["domain"] = ".bls.gov"; // domain name
triggerParms["omb"] = "1505-0186"; // omb number
triggerParms["pu"] = 0; 
triggerParms["olpu"] = 1; 

//triggerParms["cmetrics"] = "90010257"; // coremetrics client id
//triggerParms["dcUniqueId"] = "TEST04JloZZN0k9cI1Ep5d"; //  (22 chars unique Id for double cookie I/II)
//triggerParms["midexp"] = 129600; // for double cookie (value in minutes)
triggerParms["use_cpp"] = 1; // value set to 1, if the client wants user url
triggerParms["cpp_2"] = "Browser:"+ cppUrlPatch (navigator.userAgent);
triggerParms["capturePageView"] = 0; 
//triggerParms["oecpp_cppName"]="Foresee_cppName";//Customized cpp
triggerParms["path"] = "/";
triggerParms["scout_chk"]= "ScoutRunningCheck";

triggerParms["dhtml"] = 1; //no DHTML window if 0
triggerParms["dhtmlURL"] = "/foresee/oeFSRInvite.htm";
triggerParms["dhtmlWidth"]  = 400;
triggerParms["dhtmlHeight"] = 290;
triggerParms["dhtmlWinRep"] = 1;
triggerParms["compliant508"] = 1; //508 compliant if 1
triggerParms["trackerURL"]  = "/foresee/site1/surveyTracker.htm";
triggerParms["trackerWidth"]  = 280;
triggerParms["trackerHeight"] = 180;
triggerParms["oecpp_popupStats"]="Foresee_popupStats";

var watchList = new Array();   // (only for OnExit)

watchList[0] = "/oco"; // main landing page
watchList[1] = "/search/ooh.asp"; // search page