
$(function(){
	$page = window.location.pathname;

	if(!$page) {
		$page = '/';
	}
	$('#topnav li a, #bottomnav li a').each(function() {
		var $href = $(this).attr('href');
		if ( ($href == $page) || ($href == '') ) {
			$(this).addClass('on');
		} else {
			$(this).removeClass('on');
		}
	});
});

