function stopMediaPlayers(){
			//stop what was previously playing (if anything)
			if(isInternetExplorer()){
			
				document.WindowsMediaPlayer.stop();
				document.WindowsMediaPlayer.style.display="none";
			}
		}
		
		
		
		function showBitRateSelector(selection, bigThumbnailSrc){
			var selection_count = 9;
			
			for(i=0; i<=selection_count;i++){
				var DivID = "selection" + i;
				var DivToHide = document.getElementById(DivID);
				DivToHide.style.display="none";
			}
			
			stopMediaPlayers();
						
			var DivToShow = document.getElementById(selection);
			DivToShow.style.display="inline";

			//show the big thumbnail
			document.getElementById("WindowsMediaPlayerBox").style.display="inline";
			
			document.getElementById("BigThumbnail").style.display="inline";
			document.getElementById("BigThumbnail").src=bigThumbnailSrc;
		}
		
		function isInternetExplorer(){
			//todo: implement some more robust client-side sniffing
			if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) {
				return true;
			}
			else
			{
				return false;
			}
		}
		
		function playEmbeddedWindowsMedia(fileName, width, height, showControls){
			//if this isn't IE/win. Return true so we can display the file
			if(isInternetExplorer())
			{
				//do nothing
			}
			else
			{
				return true;
			}
			
			//Hide the big thumbnail image
			document.getElementById("BigThumbnail").style.display="none";
		
			//show the DIV for the windows media player
			document.getElementById("WindowsMediaPlayerBox").style.display="inline";
			
			//stop what was previously playing (if anything)
			stopMediaPlayers();
			
			document.WindowsMediaPlayer.autostart=true;
			document.WindowsMediaPlayer.style.display="inline";
			if(showControls)
			{
				document.WindowsMediaPlayer.showControls=true;
			}
			else
			{
				document.WindowsMediaPlayer.showControls=false;
			}
			
			//set the dimensions & autostart the player
			document.WindowsMediaPlayer.height=height;
			document.WindowsMediaPlayer.width=width;
			document.WindowsMediaPlayer.autostart=true;
			document.WindowsMediaPlayer.fileName = fileName;
			
			//if this is embedded, return false
			//to the browser won't follow the link
			return false;
		}