p.head("</style>");
p.head(" <script type='text/javascript'>");
p.head("//<![CDATA[");
p.head("function logClick(event){");
p.head(" $('#clickInfo').text(event.data.x+','+event.data.y);");
p.head("}");
p.head("function hover(e){");
p.head(" $('#hoverInfo').text(e.data.item.series.label+' ['+e.data.x+','+e.data.y+']');");
p.head("}");
p.head("function clear(){");
p.head(" $('#hoverInfo').text('');");