Flexibility in page layout (linked references on top)

There is no page, there are only many divs. The code moves one of them at the bottom of its parent. Please understand that this is a hack, not how one would do it in own html.