The InDesign Pages panel lets you manually rearrange the pages of your publication. To move pages around in the work document, it's just needed to click and drag the page icon(s) within the railroad —while paying attention to ‘shuffling’ effects! JavaScript allows you to automate the same handling, which can be very useful when you have a number of pages to switch.