   # Darkening properties
   darkening:
     default:
-      attributes:
-        id: 'overlay'
+      attributes: { id: 'overlay' }
       styles:
         position: 'absolute'
         top: 0

  
# Shows image with specified index from images array
showImage = (index, direction = undefined) ->
  img = $('<img />')
    .attr(hermitage.image.default.attributes)
    .css(hermitage.image.default.styles)
    .attr('src', sourceFor(index))
    .css(hermitage.image.styles)
    .hide()
    .appendTo($('#hermitage'))
  


    text:
      default:
        attributes: { class: 'text' }
        styles:
          width: '100%'
          height: '100%'
