
function cLayer(id)
{this.layer=id;this.timer=null;this.timeout=0.5;this.close=function()
{document.getElementById(this.layer).style.display="none";}
this.hide=function()
{if(this.isOpen())
{clearTimeout(this.timer);this.timer=setTimeout('layer.close()',this.timeout*1000);}}
this.isOpen=function()
{return document.getElementById(this.layer).style.display!="none";}
this.cancel=function()
{clearTimeout(this.timer);}
this.show=function()
{document.getElementById(this.layer).style.display="block";document.getElementById('email').focus();}}
var layer=new cLayer('flash_div');var layer1=new cLayer('flash_zamykany');var layer2=new cLayer('flash_div2');var layer3=new cLayer('flash_zamykany2');