// *** Last Updated: 07-24-06
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

var wsstag_jsConfigURL = "/inc/wss_tower_group_config.js";
var wsstag_jsImplURL = "/inc/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 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('http://towergroup.com') != -1) {
      wsstag_envResult = "prod";
   }
   if (wsstag_location.href.indexOf('https://towergroup.com') != -1) {
      wsstag_envResult = "prod";
   }
   if (wsstag_location.href.indexOf('www.towergroup.com') != -1) {
      wsstag_envResult = "prod";
   }

// include js files
if (wsstag_enabled == "true") {
   
	// include js files
	if (wsstag_enabled == "true") {   
		document.write("<scr"+"ipt src=\""+wsstag_jsConfigURL+"\"></scr"+"ipt>");
	   if (wsstag_batch != "true") {
			if(typeof(wsstag_videoType)!="undefined"){ 
				document.write("<scr"+"ipt src=\""+wsstag_jsImplURL+"\"></scr"+"ipt>");
			}
			else {
				document.write("<scr"+"ipt defer src=\""+wsstag_jsImplURL+"\"></scr"+"ipt>");
			}
	   }   
	}
   
}

}//end enabtest