if (typeof(wsstag_enabled) == 'undefined' || wsstag_enabled != "false") { //enabtest
// setup paths to js files
// - use relative path starting from domain name to keep the protocol intact
// Last Updated 12-13-2006

var wsstag_jsConfigURL = "_scripts/wss_springbok_config.js";
var wsstag_jsImplURL = "_scripts/hbx.js";

// set ON/OFF flag
if (typeof(wsstag_enabled) == 'undefined')
  var wsstag_enabled = "true";
var wsstag_batch = "false";
var wsstag_location = document.location;
var wsstag_doctitle = document.title;
var _wss_temp_url = null;

if (typeof(wss_testonly) != "undefined") {
  if (wss_testonly == "true") {
    wsstag_batch = "true";
    wsstag_location = new Object();
    wsstag_location.protocol = wss_testprotocol;
    wsstag_location.hostname = wss_testhostname;
    wsstag_location.href = wss_testhref;
    wsstag_location.pathname = wss_testpathname;
    wsstag_location.search = wss_testsearch;
    wsstag_doctitle = wss_testtitle;
  }
}

// Disable the tag if the page contains an iFrame
if (window.frames.length > 0) {
	wsstag_enabled = "false";
}

// Disable tag if page protocol starts with "file"
if (wsstag_location.protocol.indexOf("file") == 0)
{
  wsstag_enabled = "false";
}

// 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
if (typeof(wsstag_envResult) == 'undefined')
  var wsstag_envResult = null;
   wsstag_envResult = "test";
   if (wsstag_location.href.indexOf('www.mastercardgiftcard.com') != -1) {
      wsstag_envResult = "prod";
   }
   if (wsstag_location.href.indexOf('http://mastercardgiftcard.com') != -1) {
      wsstag_envResult = "prod";
   }
// include js files
if (wsstag_enabled == "true") {   
   document.write("<scr"+"ipt src=\""+wsstag_jsConfigURL+"\"></scr"+"ipt>");

   if (wsstag_batch != "true") {
     document.write("<scr"+"ipt defer src=\""+wsstag_jsImplURL+"\"></scr"+"ipt>");
   }   
}

}//end enabtest