Element.implement({
	mouseInside: function(e) {
		return !this.mouseOutside(e);
	},
	
	mouseOutside: function(e) {
		var coords = this.getCoordinates();
		
		var b = (e.page.x > coords.left && e.page.x < (coords.left + coords.width)) &&
				(e.page.y > coords.top  && e.page.y < (coords.top + coords.height)) ? false : true;
		
		return b;
	},
	
	hasVerticalScrollbar: function() {
		return (this.clientHeight < this.scrollHeight);
	}
});
