// JavaScript Document

//---------------------------------------------------------------------
// AUDIO PLAYER FUNCTIONS
//---------------------------------------------------------------------
function init_player(){
	if(typeof(AudioPlayer) != null){
		AudioPlayer.setup("/scripts/AudioPlayer/audio-player.swf", {
			width: 244,
			transparentpagebg: 'yes',
			animation: 'no',
			initialvolume: '80',
			bg: 'C5C08C',
			leftbg: '3A3821',
			lefticon: 'EDE9C0',
			voltrack: '9F9C77',
			volslider: 'EDE9C0',
			rightbg: '3A3821',
			rightbghover: '3A3821',
			righticon: 'EDE9C0',
			righticonhover: '779A22',
			loader: '779A22',
			track: 'FFFFFF',
			tracker: 'C5C08C',
			border: '999999',
			text: '3A3821'
		});
	}else{
		if(console) console.log('ERROR: Unable to load audio player!');
	}
}

function play_file(selector, file, title, artist){
	if(typeof(AudioPlayer) != null){
		AudioPlayer.embed(selector, {
			soundFile: file,
			titles: title,
			artists: artist
		});
	}else{
		if(console) console.log('ERROR: Unable to load audio player!');
	}
}