// Annual Weather data summary
//
// javascript to process dayfile.txt and produce the table layout
//
// Author: David A Jamieson (daj@findmyinbox.co.uk)
// Version: 1.1
// Updated: 7 March 2011
//
//
// You may use and modify this code freely, however your should continue to
// acknowledge the original author
//
var dayfile='/data/dayfile.txt';
var mn = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
var label_items = [
['maxtemp', 'Max Temp','Maximum Temperature (°C)',true],
['mintemp', 'Min Temp','Minimum Temperature (°C)',true],
['avgtemp', 'Avg Temp','Average Temperature (°C)',true],
['minmaxt', 'Min/Max Temp','Min / Max Temperature (°C)',true],
['rainfall','Rainfall','Rainfall (mm)',true],
['windgust','Wind Gust','Highest Wind Gust (mph)',true] ];
var tableDiv='#tableData';
var field_delimiter = ";";
var date_delimiter = "/";
// ----------------------------------------------------
// Nothing to edit below here
function drawCalendar(tableYear,whatdata){var tablelayout='