var _slideShowAudioName = "slideShowAudio";
var _slideShowFullscreenAudioName = "slideShowAudioFullScreen";
    
function pauseSlideShowAudio(fullScreen)
{
    if(getMovieObj(getAudioFlashName(fullScreen)).pauseAudio)
        getMovieObj(getAudioFlashName(fullScreen)).pauseAudio();
}

function resumeSlideShowAudio(fullScreen)
{
    if (getMovieObj(getAudioFlashName(fullScreen)).resumeAudio)
        getMovieObj(getAudioFlashName(fullScreen)).resumeAudio();
}

function changeSlideShowSongUrl(url, playMusic, fullScreen)
{
    if(getMovieObj(getAudioFlashName(fullScreen)).playNewSong)
        getMovieObj(getAudioFlashName(fullScreen)).playNewSong(url, playMusic);

    //  Also set the mute state to 'not muted' if we just changed the song:
    setMute("N");
}

function setVolume(fullscreen, volume, muted)
{
	if (getMovieObj(getAudioFlashName(fullscreen)).doVolumeChange)
        getMovieObj(getAudioFlashName(fullscreen)).doVolumeChange(volume, muted);
}

function setMute(muted)
{
    if (getMovieObj(getAudioFlashName(false)).doVolumeChange)
        getMovieObj(getAudioFlashName(false)).doVolumeChange(-1, muted);
}

function setMuteFullScreen(muted)
{
	if (getMovieObj(getAudioFlashName(true)).doVolumeChange)
        getMovieObj(getAudioFlashName(true)).doVolumeChange(-1, muted);
}

function getMovieObj(movieName)
{
    return document.getElementById(movieName);
}

function getAudioFlashName(fullScreen)
{
    if(fullScreen)
        return _slideShowFullscreenAudioName;
      
    return _slideShowAudioName;
}

function regoutput(s)
{
    if (console)
        console.log("regout: " + s);
}

function fulloutput(s)
{
    if (console)
        console.log("fullout: " + s);
}