I figure it out a few days ago. What I did was reference the color explicitly in the code. So this line:

Code:
color = get_current_style(v[i],"background-color","transparent");
bk = get_current_style(v[i].parentNode,"background-color","transparent");
Changed to this:

Code:
color = get_current_style(v[i],"background-color","transparent");
        bk = '#FFFFFF';
And that solved my problem.