If I'm reading that right, it's a pretty straightforward solution. Basically, you've got two things you want to happen in a certain order when the door opens, but when you close the door, the two things need to happen in reverse order, correct?
If so, take a look at this:
The key to it all is the little cluster of three repeaters on the right. What those do is make it so that there's a 1 tick delay before the ON signal is sent on, but a 5 tick delay before it's turned back off.
Here's what happens when I flip the lever on the right:
1) The lever activates the redstone leading to all the repeaters.
2) The lone 1-tick repeater activates, turning off the torch and retracting the piston connected to the wood block.
3) The 3-tick repeater activates, extending the piston connected to the stone block.
4) The 5-tick repeater line activates, but no change happens because the output is already on because of the 1-tick repeater from step 2.
Now, when I flip the lever again:
1) The redstone leading to the repeaters turns off.
2) The 1-tick repeater turns off, but the redstone output
stays on, because the 5-tick repeater line is still on.
3) The 3-tick repeater turns off, retracting the piston connected to the stone block.
4) The 5-tick repeater line turns off, turning the torch back on and extending the piston, pushing the wood block back into the initial position.
Is that what you were trying to do?