Finished script to import galleries menu.