     if email != '' and emailIsValid(email)
       e.stopPropagation()
       $('.message').html('<h2>Thank you! Check your email soon.</h2>')
-      setTimeout hideWishedBox, 2500
+      setTimeout hideWishedBox, 10*defaultSpeed
     else
       $('.message').html('<h2>Please provide email in valid format!</h2>')
-      setTimeout clearMessage, 2500
+      setTimeout clearMessage, 10*defaultSpeed
     false
 
 refreshWished = (wished) ->

      color: '#ff0'
    }
  }

  restartDelay = 3000

  buttons = null

  Snap.load '/assets/images/buttons.svg', (canvas) ->
    buttons = canvas.select 'g#Buttons'
    snap.append buttons

    $.each config, (name, item) ->
      group = buttons.select 'g#'+item.id
      group.attr { transform: zero }
      buttons.selectAll('g#'+item.id+' > g').attr { transform: 'translate('+item.initial+') scale('+scale.initial+')' }
      buttons.select('g#'+item.id+'-title').attr { transform: 'translate('+item.initial+') scale('+scale.initial+')' }
      moveButton item, 0

  moveButton = (item, index) ->
    index = 0 if index > 11
    elementToMove = buttons.selectAll('g#'+item.id+' > g')[index]


$(window).resize ->
  showSlideShow()

if $('section.fonts').size() > 0
  family = (el) ->
