    // the following is the code for the Player controller. 
  var Player = new ( function(){ 
 	this.LOUD = 0 ; 
	this.MUTE = -10000 ;
	this.MID  = -2000 ;
	this.setVolume = function(v){ 
		if ( !document.player ) {
			document.player = document.all [ 'm_player'];
		}
		var play = document.player ;
		play.volume = v;
	};
 } )() ;
	// the following makes the slider 
var s = new Slider(document.getElementById("slider-1"),
                   document.getElementById("slider-input-1"));
s.onchange =function(e){
 var cv = s.getValue() ;
 // 100 - cv = the inverse of the value we want cuz were going backwards otherwise
 // -1 = to make everything negative 
 // /100 = to make the value a fraction 
 // * 10000 to get the percent of the biggest value
  var percent = -1 * ( (100- cv) /100) * 10000 ;
  Player.setVolume (percent);
  }