function setHalloweenSoundImage()
{
	var graphics=new Array(3);
	graphics[0] = "GRAPHICS/HALLOWEEN/puff_sounds.gif";
	graphics[1] = "GRAPHICS/HALLOWEEN/terp_sounds.gif";
	graphics[2] = "GRAPHICS/HALLOWEEN/max_sounds.gif";
	var randNum= Math.round(Math.random()*2);
	var currImage = graphics[randNum];
	return currImage;
}

function doHalloweenSound() 
{
	var i=0;
	var cnt=12;
	var sounds = new Array(cnt);
	/*
	sounds[i++] = "MEDIA/auld.wav";
	sounds[i++] = "MEDIA/auld4.mid";
	sounds[i++] = "MEDIA/birthday.mid";
	sounds[i++] = "MEDIA/grinch.mid";
	sounds[i++] = "MEDIA/america.mid";
	*/
	sounds[i++] = "MEDIA/abell_tolling.wav";
	sounds[i++] = "MEDIA/booecho.wav";
	sounds[i++] = "MEDIA/dracula_laugh.wav";
	sounds[i++] = "MEDIA/evil_laugh.wav";
	sounds[i++] = "MEDIA/get_out.wav";
//		sounds[i++] = "MEDIA/graveyard_wind.wav";
	sounds[i++] = "MEDIA/halloween_theme.wav";
	sounds[i++] = "MEDIA/happy_halloween.wav";
	sounds[i++] = "MEDIA/laugh_happyhal.wav";
	sounds[i++] = "MEDIA/scream.wav";
	sounds[i++] = "MEDIA/werewolf_howling.wav";
	sounds[i++] = "MEDIA/witch_laughing.wav";
	sounds[i] = "MEDIA/wolf_howling.wav";
	cnt = i;
	var randNum= Math.round(Math.random()*cnt);
	var thisSound= sounds[randNum];
//		alert(randNum + " : " + thisSound);
	var thisDiv = eval("sound"+randNum);
//		alert(thisDiv);
//		thisDiv = "document.all.sound0";
//		thisSound = "MEDIA/scream.wav";
	thisDiv.innerHTML="<EMBED src='"+thisSound+"' autostart='true' style=\"visibility='visible'\" loop='false'>";
}

function doHalloweenSoundSave() 
{
	var cnt = document.all.sound.length - 1;
	var randNum= Math.round(Math.random()*cnt);
	var thisSound= eval("document.sound["+randNum+"]");
	if (typeof(thisSound)!="undefined" || typeof(thisSound)!="object")
		thisSound.Play();
	else
		alert(randNum);
		
}

function get_width()
{
	if (typeof(document.forms[0].win_width) == "undefined")
		return;
	if	(parseInt(navigator.appVersion)>3) 
	{
		if (navigator.appName=="Netscape") 
		{
			winW = window.innerWidth;
			winH = window.innerHeight;
//			document.forms[0].win_width.value=winW; 
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) 
		{
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
//			document.forms[0].win_width.value=winW; 
		}
	}
	alert(document.forms[0].win_width.value);
}