window.onload = function(){
	
	var pathname = (window.location.pathname.match(/[^\/]+$/)[0]);
	
	$('a').each(function() {
		if ($(this).attr('href') == pathname)
		{
			$(this).addClass('current');
		}
		else if ($(this).attr('href') == pathname + '?s=1')
		{
			$(this).addClass('current');
		}
    });
}

