       overlay.fadeOut 'fast', ->
         overlay.remove()
     overlay.fadeIn('fast')
-    
+
   # Closes the top dialgo in the dialog stack
   closeTopDialog: ->
     if $('div.niftyDialog').length
       $('div.niftyDialog:last').data('closeAction').call()
-    
-  +
+

    else
      console.log "Must pass a 'name' option to the addBehavior method."
      false
    
  # Complete the opening of a dialog with the given HTML
  displayDialog: (dialog, content)->
    dialog.html(content)

      insertedDialog.css
        'margin-left': "#{x}px"
        'margin-top': "#{y}px"


    # Set the closing action for the inserted dialog to close dialog
    # and fade out the appropriate overlay
    insertedDialog.data 'closeAction', =>
      options.onClose.call(null, insertedDialog, options) if options.onClose?
