$(function () {
	// add styles for forms
	$('input[type=text], textarea').addClass('textfield');

	// this would set up typeface.js on the navbar
	// which we could use if it supported hover styles
	// $('#mainnav li a').addClass('typeface-js');

  // GA tracking on non-disabled external links
	$("a[href^=http]:not(.disabled)").click(function(){ 
	  if(pageTracker) pageTracker._trackPageview('/outgoing/'+ $(this).attr('href'));
	});
	
	// stop disabled links doing anything
	$('a.disabled').click(function() { 
	  return false; 
	});

});
