     e.preventDefault()
     window.open($(this).attr('href'))
 
-
 $(document).ready ->
+  initPage()
   externalLinks()

      self.toggleClass("active").next().stop(true, true).slideToggle "slow"
      e.preventDefault()

$(document).ready ->
  $('.datepicker').datepicker()

$(document).ready ->
  notifications = $('body').find($('.flash_notification'))
  if notifications.length > 0
    bar = $('<ul id="notifications-bar" class="container"></ul>')

initPage = ->
  if $(".toggle-container").length
    $(".toggle-container").hide()
    $(".box-toggle").on "click", ".trigger", (e) ->
