<%
var that = this;
/* this function works for home audio player, the new added one works for music page
that.secondstotime = function(secs) {
var t = new Date(1970, 0, 1);
t.setSeconds(secs);
var s = t.toTimeString().substr(0, 8);
if (secs > 86399)
s = Math.floor((t - Date.parse("1/1/70")) / 3600000) + s.substr(2);
if(s.substr(0,2) == '00') return s.substr(3);
return s;
};*/
that.secondstotime = function(secs){
var hr = Math.floor(secs / 3600);
var min = Math.floor((secs - (hr * 3600)) / 60);
var sec = Math.floor(secs - (hr * 3600) - (min * 60));
if (min < 10) {
min = "0" + min;
}
if (sec < 10) {
sec = "0" + sec;
}
return min + ':' + sec;
}
for(var i=0; i '+
'