Problem with simple javascript dom function!

Alastair Moore <[email protected]>
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
Hello all,

I'm working on this site - http://dev-duo2.kozmo.co.uk/

If you click on a submenu option, for example 'Background' that appears 
under the "about us" menu, then it is then showed by a change of class 
(class="sub-menu show"). When the user rolls over another menu item, for 
example Our Services, the About Us submenu is still showing. I am trying 
to hide this submenu on the user rolling over a different menu item.

I'm getting a bit stuck already though! In Firefox, I get an error of

Error: mainMenuItems has no properties
Source File: http://dev-duo2.kozmo.co.uk/library/js/menu.js
Line: 16

when any page loads.. the html validates and the "main-menu" id exists. 
Does anyone have an idea why it might be generating that error?

Many thanks in advance,

Alastair


Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.