﻿var aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "sound/news.wav"; 
aySound[1] = "sound/video.wav"; 
aySound[2] = "sound/photo.wav"; 
aySound[3] = "sound/story.wav"; 
aySound[4] = "sound/links.wav"; 
var elEmbed = "divSounds"

// 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() {
    try
    {
    
        var Str = '';    
        for (i=0;i<aySound.length;i++)
            Str += "<embed id='s" + i + "' SRC='"+aySound[i]+"' AUTOSTART='FALSE' height='1' width='1' ></embed>"
        
        document.getElementById(elEmbed).innerHTML = Str;
        }catch(err){}
    
}
function playSound(whSound) {
    try{
        var el = 
        document.getElementById("s" + whSound).Play();
    }catch(err){}
}
function stopSound(whSound) {try{var s = document.getElementById("s" + whSound); s.Rewind();s.Stop()}catch(err){}}


