/**
* Anchor
* represents html anchor element
* @constructor
* @base Elem
* @namespace stubhub.ui.core
* @param {String} id The html id of anchor
* @return Anchor object
*/

stubhub.ui.core.Anchor = function(id){

	var o = stubhub.extend(new stubhub.ui.core.Elem(id));
	o.objType = "stubhub.ui.core.Anchor";
	o.click = function(evt){
		var msg = new stubhub.objs.EventMessage("click", this, evt);
		this.dispatchEvent("click", msg);
		return false;
	}
	
	if (o.elem){
		o.registerEvent("onclick", "click");
	}

	return o;
}