Very basic version of navigation script

It needs polishing, but it's a start