/* Touch Clarity logging request - http://www.touchclarity.com - Copyright (c) Touch Clarity Ltd 2001-2002. All rights reserved. Patent Pending.

 * For Mazda Natonal Sites. 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();
tc_server_url = "ford.touchclarity.html";
tc_log_path = '/touchclarity';
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() == "at") tc_site_id = 391;
	else if (domain.toLowerCase() == "ch") tc_site_id = 392;
	else if (domain.toLowerCase() == "de") tc_site_id = 257;
	else if (domain.toLowerCase() == "dk") tc_site_id = 393;
	else if (domain.toLowerCase() == "com") tc_site_id = 258; //else if (domain.toLowerCase() == "es") tc_site_id = 258;
	else if (domain.toLowerCase() == "fr") tc_site_id = 259;
	else if (domain.toLowerCase() == "it") tc_site_id = 260;
	else if (domain.toLowerCase() == "no") tc_site_id = 394;
	else if (domain.toLowerCase() == "pt") tc_site_id = 390;
	else if (domain.toLowerCase() == "ru") tc_site_id = 396;
	else if (domain.toLowerCase() == "se") tc_site_id = 395;
	else if (domain.toLowerCase() == "uk") tc_site_id = 256;
	else tc_site_id = 168;  // Ford Europe
	return tc_site_id;
}