function updateOutLink (a)
{
	var href = a.getAttribute('href');
	a.onclick = function ()
	{
		var t;
		try
		{
			t = href.replace('http://', '');
			pageTracker._trackPageview(t);
		}
		catch (ex)
		{
		}
	};
}

function updateOutLinks ()
{
	var l = document.getElementsByTagName('a');

	for (var i = 0; i < l.length; i++)
	{
		updateOutLink(l[i]);
  }
  return true;
}

// call updateOutLinks() on document load
if (window.addEventListener) {
  window.addEventListener('load', updateOutLinks, false);
} else if (window.attachEvent) {
  window.attachEvent('onload', updateOutLinks);
}
