"circleLayer" is defined inside conditionals, and none of your conditionals test for FireFox.
You only test for Netscape and Internet Explorer, based on deprecated DOM objects (document.layers).
Your page is also missing a DOCTYPE declaration, so no test is really going to be valid, and no code will be dependable.
Start by fixing the DOCTYPE issue, then you may not need to do a browser test.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Just start by researching "doctype". Learn what a doctype is, and which one you should use.
After you've got that figured out, adjust your code accordingly. You may find you don't need to test for different browsers at all.
If you do, find a better, more thorough "browser sniffer" script.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37