// js functions for the flash candle color & musci controller
// used during flash readings

// the sound swf calls this to set cookies when the sound is turned on or off
// keeps track of the state from page to page
// the cookie is initially set in purchase.php, which the flash movie links to.
function setMusicCookie(toWhat)
{
	document.cookie = "musicID=" + toWhat;
}

/*
change the candle image (color)
also set a cookie so the candle is the same color on the next page
var flashPage is set in saved.php to determine if the page is 
an interpretation or spread display - different images are used
*/
function setCandleCookie(toWhat)
{
	tempStr = "/images/tarot/icon/candle"
	if (flashPage == "spread")
	{
		tempStr += "0";
	}
	tempStr += "_" + toWhat + ".gif";
	document.images['candleImg'].src = tempStr;
	document.cookie =  "candleID=" + toWhat;
}

/*
Used by the main flash movie to set the cookie
doesn't have an image rollover
*/
function justSetCandleCookie(toWhat)
{
	document.cookie =  "candleID=" + toWhat;
}
