         if $(a).attr('href') == $link.attr('href')
           imageNumber = i
 
-    # Position lightbox
+    # Position lightbox 
     $window = $(window)
     top = $window.scrollTop() + $window.height()/10
     left = $window.scrollLeft()

    containerTopPadding = parseInt $container.css('padding-top'), 10
    containerRightPadding = parseInt $container.css('padding-right'), 10
    containerBottomPadding = parseInt $container.css('padding-bottom'), 10
    containerLeftPadding = parseInt $container.css('padding-left'), 10

    newWidth = imageWidth + containerLeftPadding + containerRightPadding
    newHeight = imageHeight + containerTopPadding + containerBottomPadding

    # Animate just the width, just the height, or both, depending on what is different
    if newWidth != oldWidth && newHeight != oldHeight
      $outerContainer.animate

    $('#lightboxOverlay')
      .width( $(document).width())
      .height( $(document).height() )
  
  
  # Animate the size of the lightbox to fit the image we are showing
  sizeContainer: (imageWidth, imageHeight) ->
    $lightbox = $('#lightbox')
