[jQuery] Declare a variable and use it with .css()

[jQuery] Declare a variable and use it with .css()


Hey everyone. I'm having some trouble with a menu system wip.
I'm trying to declare a variable for a css property's value, and then
be able to preform mathematical operations on that value for other
objects. (Does that make sense?)
For instance:
var color1 = '255';
$('#menu li.parent').css({'border-right':'3px solid rgb('color1',
0,0)'})
    .next('ul').css({'border-right':'3px solid rgb('modifiedcolor1here',
0,0)'});
what i've run into difficulty with is declaring the variable in such a
way that it is usable with the .css() .
any ideas?
thanks for the help,
chris truett