This reply has been reported for inappropriate content.
The answer is kind of contained in your question :?
Put the top slice in #header with a height no repeat.
Put the second slice in #content repeat-y.
Put the third slice in #footer with a height and no-repeat.
Wasn’t that what you were thinking anyway?