Does anyone know some code that will determine the screen resolution in VBScript?

I've got a navbar on my web page and the alignment of some of the links are off with some resolutions. Here is a sample of what I need:

Code:
If ScreenResolution > "800 X 600" Then Document.Write "<BR>"
I don't really have any VBScript experience, but I know it better than Javascript. I'll take any language I can get.