$(document).ready(function() {
	$('a').live('click', function() {
		var mydomain 	= new RegExp(document.domain, 'i'); 
		var link_href	= $(this).attr('href');
		if(link_href.indexOf('http://') > -1 && !mydomain.test(link_href)) {
			var actionName = '';
		    if(link_href.indexOf('www') > -1) {
				actionName = link_href.replace('http://www.', '');
		   } else {
				actionName = link_href.replace('http://', '');
		   }
	
	       recordOutboundLink(this, 'Outbound Links', actionName);
		
	       return true;
		}
	});
});

if(typeof jQuery != 'undefined') {
	$(window).load(function() {
		$('#insightsPrintThisPage').click(function() {
			window.print();
		});
	});
}

function recordOutboundLink(link, category, action) {
  try { 
    var pageTracker=_gat._getTracker("UA-9130791-1");	
    pageTracker._trackEvent(category, action);
	
  }catch(err){}
}
