added color object for more better use colors

fixed str2hex for non IE browsers
added #fff support to hex2rgb
added fixes for typing colors with alpha value=0||1