document.observe("dom:loaded", function() {

function detectPage() {
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	 return sPage;
}


function currentLink(linkref) {
	var sPath = linkref;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	 return sPage;	
}

var attornys = $$('.al');
attornys.each(function(item){
	var page = detectPage();
	var linkref = currentLink($(item).href);
	//alert(linkref);
	//alert($(item).href);
	if(linkref == page) {
		$(item).addClassName('current');
	}
});

});
