Playing = 0
function play(url, ImgId)
{
    var player = document.getElementById('ply')
    var img    = document.getElementById(ImgId)
    if (Playing == 0) {
        Playing = 1
        //img.src = './img/pause.gif'
        player.sendEvent("LOAD", url)
        player.sendEvent("PLAY")
    } else {
        Playing = 0
        //img.src = './img/play.gif'
        player.sendEvent("STOP")
    }
}
