/***********************************************************
* Used by calendar_movieplayer.swf and pdp_movieplayer.swf.
************************************************************/

// ---- For dynamically calling a new flv video to be played ----
var thisVideoID = "";
var thisMP3ID = "";
var thisMP3Length = "";
var thisMP3Img = "";
var mp3OrVideo = "";
var videodiv = document.getElementById('flashHome');
var videoFlashObj = document.getElementById('calendar_movieplayer');
var audiodiv = document.getElementById('flashHome1');
var audioFlashObj = document.getElementById('calendar_mp3player');

function __setVideoID(p_videoID) {
    videodiv.style.display = 'block';
    videoFlashObj.style.display = 'inline';
    audiodiv.style.display = 'none';
    audioFlashObj.style.display = 'none';
    mp3OrVideo = "VIDEO";
    thisVideoID = p_videoID;
}
function __retrieveVideoID() {
    return (thisVideoID);
}
function __resetVideoID() {
    thisVideoID = "";
}

function __setMP3(p_MP3ID, p_MP3Length, p_MP3Img) {
    videodiv.style.display = 'none';
    videoFlashObj.style.display = 'none';
    audiodiv.style.display = 'block';
    audioFlashObj.style.display = 'inline';
    mp3OrVideo = "AUDIO";
    thisMP3ID = p_MP3ID;
    thisMP3Length = p_MP3Length;
    thisMP3Img = p_MP3Img;
}
function __retrieveMP3() {
    return (thisMP3ID + "|" + thisMP3Img + "|" + thisMP3Length);
}
function __resetMP3() {
    thisMP3ID = "";
    thisMP3Length = "";
    thisMP3Img = "";
}

// ---- For dynamically calling the overlay window (calendar_movieplayer.swf only) to close ----
var thisStopVideoCall = "";
var thisStopMP3Call = "";

function __setStopVideoCall() {
    if (mp3OrVideo == "VIDEO") {
        thisStopVideoCall = "yes";
    }
    if (mp3OrVideo == "AUDIO") {
        thisStopMP3Call = "yes";
    }

    mp3OrVideo = "";
}
function __retrieveStopVideoCall() {
    return (thisStopVideoCall);
}
function __resetStopVideoCall() {
    thisStopVideoCall = "";
}

// ---- For dynamically calling the overlay window (calendar_movieplayer.swf only) to close ----
//function __setStopMP3Call() {
//    thisStopMP3Call = "yes";
//}

function __retrieveStopMP3Call() {
    return (thisStopMP3Call);
}
function __resetStopMP3Call() {
    thisStopMP3Call = "";
}

