added different navigation javascript (via Thomas)