/**
 * Represents mouse event.
 */
function MouseEvent(_e) {
//public
	/** original mouse event */
	this.event=_e;

	/** target element to which the event was originally sent */
	this.target;

	/** page X coordinate where click was performed */
	this.x;

	/** page Y coordinate where click was performed */
	this.y;

	this.preventDefault=function() {
		this.event.preventDefault();
		return false;
	}

	this.toString=function() {
		return "x="+this.x+", y="+this.y+", target="+this.target+",event="+this.event;
	}

//constructor
	if (_e && _e.target) {
        this.event=_e;
		this.target=_e.target;
		this.x=_e.clientX+window.pageXOffset;
		this.y=_e.clientY+window.pageYOffset;
	} else {
	/* for IE */
		this.event=window.event;
		this.event.preventDefault=null;
		this.target=this.event.srcElement;
		this.x=this.event.x;
		this.y=this.event.y;
	}
}
