/* Sophus3 logging request. http://www.sophus3.com
 * Site identifier code for Opel Switzerland
 * Copyright (c) Sophus Ltd All rights reserved. Patent Pending.
 
 * Issued on 08/02/2008
 */

if (typeof tc_logging_active == 'undefined') 
	tc_logging_active = true;


// required configuration parameters
tc_site_id = 98;
tc_referrer = tc_get_param("referrer");
tc_server_url = "gm.touchclarity.com";
tc_log_path ="/sophus";
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 "";
}