Using this script to make a style object of all the inherited etc styles.
var style = css($(this)); alert (style.width); alert (style.text-align);
Use brackets:
var notTheFlippingStyleObject = { 'a-b': 1 }; console.log(notTheFlippingStyleObject["a-b"] === 1); // true
More info on objects: MDN
NOTE: If you are accessing the style object, CSSStyleDeclaration, use must camelCase to access it from javascript. More info here