jQuery().ready(function(){	

	var path = location.pathname.substring(1);
	
	if (path == ""){
		path = "/";
	};
	
 	$('#nav ul a[@href$="' + path + '"]').addClass('current');

	});
