function evColorFG(event)
{
  var ret = arrEvColorFG[event];
  return ret ? ret : "black";
}

function evGColorFG(event)
{
  var ret = arrEvGColorFG[event];
  return ret ? ret : "black";
}

const arrEvGColorFG = {
1:"yellow",
2:"black",
3:"yellow",
4:"black",
5:"lightgreen",
6:"black",
7:"red",
8:"black",
9:"white"};

const arrEvColorFG = {
1:"lightgreen",
2:"gray",
3:"yellow",
4:"yellow",
6:"lightgreen",
9:"gray",
10:"lightgreen",
17:"yellow",
22:"lightgreen",
23:"lightgreen",
24:"lightgreen",
25:"brown",
26:"red",
27:"red",
28:"turquoise",
29:"brown",
30:"lightgreen",
31:"lightgreen",
32:"blue",
33:"red",
35:"lightgreen",
36:"gray",
37:"yellow",
38:"gray",
39:"lightgreen",
40:"yellow",
41:"yellow",
42:"gray",
44:"yellow",
45:"yellow",
46:"yellow",
47:"lightgreen",
58:"yellow",
69:"gray",
70:"gray",
71:"yellow",
72:"lightgreen",
74:"yellow",
75:"yellow",
76:"yellow",
77:"yellow",
78:"lightgreen",
79:"yellow",
80:"lightgreen",
82:"yellow",
83:"lightgreen",
90:"gray",
91:"lightgreen",
95:"yellow",
96:"yellow",
97:"yellow",
98:"yellow",
99:"yellow",
109:"turquoise",
110:"turquoise",
111:"lightgreen",
112:"gray",
113:"lightgreen",
114:"gray",
117:"turquoise",
118:"yellow",
119:"yellow",
121:"yellow",
122:"yellow",
123:"lightgreen",
126:"yellow",
127:"lightgreen",
130:"lightgreen",
131:"turquoise",
135:"gray",
136:"lightgreen",
137:"yellow",
138:"yellow",
139:"yellow",
141:"yellow",
142:"turquoise",
143:"yellow",
144:"yellow",
145:"yellow",
146:"yellow",
147:"yellow",
148:"lightgreen",
149:"yellow",
150:"yellow",
151:"yellow",
152:"lightgreen",
153:"lightgreen",
154:"lightgreen",
155:"yellow",
156:"yellow",
157:"yellow",
158:"yellow",
159:"yellow",
160:"yellow",
161:"yellow",
165:"black",
187:"gray",
188:"lightgreen",
189:"yellow",
190:"yellow",
191:"lightgreen",
192:"yellow",
193:"lightgreen",
194:"yellow",
195:"lightgreen",
196:"yellow",
197:"lightgreen",
198:"gray",
199:"lightgreen",
200:"lightgreen",
201:"lightgreen",
202:"gray",
203:"gray",
204:"gray",
205:"gray",
206:"yellow",
211:"gray",
212:"gray",
213:"lightgreen",
214:"yellow",
215:"yellow",
217:"yellow",
218:"yellow",
219:"yellow",
220:"yellow",
221:"yellow",
222:"yellow",
224:"black",
225:"black",
226:"lightgreen",
227:"turquoise",
228:"gray",
229:"yellow",
230:"yellow",
231:"yellow",
241:"lightgreen",
242:"turquoise",
243:"lightgreen",
244:"turquoise",
250:"gray",
251:"lightgreen",
252:"gray"}