function toggler(button,container) 
{
  this.button = document.getElementById(button);
  this.container = document.getElementById(container);
  this.toggleOff();
  var ref = this;
  this.button.onmousedown=function(event) 
  { 
  	ref.execute();
  }
}
toggler.prototype.toggleOn = function () 
{
	this.container.style.display = "block";
};
toggler.prototype.toggleOff = function () 
{
	this.container.style.display = "none";
};
toggler.prototype.execute = function () 
{
	if(this.container.style.display == "none")
	{
		this.container.style.display = "block";
	}
	else
	{
		this.container.style.display = "none";
	}
}

function hider(button,container) 
{
  this.button = document.getElementById(button);
  this.container = document.getElementById(container);
  var ref = this;
  this.button.onmousedown=function(event) 
  { 
  	ref.execute();
  }
}
hider.prototype.execute = function () 
{
	this.container.style.display = "none";
};
	