I recommend combining all these blocks into the same document.ready function.

For bonus points, a jQuery closure may be best suited here.