/* Sophus3 logging request. http://www.sophus3.com
 * Test Site identifier codes for HME Sites
 * Copyright (c) Sophus3 Ltd 2001-2006. All rights reserved. Patent Pending.
 * Change the value of tc_logging_active to switch off logging on the site. */

if (typeof tc_logging_active == 'undefined') tc_logging_active = true;

tc_site_id = tc_get_HME_site_id();
tc_server_url = "honda.touchclarity.com";
tc_log_path = '/sophus3';
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/logging-code.js'></scr"+"ipt>");

function tc_get_HME_site_id() {
	// get site identifier from URL path
	var p = document.location.pathname;
	     if (p.indexOf("/es/") > -1) return 148;
	else if (p.indexOf("/it/") > -1) return 150;
	else if (p.indexOf("/fr/") > -1) return 149;
	else if (p.indexOf("/esp/") > -1) return 148;
	else if (p.indexOf("/ita/") > -1) return 150;
	else if (p.indexOf("/fra/") > -1) return 149;
	else if (p.indexOf("_esp") > -1) return 148;
	else if (p.indexOf("_ita") > -1) return 150;
	else if (p.indexOf("_fra") > -1) return 149;
	// otherwise from domain
	var h = document.location.hostname;
	     if (h.indexOf(".es") > -1) return 148;
	else if (h.indexOf(".it") > -1) return 150;
	else if (h.indexOf(".fr") > -1) return 149;
	else {tc_logging_active = false; return 101;} // unknown site
}