I hate JavaScript. It’s the bane of my existence. Mainly, I hate it because it’s implemented differently in every browser, and debugging the scripts is absolute torture. What makes it worse is that many people don’t follow the most basic best practices that have been established over time. To help eliminate this problem, I will link to the article <a href=http://www.webcoder.com/howto/article.html?number=14,length=4,demo=0,source=0″>Object detection, not browser detection. If you program in JavaScript, read it.