function sfxPlay() {
	if (audioTagSupport) {
		$('audioEffect').play();
	} else {
		$('audioEffect').Play();
	}
}

var audioTagSupport;
var audioFile = 'Tink3.wav';
window.addEvent('domready',function() {
	audioTagSupport = !!(document.createElement('audio').canPlayType);
	var allLinks = document.links;
	if (audioTagSupport) {	
		var audio = document.createElement("audio");
		audio.setAttribute('id', 'audioEffect');
		audio.setAttribute('src', audioFile);
		document.body.appendChild(audio);
		for (var i=0; i<allLinks.length; i++) {
			allLinks[i].setAttribute("onmouseover","sfxPlay()");
		}
	} else {
		var embed = document.createElement("embed");
		embed.setAttribute('id', 'audioEffect');
		embed.setAttribute('src', audioFile);
		embed.setAttribute('autostart', 'false');
		embed.setAttribute('width', '0');
		embed.setAttribute('height', '0');
		embed.setAttribute('enablejavascript', 'true');
		document.body.appendChild(embed);
		for (var i=0; i<allLinks.length; i++) {
			allLinks[i].onmouseover = sfxPlay;
		}
	}
	
});


