//зановесm
var zanaves=function (color,opacity)
{    
	this.Zcolor=color;
	this.opacity=opacity;	
	this.zanElement;
    this.idNmae="z"+Math.round(Math.random()*1000000);
}
zanaves.prototype.show=function()
{
	if(!this.zanElement)
	{
		var elem=document.createElement('div');
		elem.className="zan";		
        elem.id=this.idNmae;
		elem.style.background=this.Zcolor;
		getOpacity(elem,this.opacity);
		ps=getPageSize();
		elem.style.width="100%";
		elem.style.height=ps[1]-5;
		elem.style.position="absolute";		
		elem.style.left=0;
		elem.style.top=0;
		this.zanElement=document.body.appendChild(elem);

    }
	else
	{
		this.zanElement.style.display="";
	}
	return this.zanElement;
}
zanaves.prototype.hide=function()
{
	if(this.zanElement)
	{
		this.zanElement.style.display="";
	}
}
