   #
   # Returns nothing.
   closeMenu: ->
-    @mainMenu.style.display = "none"  
+    @mainMenu.style.display = "none"
     @menuOpen = false
 
   # Private: Translate page on a specified axis.

  slideOutMenu: ->
    if @menuOpen
      window.setTimeout =>
        @translate(@mainMenu, "X", "-110%", "0.3s")
      ,10
      window.setTimeout =>
        @mainMenu.style.display = "none"  
      ,300
      @menuOpen = false
    else
      @translate(@mainMenu, "X", "-110%", "0ms")
      window.setTimeout =>
        @translate(@mainMenu, "X", "0%", "0.3s")
      ,10
      @mainMenu.style.display = "block"
      @menuOpen = true


    window.setTimeout =>
      if @transitionAnimation
        switch transitionType
          when "slide"
            @slide targetPage, currentPage
          when "slideUp"
            @slideUp targetPage, currentPage
      else
        @displayPage targetPage, currentPage
    , 10

  # Private: Perform a slide transition.
