	var oMail = {
		url : "shopping.php",
		idcapa : "float_menu_mail",
		entidadID : null,
		capa : null,
		_data : function(pg,valores,fname){
			var peticion = new Fujar.MyServer();
			peticion.url = this.url;
			var vars = "pg=" + pg;
			for (var att in valores){
				vars += "&" + att + "=" + escape(valores[att]);
			}
			peticion.vars = vars;
			peticion.onFinish = function(){
				var htm = peticion.response;
				if(fname)fname(htm);
			}
			peticion._post();
		},
		_send : function(f){
			var _this = this;
			var to = f.float_menu_mail_to.value;
			var fromName = f.float_menu_name_from.value;
			var msg = f.float_menu_mail_msg.value;
			var valores = [];
			valores["to"] = to;
			valores["fromName"] = fromName;
			valores["msg"] = msg;
			valores["entidadID"] = _this.entidadID;
			_this.capa = document.getElementById(_this.idcapa);
			_this._data("recommend",valores,function(str){
				if(str.indexOf("OK")>-1){
					alert("Enviado");
				}
				_this.capa.style.display= "none";
			});
		},
		_click : function(img,entidadID){
			var _this = this;
			_this.entidadID = entidadID;
			_this.capa = document.getElementById(_this.idcapa);
			var capa = _this.capa;
			var xpos = Fujar.Utils.getLeftPos(img);
			var ypos = Fujar.Utils.getTopPos(img);
			var w = img.offsetWidth;
			var h = img.offsetHeight;
			capa.style.display = "block";
			capa.style.top = (ypos+h) + "px";
			capa.style.left = (xpos-capa.offsetWidth) + "px";
			capa.zIndex = 100000;
			
			
		}
	}