module ApplicationHelper
def navigation
end
class Numeric
def toSeconds
(self / 1000).round
def toTime
s = self.toSeconds
m = (s / 60).floor
s -= m * 60
m.to_s << ':' << (s < 10 ? '0' : '') << s.to_s