Hi Slav
Thank you very much indeed - you have saved me a lot of time. I could not get the javascript to run at first but then I noticed in another post of yours that square brackets are needed round the variables. This worked fine:
g_arSlideVars['my_var']=Math.round(g_arSlideVars['my_var']);
Thanks again and I think that courselab is fantastic!
Kevin