New mainchart

re-wrote various parts on both the server and the pages to achieve fully adaptive dynamic explorer on the main chart.