function showhide(tid, self)
{
	var iClass = document.getElementById(tid);
	var str = new String(document.location);
	
	if(iClass.className == 'hide')
	{
		iClass.className = "show";
		self.src = 'images/showhided.png';
		if(str.substr(-6) == "#dirsb")
			document.location = str.slice(0, (str.length - 6)) + '#dirsb';
		else
			document.location += '#dirsb';
	}
	else
	{
		iClass.className = "hide";
		self.src = 'images/showhideu.png';
		if(str.substr(-6) == "#dirsb")
			document.location = str.slice(0, (str.length - 6)) + '#dirsb';
		else
			document.location += '#dirsb';
	}
}
