/*
This code is based on a code example from the article "Javascript navigation - cleaner, not meaner" by Christian Heilmann
URL: http://www.evolt.org/article/Javascript_navigation_cleaner_not_meaner/17/60273/index.html
Modified by Christa Dickson
*/

function show(s) {
	var id = s.href.match(/#(\w.+)/)[1];
	document.getElementById(id).style.display = 'block';
	s.innerHTML = "Hide inventory &uarr;";
	s.onclick = function(){ hide(this); return false; }
}

function hide(s) {
	var id = s.href.match(/#(\w.+)/)[1];
	document.getElementById(id).style.display = 'none';
	s.innerHTML = "See inventory &darr;";
	s.onclick = function(){ show(this); return false; }
}
document.write("<style type=\"text/css\"> .hidden{ display: none; } </style>");