Forum Moderators: open
What you should do instead is try to detect the objects themselves independent of what browser it is. In this scenario, that equates to something that gives you the available screen area, who cares what browser it is. The simplest example is
if (screen.width) { .... do something }
else { .... do something default-ish }