Index: trunk/src/scriptbuilder/structures/SimulationScript.java
===================================================================
--- trunk/src/scriptbuilder/structures/SimulationScript.java	(revision 169)
+++ trunk/src/scriptbuilder/structures/SimulationScript.java	(revision 182)
@@ -33,20 +33,15 @@
 
     /**
-     * All default options for GUI colorings of incidents.
-     */
-    public static final Color[] incidentColors =
-    {
-        Color.BLACK,
-        Color.BLUE,
-        Color.RED,
-        new Color(0x38, 0x5E, 0x0F),
-        new Color(128, 0, 128),
-        Color.MAGENTA,
-        new Color(0x23, 0x6B, 0x8E),
-        Color.ORANGE,
-        new Color(0x60, 0x33, 0x11),
-        Color.GRAY
-    };
-
+     * Strings to show in the incident color combo box.  Last item should be black,
+     * which will be used if invalid color is provided to lookupColor().
+     */
+    public static final String[] colorNames = {"BLUE", "RED", "CYAN", "GREEN", 
+        "ORANGE", "MAGENTA", "YELLOW", "BLACK"};
+    /** 
+     * Allowed color choices for incident display. 
+     * These colors must match the items in colorNames.
+     */
+    public static final Color[] incidentColors = {Color.BLUE, Color.RED, Color.CYAN, 
+        Color.GREEN, Color.ORANGE, Color.MAGENTA, Color.YELLOW, Color.BLACK};
     /**
      * The file to which this script will be saved.
@@ -428,4 +423,24 @@
         return count;
     }
-
+    
+    /** Given a color, find its index in the incidentColors.
+     * @param color a java color 
+     * @return the index of color in incidentColors, or last index if color isn't 
+     * in incidentColors.  The last item in incidentColors should be black.
+     */
+    public static int lookupColor(Color color)
+    {
+        int idx = 0;
+        // search color array for target
+        while(idx < incidentColors.length && !incidentColors[idx].equals(color))
+        { 
+            idx++;
+        }
+        // if color not found, return index of last item.
+        if (idx == incidentColors.length) 
+        {
+            return idx-1;
+        }
+        else return idx;
+    }
 }
