// *************************
// The purpose of this file is to:
// 1) set confuration and HBX javascript file locations 
// 2) determine and set the current environment
//    - test or production
// 3) determine whether or not to run HBX 
//    - based on flag and/or environment
// *************************

// setup paths to js files
// - use relative path starting from domain name to keep the protocol intact
var wsstag_jsConfigURL = "/js/wss_redirect_config.js";
var wsstag_jsImplURL = "/js/hbx.js";

// set ON/OFF flag
var wsstag_enabled = "true";

// set prod env value
var wsstag_prodEnv = "prod";  // used to compare against environment result
var wsstag_testEnv = "test";


// determine current environment
// - used by config js
var wsstag_envResult = "test";

 if (location.href.indexOf('www.mastercard.com') != -1) {
      wsstag_envResult = "prod";
   }
    


// include js files
if (wsstag_enabled == "true") {
   document.write("<scr"+"ipt src=\""+wsstag_jsConfigURL+"\"></scr"+"ipt>");
   document.write("<scr"+"ipt defer src=\""+wsstag_jsImplURL+"\"></scr"+"ipt>");
}
