function Cover( params )
{
	this.z = params.z ? params.z : 10000;
	this.color = params.color ? params.color : "#6699cc";
	this.transparency = params.transparency && params.transparency >= 1 && params.transparency <= 100 ? params.transparency : 70;
	this.target = params.target ? params.target : document.body;
	
	this.cover = document.createElement("div");
	var style = this.cover.style;
	style.position = "absolute";
	style.display = "none";
	style.zIndex = params.z;
	style.top = 0;
	style.left = 0;
	style.height = this.target.scrollHeight;
	style.width = this.target.clientWidth;
	style.backgroundColor = this.color;
	style.filter = "alpha(opacity=" + this.transparency + ")";
	style.opacity = this.transparency / 100;
	style.MozOpacity = this.transparency / 100;
	
	this.target.appendChild( this.cover );
}
Cover.prototype.show = function()
{
	this.cover.style.display = "block";
}
Cover.prototype.hide = function()
{
	this.cover.style.display = "none";
}
