if (typeof e == "string") var g = new Date(new Date().toString().replace(/\d+:\d+:\d+/g, e)); var f = (typeof e == "number" ? e : (g.getHours() * 60 + g.getMinutes()) * 60 + g.getSeconds()), q = MuEvents.sked, j = [];
for (var a = 0; a < q.length; a++) { var n = q[a]; for (var k = 2; k < q[a].length; k++) { var b = 0, p = q[a][k].split(":"), o = (p[0] * 60 + p[1] * 1) * 60, c = q[a][2].split(":"); if (q[a].length - 1 == k && (o - f) < 0) b = 1; var r = b ? (1440 * 60 - f) + ((c[0] * 60 + c[1] * 1) * 60) : o - f; if (f <= o || b) { var l = Math.floor((r / 60) / 60), l = l < 10 ? "0" + l : l, d = Math.floor((r / 60) % 60), d = d < 10 ? "0" + d : d, u = r % 60, u = u < 10 ? "0" + u : u; j.push('<li class="event">' + (l == 0 && !q[a][1] && d < 5 ? '' : '') + ' <b class="rightfloat">' + q[a][b ? 2 : k] + "</b> <b>" + n[0] + '</b><span><br>'+ (MuEvents.text[q[a][1]][+(l == 0 && d < (q[a][1] ? 1 : 5))])+'<div class="rightfloat">' + (l + ":" + d + ":" + u) + "</div>" + "</span>"); break; }; }; }; document.getElementById("events").innerHTML = j.join(""); setTimeout(function () { MuEvents.init(f == 86400 ? 1 : ++f); }, 1000); };