OpenLayers.Popup.AnchoredBubble.CORNER_SIZE = 0;

OpenLayers.Popup.Etiqueta = OpenLayers.Class(OpenLayers.Popup.AnchoredBubble, {

	events: null,
	EVENT_TYPES: ["clicked"],

	initialize: function(lonlat, contentHTML) {
		var args = [null, lonlat, null, contentHTML, null, false];
		OpenLayers.Popup.AnchoredBubble.prototype.initialize.apply(this, args);
		this.autoSize = true;
		this.events = new OpenLayers.Events(this, null, this.EVENT_TYPES);
	},
	
	setRicoCorners: function() {
        var locs = {tl: "top left", tr: "top right", bl: "bottom left", br: "bottom right"};
        var corner = OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);
        this.groupDiv.style.background = "white url(img/"+corner+".png) "+locs[corner]+" no-repeat";
    },
    
    onclick: function(evt) {
	    this.events.triggerEvent("clicked");
    },

	CLASS_NAME: "OpenLayers.Popup.Etiqueta"
});