$(document).ready(function() {

	var extcid = $.getURLParam("ext_cid");
    // put all your jQuery goodness in here.
	if(extcid != null) {
		$("a").each(function()
		{ 
			url = String(this.href);
			res = url.search(/\?.+/);
			//alert(res);
			if (res != -1) {this.href = this.href+"&ext_cid="+extcid;}
			else {this.href = this.href+"?ext_cid="+extcid;}
		});
	}
	
});