/* Sophus3 logging request. http://www.sophus3.com
 * Site identifier code for Mazda DE
 * Copyright (c) Sophus Ltd All rights reserved. Patent Pending.
 */

if (typeof tc_logging_active == 'undefined') tc_logging_active = true;

//Captures campaign parameters

if (tc_page_alias!= null && tc_page_alias.length > 1) {
	tc_page_alias += location.search;
}


tc_site_id = tc_get_site_id();
tc_server_url = "ford.touchclarity.com";
tc_log_path = '../../../userdata/0/mediapool/100/layout';
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/logging-code.js'></scr"+"ipt>");



// custom functions for Mazda Portal sites
function tc_get_site_id() {
          var domain = document.location.hostname;
          domain = domain.toLowerCase();
          domain = domain.substring(domain.lastIndexOf(".")+1);
               if (domain.toLowerCase() == "de") tc_site_id = 257;
          else tc_site_id = 257;  // Mazda DE
          return tc_site_id;

}