function hideAllSections(){
	for (var i = sections.length - 1; i >= 0; i--){
		var section = sections[i];
		$("sub_"+section).hide();
	};
}
var sections = ["home","blog", "production", "programming", "experiments"];



hideAllSections();

for (var i = sections.length - 1; i >= 0; i--){
	var id = sections[i];
	var link_id = "link_" + id;
	var sub = $("sub_" + id);
	var link = $(link_id).firstChild;
	
	link["sub"] = sub;
	
	if(location.pathname.match(id)) sub.show();
	
	Event.observe(link, "mouseover", function(e){
		hideAllSections();
		this.sub.show();
	});
};
