<!--
var clips = ["http://listen.radionomy.com/power-hit-on-air"];

var multimedObj = null;
var currentClip = -1;
var pause =
true;

function obj () {
if (multimedObj == null) multimedObj = document.getElementById('multimediaObject');

if (multimedObj == null)
{
var x = new Object();
x.src = ""; x.fileName = "", x.CurrentPosition = -1; x.Duration = -1; x.Rate = -1; x.Volume = -1;
x.stop = function ()
{};
x.play = function () {};
return x;
}
else return multimedObj;
}
function formatTime (n) {
n = Math.floor(n);
var min = Math.floor(n/60);
var
sec = n%60;

var str = "";
if (min < 10) str += "0";
str += ""+min+":";
if (sec < 10) str += "0";
str += ""+sec+"";
return str;
}
function
updateTime () {

if (pause) {
document.forms["f"].elements["timeinfo"].value = "--:-- / --:--";
setTimeout("updateTime();", 1000);
return;
}

if
(obj().CurrentPosition >= obj().Duration) nextClip();

document.forms["f"].elements["timeinfo"].value = "" + formatTime(obj().CurrentPosition) +
" / " + formatTime(obj().Duration) + "";
setTimeout("updateTime();", 1000);
}
function prevClip () {
currentClip--;
if (currentClip < 0)
currentClip = clips.length-1;
playClip(currentClip);
}
function clipRandom ()  {
var n = Math.floor(Math.random() * clips.length);
playClip(n);
}
function
nextClip () {
currentClip++;
if (currentClip >= clips.length) currentClip = 0;
playClip(currentClip);
}
function playClip (n) {
currentClip
= n;
obj().fileName = clips[currentClip];
obj().src = clips[currentClip];
//obj().play();
pause = false;
changeVolume(0);
changeRate(0);
document.forms["f"].elements["list"].selectedIndex
= currentClip;
}
function seek (n) {
if (pause) return;
var cp = obj().CurrentPosition;
var d = obj().Duration;

if (cp+n >= d) return
nextClip();
if (cp+n < 0) return;
obj().CurrentPosition += n;
}
function changeRate (n) {
if (pause) return;
obj().Rate += n;
document.getElementById('rateinfo').innerHTML
= "" + Math.round(obj().Rate * 100) + "%";
}
function changeVolume (n) {
if (pause) return;
obj().Volume += n;
var n = obj().Volume;
n
+= 3000;
n /= 30;
n=Math.floor(n);
document.getElementById('volumeinfo').innerHTML = ""+n+"%";
}
function clickPause (x) {

if (pause)
{
obj().play();
pause = false;
x.value = "Stop";
}
else {
pause = true;
obj().stop();
x.value = "Play";
}
}
function
clickDownload () {
document.location = clips[currentClip];
}

// -->