Just a heads up… in firefox jquery returns sub pixel values… which means you can get 12.5… which if you're expecting 12 on one side of the conditional will mess you up.