         $scope.displayName = $scope.tea.title
         $scope.actualTime = $scope.time
         $scope.timer = true
-        if (window.webkitNotifications.checkPermission() != 0)
-            $("#notification_disabled").show()
-            return
 
         $('#countdownModal').modal()
         $('#countdownModal').on('hidden', ->


        return convertedTemp.toString()

    Utils.displayNotification = (title, message) ->
        permission = window.webkitNotifications.checkPermission()
        console.log("Permission: #{permission}")
        window.popup = window.webkitNotifications.createNotification("img/icon.png",
            title,
            message)

        Utils.ding('snd/alarm.mp3', window.popup)
        popup.show()
        setTimeout("popup.cancel()", CANCEL_TIMEOUT)

    Utils.ding = (mp3, popup) ->
        snd = new Audio(mp3)
        if SOUND
            snd.play()
            ###
             stop playing alert sound when notification popup is closed
             (synchronized with notification popup through CANCEL_TIMEOUT
             constant which is same in both cases)
             ###
            pauseAudio = ->
                snd.pause()
            popup.onclose = pauseAudio
            popup.onclick = pauseAudio
            setTimeout(pauseAudio, CANCEL_TIMEOUT)

    Utils.gaTrack = (tea, degree, time) ->
        _gaq.push(['_trackEvent', 'start-tea', tea])
        _gaq.push(['_trackEvent', 'degree', degree])
        _gaq.push(['_trackEvent', 'start-time', time])

#Initialization code
$(document).ready ->
    #check webkit notification
    if (not window.webkitNotifications &&  not Notification)
        $("#notification_not_found").show()
        $('#btn-run').toggleClass('disabled')

            resetTitle()
            #Display notification only if timer enabled!
            if $scope.timer
                Notification.display(localize.getLocalizedString('_AppTitle_'),
                    localize.getLocalizedString('_NotificationMessage_'))

    updateTitle = (time) ->
