// no longer using this -- we only want to track CPC contact form information

jQuery(function($) {
	// for email links, track events before executing default link action
	$("a[href^='mailto'], area[href^='mailto'], a[href^='https://mail.google.com']").click(function(e) {
		if(this.href.indexOf('https://') != -1) {
			// Gmail + Chrome messing up my web page.
			if($(this).text()) {
				var emailAddy = $(this).text();
			} else if($(this).attr('alt').length) {
				var emailAddy = $(this).attr('alt');	
			} else {
				var emailAddy = 'unknown';
			}
		} else {
			var emailAddy = this.href.split("ailto:")[1];
		}
		_gaq.push(['_trackEvent', 'emailClick', emailAddy]);
		//$.ajax({url: "/GA_track.php?event=emailClick&eventValue="+emailAddy});
	});
});

