JENKINS-23867 - updating javascript to work with new core div layout in 1.572

Hi,

for jenkins core >= 1.572 we need to use document.getElementById('side-panel-content')
for compatibility with < 1.572 we need to fall back to using document.getElementById('navigation')

all feedback welcome, 
thanks
Geoff