var start = (new Date()).getTime();
var data = [[0,0]];

$(document).ready(function () {
	var ploptions = { 
		points: {show: true},
		lines: {show: true}
	};
	$('body').click(function () {
			var diff = ((new Date()).getTime() - start) / 1000;
			data[data.length] = [diff, data.length];
			$.plot($('#graph'), [data], ploptions);
	});	

	$('.tohide').hide();
	$('.toshow').show();
	$.plot($('#graph'), [data], ploptions);
});
