
/*
 _____________________________________
/ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ\
| Another JavaScript from Uncle Jim   |
| Feel free to copy, use and change   |
| this script as long as this part    |
| remains unchanged. You can visit    |
| my website at http://jdstiles.com   |
| for more scripts like this one.     |
| Created: 1998 Updated: 2006         |
\_____________________________________/
 ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
*/
// Preload and play audio files with event handler (MouseOver sound)

var aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "Sounds/vincentlaugh.wav";
aySound[1] = "Sounds/door.wav";
aySound[2] = "Sounds/redrum.wav";
aySound[3] = "Sounds/Deep Evil Laugh.wav";
aySound[4] = "Sounds/Laughing Witch.wav";
aySound[5] = "Sounds/Boogie Man and Witch Laugh.wav";
aySound[6] = "Sounds/howlin_wolfR.wav";
// DO NOT edit below this line
document.write('<BGSOUND ID="auIEContainer">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;

function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<aySound.length;i++)
Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'  type='audio/wav'>"
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? aySound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
function embedVideo()
{
document.write("<center><p class=\"drag\"><embed  src=\"Halloween08/videos/halloween08.wmv\" width=480 height=420 autostart=TRUE></embed></p></center>");
}
function changeImage(img,addr)
{
	document.getElementById(img).src = ' + addr + ';
}
function changeBackground()
{
document.body.background = 'images/staticbac.gif';
}
function changeBackground1(){document.body.background = 'images/skelebac.jpg';}
function changeBackground2(){document.body.background = 'images/skullbac.jpg';}
function changeBackground3(){document.body.background = 'images/haunted_house_e0.gif';}
function changeBackground4(){document.body.background = 'images/ghostbac1.jpg';}
function changeBackground5(){document.body.background = 'images/bac1.jpg';}


//