Collision detection; improved Firefox rendering