Event.observe(window, "load", function() {

	// Loop through each menu anchor, marking class=active if href==filename
	// (for the questions nav)
	var filename = document.location.pathname.split('/').pop();    
	$$('a').each(function(a) {
		
		if ( a.href.split("/").pop() == filename )
		{
			a.up().addClassName('active');
		}
		
	});
});

