<!-- begin hiding

// ----------------- *
// Determine Browser *
// ----------------- *
// convert all characters to lowercase to simplify testing
   agt=navigator.userAgent.toLowerCase()

   isIE = (agt.indexOf("msie") != -1)
   isNS = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
          && (agt.indexOf('compatible') == -1)))

   stopMusic = 'Music\\stopit.wav'

// ------------------- *
// Change Sound Volume *
// ------------------- *
function changeVol(amt)
 {
  if (isIE) 
    {
      if (foregrd.volume < 0 && amt > 0)  
        { 
         foregrd.volume += amt; 
         return;
        }
      if (foregrd.volume > -3000 && amt < 0)  
        { 
         foregrd.volume += amt; 
         return;
        }
    } 
  else
   {
     var sndVol = document.embeds[0].GetVolume()
     
     if (sndVol < 91 && amt > 0)         
       { 
        sndVol += 10
        document.embeds[0].setvol(sndVol)
        return;
       }
     if (sndVol > 10 && amt < 0)  
       { 
        sndVol -= 10
        document.embeds[0].setvol(sndVol)
        return;
       }
    } 
  }

// ----------------------- *
// Change Foreground sound *
// ----------------------- *
function playSnd(sndFile)
 {
  if (isIE) 
    { 
      foregrd.src = sndFile
      if (sndFile == stopMusic)
        { foregrd.loop = "" }
      else
        { foregrd.loop = "infinite" }  
     }
  else
    { 
      document.embeds[0].stop() 
      if (sndFile == stopMusic)
        { document.embeds[0].play(false, sndFile) }
      else
        { document.embeds[0].play(true, sndFile) }
     } 
 }

function PauseSnd(event)
 {
  if ( document.embeds[0].IsPlaying())
    { document.embeds[0].pause() }
  return true
  }

function RestartSnd(event)
 {
  if ( document.embeds[0].IsPaused())
    { document.embeds[0].play() }
  return true
  }
// Event Handler for Netscape
window.onBlur = PauseSnd;
window.onFocus = RestartSnd;

// end -->


