var correcttone="niceding.wav";  //sound played when a correct answer is given
var wrongtone="buzz2.wav";       //sound played when a wrong answer is given
var nexttone="ding.wav";         //sound played when it is the next player's turn
var dicetone="shakerolldice.wav"; //sound played when dice are rolled

function setSound(){
	if (navigator.appName == "Microsoft Internet Explorer"){
	var sounds = '<embed src="'+correcttone+'" type="audio/x-wav" name="right" autostart="false" width="0" height="0" name="right" id="right" enablejavascript="true"/>';

	sounds += '<embed src="'+wrongtone+'" type="audio/x-wav" autostart="false" width="0" height="0" name="wrong" id="wrong" enablejavascript="true"/>';

	sounds += '<embed src="'+nexttone+'" type="audio/x-wav" autostart="false" width="0" height="0" name="nplay" id="nplay" enablejavascript="true"/>';

	sounds += '<embed src="'+dicetone+'" type="audio/x-wav" autostart="false" width="0" height="0" name="dice" id="dice" enablejavascript="true"/>';

	document.getElementById('sound').innerHTML = sounds;
	}
	else mozSound();
};

function mozSound(){
	
	
	
	var mzSd = '<object type="audio/x-wav" data="ding.wav" width="0" name="nplay" id="nplay" height="0">'
 		+ '<param name="src" value="'+nexttone+'">'
  		+ '<param name="autoplay" value="false">'
  		+ '<param name="autoStart" value="0">'
		+ '<param name="enablejavascript" value="true">'
		+ '</object>' +
		
		'<object type="audio/x-wav" data="niceding.wav" width="0" name="right" id="right" height="0">'
 		+ '<param name="src" value="'+correcttone+'">'
  		+ '<param name="autoplay" value="false">'
  		+ '<param name="autoStart" value="0">'
		+ '<param name="enablejavascript" value="true">'
		+ '</object>' +
		
		'<object type="audio/x-wav" data="buzz2.wav" width="0" name="wrong" id="wrong" height="0">'
 		+ '<param name="src" value="'+wrongtone+'">'
  		+ '<param name="autoplay" value="false">'
  		+ '<param name="autoStart" value="0">'
		+ '<param name="enablejavascript" value="true">'
		+ '</object>' +
		
		'<object type="audio/x-wav" data="shakerolldice.wav" width="0" name="dice" id="dice" height="0">'
 		+ '<param name="src" value="'+dicetone+'">'
  		+ '<param name="autoplay" value="false">'
  		+ '<param name="autoStart" value="0">'
		+ '<param name="enablejavascript" value="true">'
		+ '</object>';
		
	document.getElementById('sound').innerHTML=mzSd;
}