/* Sophus3 logging request. http://www.sophus3.com
 * Site identifier code for Vauxhall UK
 * Copyright (c) Sophus Ltd All rights reserved. Patent Pending.
 *
 * Change the value of tc_logging_active to switch off logging on the site.
 * HitsIntoLeads extended version
 * Added referrer parameter to record referring domain
 * Issued on 15/09/2006
 */

if (typeof tc_logging_active == 'undefined') 
	tc_logging_active = true;


// required configuration parameters
tc_site_id = 23;
tc_server_url = "gm.touchclarity.com";
tc_referrer = tc_get_param("referrer");
tc_log_path = "/js";
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/logging-code.js'></scr"+"ipt>\n");

function tc_get_param(param) {
var query = document.location.search.substring(1);
var startPos = query.toLowerCase().indexOf(param.toLowerCase()+"="); 
if (startPos> -1) { 
startPos = startPos + param.length + 1; 
var endPos = query.indexOf("&",startPos); 
if (endPos == -1) endPos = query.length; 
return unescape(query.substring(startPos,endPos)).toLowerCase(); 
}
return "";
}

document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='http://gmuk.taggingserver.netmining.com/gm/'></scr"+"ipt>\n");
