﻿$(document).ready(function() {

	function trackClick(href, name) {	
		if(document.images){
			var myVar = "/TrackClick.aspx?redirect="+href+"&clickref="+name+"&origin="+document.location;
			(new Image()).src=myVar;
		} 
		return true;
	}
	
	$("a").click(function(){
		// event.preventDefault(); //stop link whilst debug
		trackClick(this.href, $(this).attr("name"));
	})

 });

