Index: trunk/webapps/einotebook/scripts/LoadEvents.js
===================================================================
--- trunk/webapps/einotebook/scripts/LoadEvents.js	(revision 468)
+++ trunk/webapps/einotebook/scripts/LoadEvents.js	(revision 515)
@@ -42,7 +42,11 @@
                         if (incidents.get(incidentNum) == undefined)
                         {
+                            // prepare title field
                             incidentTitle =  currEvt.childNodes[child].textContent;
+                            // select a color from the pallette
+                            var palletteSize = incidents.colorpallette.length;
+                            var currColor = incidents.colorpallette[incidents.size()]; // modulo palleteSize
                             // Construct the incident
-                            var theIncident = new Incident(evtTime, incidentNum, incidentTitle, "");
+                            var theIncident = new Incident(evtTime, incidentNum, incidentTitle, "", currColor);                        
                             // Add the incident to the list of incidents
                             incidents.add(theIncident);
