function initSound()
{
	var flash = document.getElementById("mysteryHunters");
	var soundButton = document.getElementById("soundButton");
	
	if ($.cookie("sound") == null)
	{
		$.cookie("sound", "true")
		soundButton.soundOn();
	}
	else if ($.cookie("sound") == "true")
	{
		flash.soundOn();
		soundButton.soundOn();
	}
	else if ($.cookie("sound") == "false")
	{
		flash.soundOff();
		soundButton.soundOff();
	}
}

function toggleSound()
{
	var flash = document.getElementById("mysteryHunters");
	var soundButton = document.getElementById("soundButton");
	
	if ($.cookie("sound") == "true")
	{
		$.cookie("sound", "false");
		soundButton.soundOff();
		flash.soundOff();
	}
	else
	{
		$.cookie("sound", "true");
		soundButton.soundOn();
		flash.soundOn();
	}
}
