var expdate = new Date ();
FixCookieDate (expdate); // Correct for Mac date bug - call only once for given Date object!
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000));

function FixCookieDate (date) {
	var base = new Date(0);
	var skew = base.getTime(); // dawn of (Unix) time - should be 0
	if (skew > 0) // Except on the Mac - ahead of its time
		date.setTime (date.getTime() - skew);
}

function setVolume(val){
	//alert("volume");
	document.cookie = "s_vol="+val+"; expires=" + expdate.toGMTString();
}

function setPosition(val){
	//alert("position");
	document.cookie = "s_pos="+val+"; expires=" + expdate.toGMTString();
}

function setStatus(val){
	//alert("position");
	document.cookie = "s_stat="+val+"; expires=" + expdate.toGMTString();
}