Every event belongs to a certain subset of a list of categories. The user can choose all the categories he's interested in by selecting them in the settings dialog. The selection is saved to the local storage using the System.Gadget.Settings functions.
There is also the possibility to add a registration date and an alert to an event in the xml file. If an alert message is provided, the event has a special alert icon and the user can see the alert message as a tooltip. The registration date is another special property of an event. If it is during the next three days, the event is displayed using an other color which should alert the user that the event is coming up soon.
The code is documented and straightforward. All content is shown using manipulation of existing html elements using the innerHTML property. Please refer to the online documentation on
http://gallery.live.com to learn the basics of javascript gadget programming.