var articles = new Array('america_motorsports','racing_development','motorsports_in_america','nascar_timeline');

function hideAll() {
	for (i=0;i<articles.length; i++) {
		$(articles[i]+'_al').style.display = "none";
		Element.classNames(articles[i]+'_bn').remove('active');
	}
}

function initHistory() { 
	var h = document.location.href.split('#');
	hideAll();
	if (h.length==1 || h[1]=="")
		showArticle('america_motorsports');
	else showArticle(h[1]);
}

function showArticle(s) {
	hideAll();
	$(s+'_al').style.display = "block";
	Element.classNames(s+'_bn').set('active');
}
