/* Touch Clarity logging request - http://www.touchclarity.com
 * Copyright (c) Touch Clarity Ltd 2001-2004 All rights reserved. Patent Pending.
 * For GM - Saab Shared Platform 
 * 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_saab_site_id();
tc_server_url = "gm.touchclarity.com";
tc_log_path = '/touchclarity';
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/logging-code.js'></scr"+"ipt>");

function tc_get_saab_site_id() {
 // get site identifier from URL path
 var p = document.location.pathname;
      if (p.indexOf("/DE/de/") > -1) return 358;
 else if (p.indexOf("/GB/en/") > -1) return 357;
 else if (p.indexOf("/AU/en/") > -1) return 517;
 // otherwise from domain
 var h = document.location.hostname;
      if (h.indexOf(".de") > -1) return 358;
 else if (h.indexOf(".co.uk") > -1) return 357;
 else if (h.indexOf(".com.au") > -1) return 517;
 else if (h.indexOf("www.saabterms.com") > -1) return 517;
 else {tc_logging_active = false; return 101;} // unknown site
}