// Fucntion which handles sub item show/hide.
function s(element)
{
	// Get all divs in the document
	var subs = document.getElementsByTagName('ul');
	var x = 0, d;
	
	while(d = subs.item(x++)) 
	{
		// If this div is a sub item
		if (String(d.id).indexOf("sub") != -1)
		{
			// If it's the one we clicked
			if (d.id == element)
			{
				// Show or hide it depending on current state
				d.style.display = (d.style.display != 'block') ? 'block' : 'none';
			}
			else
			{
				// Hide all the others
				d.style.display = 'none';
			}
		}
    }
}
