function removeLuci() {
	swfobject.removeSWF("luci-animation");
}

function playLuciSound() {
	
	
//	alert('speel audio af');
//	alert(playingAudio);
	
	//alert(playAllAudio);
	
	//var audioFile = $('#luci').attr('currentAudio');
	
	//soundManager.play('hoverSound','/media/audio/' + audioFile);
}

function stopLuciSound() {
	soundManager.stop('hoverSound');
	
	soundManager.destroySound('hoverSound');
}

function activateLuciTalking() {
	removeLuci();
	
	if(!$('#luci-animation').length) {
	
		var luciAnimationDiv = $('<div id="luci-animation"></div>');
		
		$('#luci').append(luciAnimationDiv);
	}
	
	var flashvars = {};
	var params = {wmode:"transparent"};
	var attributes = {};

	swfobject.embedSWF("/static/swf/luci_praat.swf", "luci-animation", "96", "96", "9.0.0", "/static/swf/expressInstall.swf",flashvars, params, attributes);
}

function activateLuciSilent() {
	
	removeLuci();
	
	if(!$('#luci-animation').length) {
		
		var luciAnimationDiv = $('<div id="luci-animation"></div>');
		
		$('#luci').append(luciAnimationDiv);
	}
	
	var flashvars = {};
	var params = {wmode:"transparent"};
	var attributes = {};

	swfobject.embedSWF("/static/swf/luci_stil.swf", "luci-animation", "96", "96", "9.0.0", "/static/swf/expressInstall.swf",flashvars, params, attributes);

}
