function fixLayout() {
  eval(" \
    var page = document.getElementById('page');	\
    var navigation = document.getElementById('navigation'); \
    var contact = document.getElementById('contact');	  \
    var contactHeight = contact.offsetHeight; \
    var content = page.getElementsByTagName('div')[0]; \
    if (Math.max(content.offsetHeight-contactHeight, (navigation.offsetTop + navigation.offsetHeight)) > contact.offsetTop) { \
      contact.style.top = Math.max(content.offsetHeight-contactHeight, (navigation.offsetTop + navigation.offsetHeight)) + 'px'; \
      contact.style.height = contactHeight + 'px'; \
      navigation.style.height = (contact.offsetTop-navigation.offsetTop) + 'px'; \
    } \
    if ((content.offsetHeight < (contact.offsetTop + contact.offsetHeight)) || (page.offsetHeight < (contact.offsetTop+contact.offsetHeight))) { \
      content.style.height = Math.max(Math.max(document.body.clientHeight, document.documentElement.clientHeight), (contact.offsetTop + contact.offsetHeight)) + 'px'; \
      content.style.backgroundImage = \"url('images/blue-gradient.gif')\"; \
    } \
  ");

}
