I'm trying to export an indesign document which has been made in different layouts(columns). The purpose for this is to be able to swipe through articles (right/left) and through pages within the article (down/up). I want to do this for baker framework (HPUB). I've exported the articles with its pages separately, article by article with a vertical swipe for web. And I've also exported the article main pages for HPUB with a horizontal swipe navigation. Then I have replaced the HPUB pages with the articles' htmls. Now I know I am dealing with a JavaScript problem. How can I make a .js file in wich vertical swipe navigation works for the article's pages and the horizontal swipe to navigate through the article's main page?