the pano div should be added to the actual page.
edit:
<div id="wagmp_map_2" style="width: 1000px; height: 800px;"></div>
to:
<div id="wagmp_map_2" style="width: 1000px; height: 800px;"></div>
<div id="pano" style="width: 300px; height: 300px;"></div>