<!-- Beginning of JavaScript -
// CREDITS:
// Based on Random Background Sound by Peter Gehrig and Urs Dudli
// Copyright (c) 2001 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at <http://www.24fun.com>http://www.24fun.com.
// <mailto:info@24fun.com>info@24fun.com
// 8/28/2001
// Modified by David Battino -- www.batmosphere.com -- to fix missing tags
 
// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to <http://www.24fun.com>http://www.24fun.com on the webpage
// where this script will be running.
 
//////////////////////// CONFIGURATION STARTS HERE ////////////////////
 
// Replace the below soundfiles with your soundfiles
// You may add as many soundfiles as you like (midi, wav whatever)
var sound=new Array("100512bglassman.mp3")
 
//////////////////////// CONFIGURATION ENDS HERE //////////////////////
 
var randomsoundenumber=Math.floor((sound.length)*Math.random())
var winContent = "<OBJECT width='2' height='2'>";
winContent += "<param name='SRC' value='" + sound[randomsoundenumber] + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>";
winContent += "<param name='HIDDEN' VALUE='true'>";
winContent += "<EMBED SRC='" + sound[randomsoundenumber] + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='2' HEIGHT='2' CONTROLLER='FALSE' HIDDEN='TRUE'>";
winContent += "<NOEMBED>";
winContent += "<BGSOUND SRC='" + sound[randomsoundenumber] + "' autostart='true' loop='false' hidden='true'>";
winContent += "</NOEMBED>";
winContent += "</EMBED>";
winContent += "</OBJECT>"; 
document.write(winContent); 
// - End of JavaScript - -->
