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();
var watchList = new Array();
var flashTagList= new Array();
triggerParms["displayMode"] = 3; //0=disable, 1=default popup then dhtml, 2=popup only, 3=dhtml only
triggerParms["meas_id"] = "005dQNcQo5QlAB8NtIp0UQ==";
triggerParms["mid"] = "005dQNcQo5QlAB8NtIp0UQ=="; // model instance id
triggerParms["cid"] = "Zw8F9oRdhQsg8tNcshpIcQ=="; // customer id
triggerParms["dLF"] = 2; //domain loyalty factor
//triggerParms["nLF"] = 9; //navigation loyalty factor
triggerParms["spL"] = 25.0; //30%  launch sample percentage
triggerParms["spE"] = 100.0; // execute sample percentage
triggerParms["lfcookie"] = "ForeseeLoyalty_MID_005dQNcQo5";
triggerParms["ascookie"] = "ForeseeSurveyShown_005dQNcQo5";
triggerParms["npc"] = 0; // no persistent cookies if 1
triggerParms["rw"] = 43200; // resample wait (value in minutes)
triggerParms["width"] = 500;
triggerParms["height"] = 520;
//triggerParms["domain"] = ''; // domain name
//triggerParms["omb"] = "1505-0186"; // omb number
triggerParms["compliant508"] = 0; 	//508 compliant if 1
triggerParms["pu"] = 0;
triggerParms["olpu"] = 1;
triggerParms["userURL"] = 1; 	// value set to 1, if the client wants user url
triggerParms["capturePageView"] = 1;
//triggerParms["oecpp_cppName"]="Foresee_cppName";//Customized cpp
//triggerParms["cmetrics"] = "90010257"; // coremetrics client id
triggerParms["visualScienceId"] = 0;	// enable visual science code if 1
triggerParms["omnitureId"] = 0;		// enable omniture code if 1
//triggerParms["showCookie"]= 1; 	// commented by default - remove comments to put Retry cookie value
//triggerParms["showException"]= 1; 	// commented by default - remove comments to show JS onError exception alert

//Double Cookie/1 settings
//triggerParms["dcUniqueId"] = "TEST04JloZZN0k9cI1Ep5d"; //  (22 chars unique Id for double cookie I/II)
//triggerParms["midexp"] = 129600; // for double cookie (value in minutes)

//OE settings
triggerParms["oeMode"]  = 0;	// default mode=0, triggers survey on subdomain or protocol change
       		               	// mode=1, triggers survey on domain change only or in absence of code
//Scout Tracker settings
triggerParms["scout_retry"] = 2; 	// default=2, check multiple times if OE condition is true.
triggerParms["scout_delay"] = 1000;	// default=1 sec, scout delay in millseconds.

triggerParms["scout_chk"]= "ScoutRunningCheck";
triggerParms["path"] = "/";
triggerParms["trackerWidth"]  = 350;
triggerParms["trackerHeight"] = 210;
triggerParms["trackerURL"]  = "/cards/wv/fsrscripts/surveyTracker.html";

//DHTML Parameters
triggerParms["dhtmlIndex"]= 100;	// z-index s/b greater then client?s dhtml z-index (if exist) - default 100
triggerParms["dhtmlWidth"] = 440;	// invite page width
triggerParms["dhtmlHeight"] = 290;	// invite page height
triggerParms["dhtmlWinRep"] = 0;	// drops ScoutRunning cookie if 0
triggerParms["dhtmlURL"] = "/cards/wv/fsrscripts/oeFSRInvite.html";

//DHTML Positioning
//center		bottom-center		bottom-right		bottom-left        upper-right          upper-left
//x,y = (2,150)		x,y = (2,350)		x,y = (1.02,350)	x,y = (60,350)    x,y = (1.02,50)   x,y = (60,50)
//replace (x,y) below with any one of the above, default = center

var x=2;
var y=150;

triggerParms["dhtmlLeft"] = (self.screen.width - triggerParms["dhtmlWidth"])/x;			//invite page left position**DO NOT MODIFY**
triggerParms["dhtmlTop"] = Math.min((self.screen.height - triggerParms["dhtmlHeight"])/2,y);	//invite page top position**DO NOT MODIFY**

//FLASH Parameters - not to be used with other embedded objects e.g. (.dcr/.mov/.mpeg/.avi/.wma/.wmv/.aam/.rm/.ram)
triggerParms["flashDetect"]= 1;		// check if page has flash embedded with a valid browser & player ver before showing  dhtml - disable if 0
flashTagList[0]= "swf";			// flash src check for IE/NE complaint browsers
flashTagList[1]= "spl";			// splash src check for IE/NE complaint browsers
flashTagList[2]= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";	//activeX ID check for IE browsers only
triggerParms["inviteDelay"]= 1000;	// invite timeout in millisecs - default 1000ms=1sec

//List of Multiple Survey Vendors - uncomment variables below & add corresponding SP and URL
//var multiVendorSP= new Array();
//var multiVendorURL= new Array();
//multiVendorSP[0] = 0;		// sampling percentage for third-party vendor - disable if commented
//multiVendorURL[0]= "";	// absolute path to third-party script - disable if commented

//Foresee System Parameters
triggerParms["captureTriggerVersion"] = "OE5.2";	// track latest trigger version
triggerParms["popupURL"] = "//www.foreseeresults.com/survey/display";	//do not change this url unless notified.
triggerParms["FSRImgURL"]= "//www.foreseeresults.com/survey/FSRImg"; 	//do not change this url unless notified.