/*

Initialization file + utility functions
for SoundManager 2 + the Julien-K Website

** NOTE!
This file should be parsed by PHP then interpreted by JavaScript. Take note!

By Polychrome Studio, Inc., 2007
http://www.polychrome.com/

Author:  Christian Rocha
Created: 2007-04-30

*/

// SoundManager2 global variable setup
soundManager.url       = 'http://www.julien-k.com/_swf/soundmanager2.swf';
soundManager.nullURL   = 'http://www.julien-k.com/media/audio/null.mp3';
soundManager.debugMode = false;

soundManager.onload = function()
{

    // Create null sound so the stop button doesn't break things right off the bat
    soundManager.createSound({
        id  : 'null',
        url : soundManager.nullURL
    });
    soundManager.play('null');

};

// Needed to stop audio!
currentAudioID = 'null';

function playAudio(id)
{
    stopAudio();
    currentAudioID = id;
    soundManager.play(id);
    return false;
};

function stopAudio()
{
    soundManager.stop(currentAudioID);
    return false;
};
