$(document).ready(function() {
   $('#header ul li').children('a').each(
		function() {
			if ($(this).attr("href") == location.pathname) {	
				$(this).addClass('active');	
			}
		});
});
