//
// define the path to tracker.php
//

var clit_tracker_url = '/clit/tracker.php/';

function clit_tracker(url)
{
	//
	// now make our sjax(?) call
	//

}

//
// on page load add onclick handlers to all outnbound clicks we care about
//

$(document).ready(function(){

	//
	// assign click functions for any offsite links
	//

	$(".tracker").children("a").each(function() {
		$(this).click(function() { 
			$.ajax({
				url: clit_tracker_url + $(this).attr('href') + '?_clit_referrer=' + window.location.href,
				cache: false,
				async: false,
				success: function(html) { }
			});
		});
	});

	//
	// now track this page load
	//

	$.ajax({
		url: clit_tracker_url + window.location.href + '?_clit_referrer=' + document.referrer,
		cache: false,
		async: false,
		success: function(html) { }
	});
});


