function statspro(key, vehicle, ci) {
	if(ci != null) {
		statspro('as24:' + key, vehicle + ':' + ci);
		return;
	}

	var cookie = document.cookie;
	var index = cookie.indexOf ('statspro=');
	if(index == -1) {
		var statspro_sid = Math.round(Math.random() * 10000000);
		document.cookie = 'statspro=' + escape(statspro_sid);
	} else {
		index = cookie.indexOf('=', index) + 1;
		var end = cookie.indexOf(';', index);
		if(end == -1) {
			end = cookie.length;
		}
		var statspro_sid = unescape(cookie.substring(index, end));
	}

	var statspro_url = 'http://harvest.statspro.nl/harvest?k=' + escape(key) + '&s=' + statspro_sid;
	try {
		if(top.document.referrer) {
			statspro_url += '&r=' + escape(top.document.referrer);
		}
	} catch(e1) {
		try {
			if(document.referrer) {
				statspro_url += '&r=' + escape(document.referrer);
			}
		} catch (e2) {
		}
	}
	if(document.location) {
		statspro_url += '&l=' + escape(document.location);
	}
	if(vehicle) {
		statspro_url += '&v=' + escape(vehicle);
	}

	document.write('<img src=' + statspro_url + ' width="1" height="1" border="0" alt="" title="" />');
}
