Index: trunk/webapps/einotebook/script/script.js
===================================================================
--- trunk/webapps/einotebook/script/script.js	(revision 415)
+++ trunk/webapps/einotebook/script/script.js	(revision 418)
@@ -35,47 +35,11 @@
 function highlightLatestEvent() 
 {
-	var currentEventArray = Script.events.getLastExecutedEvent(readCookie("time"));
+    Script.events.setEmphasis();  // Set text colors on all events
 
-	// IF the old event is has not been set THEN
-	if (typeof highlightLatestEvent.oldEventArray == 'undefined')
-	{
-		highlightLatestEvent.oldEventArray = []; /* set up array of old events */
-		var currentEvent = new Object(); 
-		highlightLatestEvent.oldEventArray.push(currentEvent);
-		highlightLatestEvent.oldEventArray[0].id = Event.invalidID;
-	}
-
-	// IF a current event exists THEN
-	if (currentEventArray !== null)
-	{
-		var found = false; /* check if a current event is found in the old event array */
-
-		/* traverse the array of current event to check 
-		if there is event already in the old event array */
-		// IF there is a new current event THEN	
-		for (j=0; j<highlightLatestEvent.oldEventArray.length; j++) {
-			var oldEvent = highlightLatestEvent.oldEventArray[j];
-			found = false;
-			for (i=0; i<currentEventArray.length; i++) {
-				var currentEvent = currentEventArray[i];
-				if (oldEvent.id === currentEvent.id)
-				{
-					found = true;	
-					break;		
-				} 
-			}
-			/* unhighlight all the events that are no longer current */
-			if (!found && oldEvent.id !== Event.invalidID) {
-				oldEvent.unhighlight();
-			}		
-		}
-
-		/* highlight the current event in the array */
-		for (i=0; i<currentEventArray.length; i++) {
-			currentEventArray[i].highlight();
-		}
-
-		/* update the old events array with current event array */
-		highlightLatestEvent.oldEventArray = currentEventArray;
+    var currentEventArray = Script.events.getLastExecutedEvent(readCookie("time"));
+	/* highlight the items in the current event array */
+    for (i=0; i<currentEventArray.length; i++) 
+    {
+		currentEventArray[i].highlight();
 	}
 
