I'm trying to hide a div layer in Netscape ---

Here's my js:
Code:
if (document.layers)
{
	document.layers['test'].visibility='hide'
}
then in my stylesheet:
Code:
#test { visibility:visible;}
But this isn't working.

Any help would be great, thanks!