/* Touch Clarity logging request - http://www.touchclarity.com - Copyright (c) Touch Clarity Ltd 2001-2002. All rights reserved. Patent Pending.
 * For Ford Group - Jaguar Global Website. 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_site_id(); THIS IS THE OLD CALL */
if (typeof tc_site_id == 'undefined') tc_site_id = tc_get_site_id();

tc_server_url = "ford.touchclarity.com";
tc_log_path = '/logging/touchclarity';
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/logging-code.js'></scr"+"ipt>");

function tc_get_site_id() {
	var url = document.location.pathname;
	ccode = url.substring(1, url.indexOf("/", 1));
	lcode = url.substring(url.indexOf("/", 1)+1, url.indexOf("/", url.indexOf("/", 1)+1));
		 if ( ccode == "uk") return 36;
	else if ( ccode == "gb") return 36;
	else if ( ccode == "de") return 48;
	else if ( ccode == "fr") return 49;
	else if ( ccode == "es") return 50;
	else if ( ccode == "it") return 51;
	else if ( ccode == "us") return 218;
	else if ( (ccode == "be") && (lcode == "nl") ) return 225;
	else if ( (ccode == "be") && (lcode == "fr") ) return 225;
	else if ( ccode == "nl") return 219;
	else if ( ccode == "za") return 220;
	else if ( ccode == "pt") return 224;
	else if ( ccode == "jp") return 221;
	else if ( ccode == "ie") return 222;
	else if ( ccode == "at") return 223;
	else if ( ccode == "se") return 227;
	else if ( (ccode == "ch") && (lcode == "de") ) return 230;
	else if ( (ccode == "ch") && (lcode == "fr") ) return 230;
	else if ( (ccode == "ch") && (lcode == "it") ) return 230;
	else if ( ccode == "au") return 300;
	else if ( ccode == "nz") return 301;
	else if ( ccode == "ca") return 386;
	else if ( ccode == "lu") return 419;
	else if ( ccode == "ru") return 420;
	else if ( ccode == "meast") return 388;
	else if ( ccode == "int") return 387;
	else return 196;
}