/* Sophus3 logging request. http://www.sophus3.com
 * Site identifier code for BMW IT
 * 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_bmw_site_id();
tc_server_url = "bmw.touchclarity.com";
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/sophus3_logging-code.js'></scr"+"ipt>");

function tc_get_bmw_site_id() {
	// get site identifier from URL path
	var p = document.location.pathname.toLowerCase();
	     if (p.indexOf("/it/") > -1) return 341;
	// otherwise from domain
	var h = document.location.hostname.toLowerCase();
	     if (h.indexOf(".it") > -1) return 341;
	else {tc_logging_active = false; return 423;} // unknown site
}
