There could be other problems, but assuming everything else works, it looks like a simple case of improperly nested delimiters ( " and ', in this case).
If you do this:
Code:
menu2[0]='<a href=javascript:ajaxpage('home.htm', 'content')>Ministry</a>'
When the script parser gets to the red highlighted ' mark, it thinks it is at the end of the menu2[0] string, but there is stuff after that doesn't fit into what it is expecting to see next, so it really gets confused and gives up.
Now, nested delimiters may be escaped (ex: \'), and you have both " and ' to work with, and I like to delimit the href, and I don't like the results of the javascript: convention in certain cases, so I would write it like so:
Code:
menu2[0]='<a href="home.htm" onclick="ajaxpage(this.href, \'content\');return false;">Ministry</a>'
Bookmarks