Restore functionality broken in pull request #245

fix typo

fix failure to act on item selection with root person drop down menu

(re) fixed previous/next arrows on chart in module

Tidied up JS formatting

Hourglass chart now passes HTML5 validation.

Standardised html for popup menus on pedigree & hourglass charts
so the same CSS can apply to both

fix 1.5.3 pedigree chart bug whereby the popup menu overlays the trigger arrow on certain layouts preventing the menu from being hidden

... and animate the menu show/hide

Remove debug code and add missing width units

rethought pedigree chart root person menu popup - now uses CSS for positioning - improves visual effect of popup when layout is "oldest at bottom"

fix 1.5.3 pedigree chart bug whereby the "goto previous generation" arrows are not shown for oldest at top/bottom layouts

fix 1.5.3 pedigree chart bug whereby expanded boxes or popup menus sometimes "underlay" rather than overlay other boxes

for "oldest at top" layout only generate "goto previous generation" code where necessary