If you are using the APP engine then there is a relatively simple way to check the page side, using Javascript FOM (formatting.currentPage.pageNumber % 2). This expression will return a 0 or 1 if even/odd.
For FOSI, I'm not sure you can achieve this without some pretty fancy tricks. FOSI supports usual requirements via odd/even page layouts and "start new odd/even page" functionality.