If you want to do complicated stuff, a text adventure is really the way to go, and it is better to realise that sooner rather than later.
This page gives an idea of how to fake a gamebook with a text adventure:
viewtopic.php?f=18&t=4772There is a lot you can do in the way of menus using JavaScript. It is not trivial, but these pages might at least suggest what is possible.
viewtopic.php?f=18&t=5111viewtopic.php?f=18&t=4822viewtopic.php?f=18&t=5474