This fix should work in IE and NetScape. In javascript, to find out if two things are equal, you have to use a special comparison operator: "==". A plain equal sign assigns values, and says "this is that" but a double equal sign asks "is this that?" So your code works if'n you say

if (screen.width==800){whatever}