<!--
var playing = new Array();
var noflash = 1;
var flash;

function listen(id, mp3file) {
	document.getElementById('demo_button'+id).style.display = 'none';
	try {
		flash.startDemo(mp3file, id);
	}
	catch(err) {
		noflash = 1;
	}
	window.setTimeout('startDownload("'+mp3file+'", '+id+')', 1000);
}

function startDownload(url, id) {
	if(noflash == 1) {
		window.open(url);
		document.getElementById('demo_button'+id).style.display = '';
		document.getElementById('demo_stop'+id).style.display = 'none';
	}
}

function haveFlash(id) {
	noflash = 0;
}

function demoStarted(id) {
	for(var i in playing) {
		if(playing[i] == 1) {
			document.getElementById('demo_stop'+i).style.display = 'none';
			document.getElementById('demo_button'+i).style.display = '';
			playing[i] = 0;
		}
	}
	document.getElementById('demo_stop'+id).style.display = '';
	document.getElementById('demo_button'+id).style.display = 'none';
	playing[id] = 1;
}
function demoStopped(id) {
	document.getElementById('demo_stop'+id).style.display = 'none';
	document.getElementById('demo_button'+id).style.display = '';
	playing[id] = 0;
}

function stop(id) {
	try {
		flash.stopDemo(id);
	}
	catch(err) {
		noflash = 1;
	}
}

window.onload = function() {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	if(isIE) {
		flash = document.getElementById('flashObject');
	}
	else {
		flash = document['flashObject'];
	}
}
// -->