javascript to hide nav options in secure photo view