
function run_music(SongName){
// Copyright ®1998, 1999 All Rights Reserved
// SiteCrafters Internet Services http://www.SiteCrafters.com

// This Javascript checks for the Browser Name
// If the Browser is Netscape or Internet Explorer it writes the code
// to play the midi or wav sound.

// Replace the sound file below with the directory and name of you sound file
// You may need to include the full URL for local testing.

   soundclip = "music/" + SongName;

// The statement below creates an <embed> for Netscape Browsers
// if a Midi Plugin is enabled. If Not it creates no tag.

   if (navigator.appName == "Netscape") {
        if( navigator.mimeTypes["audio/midi"].enabledPlugin != null ){
            tag = '<embed src = "' + soundclip + '" autostart=True hidden=True loop=1 type=audio/midi >';
            document.write(tag);
        }
   }

  // The statement below creates a <bgsound> for Internet Explorer
  // which should be ignored by browsers that don't support the bgsound tag

   else{
     tag = '<bgsound src = "' + soundclip + '">';
     document.write(tag);
   }
 }
