$(function() {
			
	$('body').addClass('hasjs');
	
	// switch link attribute rel='external' to target='_blank'
	$('[rel=external]').removeAttr('rel').attr( 'target', '_blank' ); 
	
	// put in the 'last' class on the ul. 
	
	$("#subnav ul:first-child").find("li:last-child").addClass("last");
	$("#subnav li").filter(":has(ul)").find("li").removeClass("last");
	
});
