
// This player is specifically for playing MP3 files, player can be switched on and off using stopSound() or playSound()

/* 

1. Must include the following in the body of the html:

<!-- MP3 sound file -->
<strong>SOUND</strong>: <a onclick="playSound();" href="#sound" class="botnav" name="sound">PLAY</a> | <a onclick="stopSound();"  href="#sound" class="botnav" name="sound">STOP</a><br>
<div id="player">MP3 Player did not start!</div>
<script type="text/javascript" src="flvmediaplayer/swfobject.js"></script>
<script type="text/javascript" src="flvmediaplayer/custom_generated_code.js"></script> 
<script type="text/javascript">
<!-- 
playSound(); 
-->
</script> 
<!-- MP3 sound file -->

2. Must include the following in body tag:

<body onload="playSound();">

3. Must update sound file below and ensure "flvmediaplayer" folder exists in root folder:


*/



var file = 'sound_synergy.mp3';

function playSound() {

//Flash Object Write
var so = new SWFObject('flvmediaplayer/player.swf','mpl','1','1','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file='+file+'&bufferlength=10&backcolor=FFFFFF&frontcolor=FFFFFF&lightcolor=FFFFFF&screencolor=FFFFFF&controlbar=none&autostart=true&displayclick=none&icons=false&repeat=always');
so.write('player');

}

function stopSound() {
var HEADIN = "Sound Stopped";
//Write to ID in page
//With Netscape 4.x, the code should look familiar: 
if (document.layers)
{document.player.document.write(HEADIN);}

//Internet Explorer 5+, Netscape 6+ and all standards compliant browsers write to layers using the innerHTML property:
else if (document.getElementById)
{document.getElementById('player').innerHTML = HEADIN;}

//Internet Explorer 4 and 4.5 varying slightly with its document.all syntax: 
else if (document.all)
{document.all['player'].innerHTML = HEADIN;}

 }
