Out of curiosity, why not leave the variable scoped to the $.each function?  This keeps it tightly bound to the context it's used in.