document.addEvent('domready', function(e) {
	var loc = window.location.href;
	if (window.location.href.match('/$')) {
		loc += 'index.html';
	}
	
	var i = 0;
	$$('a').each(function(elm) {
		if (loc.match(elm.get('href') + '$')) {
			elm.addClass('active')
		}
	});
});

