/* =====================================================================
 * ===============================sophus3===============================
 * logging script 'logging.js'

 * for Opel DE
 
 * Issued on 16/11/2009
 * Copyright (c) Sophus Ltd All rights reserved. Patent Pending.
 * http://www.sophus3.com
 * =====================================================================*/
 
if (typeof tc_logging_active == 'undefined') tc_logging_active = true;
// If you want to switch off the tracking of the site use the following line instead
// tc_logging_active = false;

// adds the query string to page aliases
if (typeof tc_page_alias != 'undefined') {
	if (location.search != null && location.search.length > 1) {
		if (tc_page_alias.indexOf('?') == -1) {
			tc_page_alias = tc_page_alias + location.search;
		}
		else {
			tc_page_alias = tc_page_alias + "&" + location.search.substring(1);
		}
	}
}

// required configuration parameters
tc_site_id = 61;
tc_server_url = "gm.touchclarity.com";
tc_referrer = tc_get_param("referrer");
tc_log_path = "/content_data/GME/019/common/touchclarity";
document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='"+tc_log_path+"/logging-code.js'></scr"+"ipt>");
 
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 "";
} 

/* =================================END====================================*/