Other [JS / YUI / Pure] Onclick event working and not working on the same code

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[JS / YUI / Pure] Onclick event working and not working on the same code

I have this page where I have a menu (using Pure) and I have some links taht when clicked run a javascript to change a picture on the page. For some reason, when the code is inside the Pure menu, it does not run. When it is outside the menu it runs without a problem.

Any ideas why this is happening or any tips for a more elegant solution?