var path = window.location.pathname;
	path.match("([^/]+)$");
var file = RegExp.$1;

if( !file ){ file = 'index.html';}

var swapLinks = {
	'#navbar a' : function(el){
		var href = el.getAttribute('href', 2);
		if(href==file){
			el.className = "active";
			el.removeAttribute('href');
		}
	}
};
Behaviour.register(swapLinks);
