             Alchemy.overlayObserver "#alchemyOverlay"
             if options.image_loader
               Alchemy.ImageLoader '#alchemyOverlay img', {color: options.image_loader_color}
-            return
           error: (XMLHttpRequest, textStatus, errorThrown) ->
             Alchemy.AjaxErrorHandler $dialog, XMLHttpRequest.status, textStatus, errorThrown
-            return
           complete: (jqXHR, textStatus) ->
             Alchemy.Buttons.enable()
-            return
-        return
       close: ->
         $dialog.remove()
-        return
-    )
-    return
 
   # Closes the current dialog
   closeCurrentWindow: ->


    # Opens the trash window
    open: (page_id, title) ->
      $dialog = $('<div style="display: none" id="alchemyTrashWindow" />')
      $dialog.appendTo("body")
      $dialog.html Alchemy.getOverlaySpinner({width: 380, height: 450})
      Alchemy.TrashWindow.current = $dialog.dialog(
        modal: false
        width: 380
        minHeight: 450
        maxHeight: $(window).height() - 50
        title: title
        resizable: false
        show: "fade"
        hide: "fade"
        open: (event, ui) ->
          $.ajax
            url: Alchemy.routes.admin_trash_path(page_id)
            success: (data, textStatus, XMLHttpRequest) ->
              $dialog.html data
              # Need this for DragnDrop elements into elements window.
              # Badly this is screwing up maxHeight option
              $dialog.css(overflow: "visible").dialog("widget").css overflow: "visible"
              Alchemy.overlayObserver "#alchemyTrashWindow"
              return
            error: (XMLHttpRequest, textStatus, errorThrown) ->
              Alchemy.AjaxErrorHandler $dialog, XMLHttpRequest.status, textStatus, errorThrown
              return
          return
        close: ->
          $dialog.remove()
          return
      )
      return

    # Refreshes the trash window
    refresh: (page_id) ->
      if $("#alchemyTrashWindow").length > 0
        $("#alchemyTrashWindow").html Alchemy.getOverlaySpinner(
          width: 380
          height: 270
        )
        $.get Alchemy.routes.admin_trash_path(page_id), (html) ->
          $("#alchemyTrashWindow").html html
          return
      return

  # Adds onClick events for Alchemy overlays
  #

      ]
      open: ->
        Alchemy.Buttons.observe "#alchemyConfirmation"
      close: ->
        $("#alchemyConfirmation").remove()

  # Opens a confirm to delete window
  #
