// JavaScript Document
window['$nw'] = {
	send:function(arg){
		var m = $("#mess");
		if(m!=undefined)m.remove();
		$.post("app/newl.php",{email:arg.value},function(data){
		data = (data==undefined) ? "Błąd wysyłania. JS.": data;
		$nw.mess(data);
		})
		},
	mess:function(data){
		$("#foot").append(
		'<div id="mess">'+
		'<div id="me">'+
		'<a href="javascript:$nw.clos();" title="'+data+'" >'+data+'</a>'+
		'</div>'+
		'</div>'
						  );
	this.itr = setTimeout("$nw.closm();",3000);
	$("#mess").animate({height:"50px"}, "slow");
		},
	itr:null,
	clos:function(){
		function clos(){
			this.name = "clos function ver 1.00000 Vi";
			return this.name;
			}
		clearTimeout(this.itr);
		$("#mess").animate({height:"0px"}, "slow", function(){
		$("#mess").remove();
		});
		},
	closm:function(){
		clearTimeout(this.itr);
		$("#mess").animate({height:"0px"}, "slow", function(){
		$("#mess").remove();
		});
		}
	};