     _str.replace( /((-)([a-z])(\w))/g, ($0, $1, $2, $3, $4)->
       $3.toUpperCase()+$4
     )
-
-
+  
+  ###
+  Decamelizes string (used for js property to css property conversion)
+  ###
+  _deCamelize: (_str)->
+    _str.replace( /(([A-Z])(\w))/g, ($0, $1, $2, $3)->
+      '-'+$2.toLowerCase()+$3
+    )
+  
   ###
   IE version of _setElementStyle
   ###

  ###
  getStyle: (_id, _key, _noCache)->
    _cached = @_styleCache[_id]
    if _cached[_key] == undefined or _noCache
      if _key == 'opacity'
        _value = @getOpacity(_id)

    if _cached == undefined
      @_initCache( _id )
      _cached = @_styleCache[_id]
    _key = @_deCamelize( _key )
    unless _value == _cached[_key]
      _cached[_key] = _value
      if _noCache
