function ccinfo(){
	if (document.srcid){
		srcid=document.srcid;
		}
	else{
		srcid="";
		foundSrcid=document.location.search.match(/srcid=([^&]+)/);
		if (foundSrcid){
			srcid=foundSrcid[1];
			}
		}
	from="";
	foundFrom=document.location.search.match(/from=([^&]+)/);
	if (foundFrom){
		from=foundFrom[1];
		}
	if (srcid){
		here=window.location.hostname;
		here=here.replace(/^www\./,"");
		here=here.replace(/^new\./,"");
		arrival=false;
		if (from != here && document.isHomePage){
			trackbug.src="http://www.lerichelieuhotel.com/trackbug.cgi?srcid="+srcid;
			}
		for (linkidx=0;linkidx<document.links.length;++linkidx){
			hash=document.links[linkidx].hash;
			hash=hash.replace(/^#/,"");
			for (hostidx=0;hostidx<ccinfo_hosts.length;++hostidx){
				linkhost=document.links[linkidx].hostname;
				plainhost=ccinfo_hosts[hostidx];
				wwwhost="www."+plainhost;
				if (linkhost == plainhost || linkhost == wwwhost){
					search=document.links[linkidx].search;
					search=search.replace(/srcid=[^&]+/,"");
					search=search.replace(/^\?&/,"?");
					search=search.replace(/&$/,"");
					leader="";
					if (search.length==0){leader="?"};
					if (search.length>1){leader="&"};
					document.links[linkidx].search=search+leader+"srcid="+srcid+"&from="+here;
					break;
					}
				}
			if (hash.length){
				document.links[linkidx].hash=hash;
				}
			}
		}
	}
