Edit an event background color via javascript

Hello,
I’m new with dhtmlxScheduler. I want to change event background color via js. Any ideas? My goal is to set a color attribute in the events xml file like:

<event id='99' start_date='30-09-2011 12:15' end_date='30-09-2011 14:30' text='Lorem Ipsum' details='Lorem' bg_color='FF00FF'/>

Then access to bg_color attribute and change the event bg using this value. (changing the div with css class .dhx_cal_event .dhx_body)

Hello,

Scheduler recognizes and uses ‘color’ and ‘textColor’ properties and applies them:
color - background color of event
textColor - text color
You can set those values during initial loading and on the fly:
event.color = “blue”;
event.color = “#BABABA”;
Colors will be applied then current view is refreshed (or you switch to another view).

Kind regards,
Ilya