var a_menu=new Request({		   
    url: path+"/lib/ajax.php",
    onSuccess: function(rs){
	menu_fillEl(rs);
    },
    headers:header
});

var a_html=new Request.HTML({		   
    url: "",
    onSuccess: function(){
		alert('succes');
		menu_fillEl();
	//_ldNext();//.delay(100);
    },
    headers:header
});

var a_loc=new Request({		   
    url: path+"/lib/ajax.php",
    onSuccess: function(rs){
	fillLocator(JSON.decode(rs));
    },
    headers:header
});

var a_login=new Request({		   
    url: path+"/lib/login.php",
    onSuccess: function(rs){
		rs=eval(rs);
		if(rs){
			this.ob.submit();
		}
    },
    headers:header
});

var a_cart=new Request({		   
    url: path+"/lib/cart.php",
    onSuccess: function(rs){
	//alert(rs+':'+this.typ);
		if (this.typ == 'add') {
			var update=eval(rs);
			if(!update){
				$('cart').add($('item').ob, $('item').act);
			}else{
				$('cart').update($('item').ob, $('item').act,update);
			}
		}else if(this.typ == 'update'){
			$('cart').update($('item').ob, $('item').act, eval(rs));
		}
    },
    headers:header
});