You would need to move the code that builds the footer menu to different files. This could likely be done in several ways; probably the simplest would be to call the footer menu file from /includes/templates/your_template/common/tpl_main_page.php.