var tText = ['Previous tick', 'Next tick', 'Last tick', 'Time remaining', 'These ticks have stopped.']; function getDaysText(p) { return "day" + (p?'s':''); }