function ChangerOpacity()
{
	this.PanelElement = null;
	this.CurrentOpacity = 0;
	this.DeltaOpacity = 10;
	this.DeltaTimeInterval = 110;
	this.ProcessType = 1;
	this.MaxOpacity = 300;
		
	this.Start = function(){
		if((this.ProcessType != 0) && (this.PanelElement != null))
		{
			this.Change();
		}
	};
	
	this.Change = function(){
		switch(this.ProcessType)
		{
			case 1:
				this.Plus();
				break;
			case -1:
				this.Minus();
				break;
			default:
				break;
		}
	};
	
	this.Plus = function(){
		if(this.CurrentOpacity == 0)
			this.PanelElement.style.visibility = "visible";
		this.CurrentOpacity += this.DeltaOpacity;
		this.PanelElement.style.filter = "alpha(opacity=" + this.CurrentOpacity + ",style=0);";
		if(this.CurrentOpacity >= this.MaxOpacity)
			this.ProcessType = -1;
	};
	
	this.Minus = function(){
		this.CurrentOpacity -= this.DeltaOpacity;
		this.PanelElement.style.filter = "alpha(opacity=" + this.CurrentOpacity + ",style=0);";
		if(this.CurrentOpacity <= 0)
		{
			this.PanelElement.style.visibility = "hidden";
			this.ProcessType = 0;
		}
	};

}