document.observe("dom:loaded", function() {
	top_info = $('top_info');
	if(top_info) {
		top_info.select('.tab').each(function(tab) {
			tab.down('a').observe('click', change_top_info);
		});
	}
});

function change_top_info(event) 
{
	event.stop();
	action = event.element();
	tab_class = action.readAttribute('href').substr(1);
	$('top_info').writeAttribute('class', tab_class);
}

