// Solution for the IE Active X blocked problem.
/*
----------------------------------------------------------------------------------------------
Step 1 - In order to make this work you have to add this line between you <head> Tags.
		 Create a directory and call it "includes". Place this file inside the folder
		<script src="includes/swfmc.js" type="text/javascript"></script>
		
Step 2 - Replace your flash movie with the following code and fill it out with the information of your flash movie clip.
		<script language="javascript" type="text/javascript">
			swfmc("flashmovie.swf","width","height");
		</script>
*/

function swfmc(movie,width,height)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="');
		// Width for Object TAG
	document.write(width);
	document.write('" height="');
		// Height for Object TAG
	document.write(height);
	document.write('">\n');
		// File for Object TAG
	document.write('<param name="movie" value="');
	document.write(movie);
	document.write('">\n');
	
	// Params for Object TAG
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="menu" value="false">\n');
	document.write('<PARAM NAME=wmode VALUE=transparent>\n');
	
		// File for EMBED TAG
	document.write('<embed src="');
	document.write(movie);
	document.write('" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="');
		// Width for EMBED TAG
	document.write(width);
	document.write('" height="');
		// Height for EMBED TAG
	document.write(height);
	
	// Params for Object TAG
	document.write('" menu="false" wmode="transparent"></embed>\n');
	document.write('</object>');
}

function playSwf(movie,width,height)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="');
		// Width for Object TAG
	document.write(width);
	document.write('" height="');
		// Height for Object TAG
	document.write(height);
	document.write('">\n');
		// File for Object TAG
	document.write('<param name="movie" value="');
	document.write(movie);
	document.write('">\n');
	
	// Params for Object TAG
	document.write('<param name="quality" value="high">\n');
	document.write('<param name="menu" value="false">\n');
	document.write('<PARAM NAME=wmode VALUE=transparent>\n');
	document.write('<PARAM name="flashvars" value="file=\'movie\'&bufferlength=200">\n');
	
		// File for EMBED TAG
	document.write('<embed src="');
	document.write(movie);
	document.write('" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="');
		// Width for EMBED TAG
	document.write(width);
	document.write('" height="');
		// Height for EMBED TAG
	document.write(height);
	
	// Params for Object TAG
	document.write('" menu="false" wmode="transparent" flashvars="file=\'movie\'&bufferlength=200"></embed>\n');
	document.write('</object>');	
}



function playAudio(audioFile) 
{
	var audio = audioFile;
	var fileUrl;
		
	switch(audio){
	case 1: fileUrl = '/audio/Dr-Robert-Harrell.wma';
	break;
	case 2: fileUrl = '/audio/Metzger.wma';
	break;
	case 3: fileUrl = '/audio/Mueller_Caple.wma';
	break;
	case 4: fileUrl = '/audio/Mueller_Caple.wma';
	break;
	case 5: fileUrl = '/audio/Dr-Sara-Stacey.wma';
	break;
	case 6: fileUrl = '/audio/01Dr-Rayder-WMEX.wma';
	break;
	case 7: fileUrl = '/audio/DR-Sherry-1.wma';
	break;
	case 8: fileUrl = '/audio/dr-mirabello.wma';
	break;
	case 9: fileUrl = '/audio/01-21-07.wma';
	break;
	case 10: fileUrl = '/audio/01-Richard Cappello.wma';
	break;
	case 11: fileUrl = '/audio/01-14-07.wma';
	break;
	case 12: fileUrl = '/audio/01-5.wma';
	break;
	case 13: fileUrl = '/audio/Antoinette.wma';
	break;
	case 14: fileUrl = '/audio/01-12-07.wma';
	break;
	case 15: fileUrl = '/audio/01-26 part 1.wma';
	break;
	case 16: fileUrl = '/audio/02-26 part 2.wma';
	break;
	}
	
	document.write('<object id="MediaPlayer4" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="280" height="45">');
	document.write('<param name="fileName" value="' + fileUrl + '" />');
	document.write('<param name="animationatStart" value="true" />');
	document.write('<param name="transparentatStart" value="true" />');
	document.write('<param name="autoStart" value="true" />');
	document.write('<param name="showControls" value="true" />');
	document.write('<param name="Volume" value="-300" />');
	document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="' + fileUrl + '" name="MediaPad" width=280 height=45 autostart=0 showcontrols=1 volume=-300></embed>');
	document.write('</object>');

}

/*' & fileUrl & ' */