-class_body     = 'choco-body'
-class_error    = 'choco-error'
-class_hover    = 'choco-hover'
-class_item     = 'choco-item'
-class_loading  = 'choco-loading'
-class_selected = 'choco-selected'
-class_show     = 'choco-show'
+choco = 'choco'
+class_body     = "#{choco}-body"
+class_error    = "#{choco}-error"
+class_hover    = "#{choco}-hover"
+class_item     = "#{choco}-item"
+class_loading  = "#{choco}-loading"
+class_selected = "#{choco}-selected"
+class_show     = "#{choco}-show"
 
 class Chocolate
+
   existActions = ['next', 'prev', 'close']
 
   env = {}


      if chocolate.options.actions[container] is 'close'
        addHandler chocolate[container], ['mouseenter', 'mouseleave'], ->
          toggleClass chocolate.overlay, class_hover, '.choco-close'




    data = chocolate.storage.add data
    return unless data

    data.thumbnail = beforeend(chocolate.thumbnails, mustache templates['thumbnails-item'], data)[0]
    addHandler data.thumbnail, 'click', -> chocolate.select data

    data.slide = beforeend(chocolate.slider, mustache templates['slide'], data)[0]
    data.slide.classList.add class_loading

    data.img = data.slide.querySelector ".#{choco}-slide-image"

    method = chocolate.options.actions.container if chocolate.options.actions.container in existActions

    if method
      addHandler data.slide, 'click', ->
        chocolate[method]()
      , ".#{choco}-slide-container"


    if image

