 
     # Called when the browser does not support drag and drop
     fallback: ->
-      # TODO
-      @element.addClass "browser-not-supported"
-      @element.find(".message").removeClass "default"
-      @element.find(".message span").html "Your browser does not support drag'n'drop file uploads."
-      @element.append """Please use the fallback form below to upload your files like in the olden days.</p>"""
-      @element.append @getFallbackForm()
+      # This code should pass in IE6... :(
+      @element.className = "#{@element.className} browser-not-supported"
+
+      for child in @element.getElementsByTagName "div"
+        if /message/.test child.className
+          child.className = "message" # Removes the 'default' class
+          span = child.getElementsByTagName("span")[0]
+          span.textContent = "Your browser does not support drag'n'drop file uploads." if span
+          @element.appendChild createElement """<p>Please use the fallback form below to upload your files like in the olden days.</p>"""
+          continue
+      
+      @element.appendChild @getFallbackForm()
     
 
     ###

  jQuery.fn.dropzone = (options) ->
    this.each -> new Dropzone this, options

  jQuery -> jQuery(".dropzone").dropzone()






  #
  # If the dropzone is already a form, only the input field and button are returned. Otherwise a complete form element is provided.
  getFallbackForm: ->
    # This code has to pass in IE6 :(
    fields = createElement """<div class="fallback-elements"><input type="file" name="#{@options.paramName}" multiple="multiple" /><button type="submit">Upload!</button></div>"""
    if @element.tagName isnt "FORM"
      form = createElement("""<form action="#{@options.url}" enctype="multipart/form-data" method="post"></form>""")
      form.appendChild fields
    else
      # Make sure that the enctype and method attributes are set properly
      @element.setAttribute "enctype", "multipart/form-data"
      @element.setAttribute "method", "post"
    form ? fields

  # Activates all listeners stored in @listeners
  setupEventListeners: ->
