You can use javascript in a accessible solution. The "key" is not to rely on the javascript for the function/site to work. The site should "gracefully degade" if javascript is turned off. Much more important (in my experience) is the structure/order of the generated code, that you tag different sections of your page with logical information describing the section, last modified information in links (title attributes, alt attrbutes) and so on....
Javascript isn't all evil, but should be used in such way that it doesn't break the site if turned off in the user-agent.
You can use javascript in a accessible solution. The "key" is not to rely on the javascript for the function/site to work. The site should "gracefully degade" if javascript is turned off. Much more important (in my experience) is the structure/order of the generated code, that you tag different sections of your page with logical information describing the section, last modified information in links (title attributes, alt attrbutes) and so on....
Javascript isn't all evil, but should be used in such way that it doesn't break the site if turned off in the user-agent.