
function addGoal(g,c)
{
  goal[goal.length] = {title: g, complete: c};	
}

var goal = [];

bfp=38.6;

list101=14;  /* was 6 at beginning of 2010 */
pages=323 /*WftL*/
+ 174 /*FC:Lent*/
+ 102 /*GC*/
+846 /*JS+MN*/
+ 371 /*SK */
+ 374 /*DM*/
+ 372 /*BR*/
+ 424 /*DB*/
+ 479 /*PG*/
+ 452 /* WN*/
+ 541 /* SF*/
+545 /*TC*/
+438 /*Changes*/
+367 /*Nation*/
+529 /*tGK*/
+ 341 /*tCFT*/
+ 0 /* placeholder*/;
lorien=462;
rauros=54;


addGoal("Read 5000 pages", pages/50);

addGoal("Finish 20 101List items", list101*5);
addGoal("- Walk Rivendell to Lorien", lorien*100/462);
addGoal("- Walk Lorien to Rauros", rauros*100/389);




document.write("<center><b>2010 Goals</b></center><br>");
document.write("<table width=162>");
for (var i = 0; i <goal.length; i++)
{
  document.write("<tr><td><font size=1><b>" + goal[i].title + "</b></font></td><td>");
  if (goal[i].complete > 100) document.write("<font size=1 color=purple>");
  if (goal[i].complete == 100) document.write("<font size=1 color=blue>");
  if ((goal[i].complete >=80) && (goal[i].complete < 100)) document.write("<font size=1 color=green>");
  if ((goal[i].complete >=60) && (goal[i].complete < 80)) document.write("<font size=1 color='#008888'>");
  if ((goal[i].complete >=40) && (goal[i].complete < 60)) document.write("<font size=1 color='#88aa00'>");
  if ((goal[i].complete >=20) && (goal[i].complete < 40)) document.write("<font size=1 color=orange>");
  if ((goal[i].complete >=10) && (goal[i].complete <20)) document.write("<font size=1 color=magenta>");
  if (goal[i].complete < 10) document.write("<font size=1 color=red>");
  document.write(goal[i].complete.toFixed()+"%</font></tr>");
}
document.write("</table>");