Point.Inherits(Shape);
function Point(x, y, name){
	if(typeof(name) == "undefined"){
		name = "Point";
	}
	
	this.x = (x == "undefined") ? null : parseInt(x);
	this.y = (y == "undefined") ? null : parseInt(y);
	
	this.Inherits(Shape, name);
}

Point.prototype.constructor = function(x, y){
	this.x = (x == "undefined") ? null : parseInt(x);
	this.y = (y == "undefined") ? null : parseInt(y);
}

Point.prototype.draw = function(size, color){
	size = typeof(size) == "undefined" ? this.size : parseInt(size); 
	color = typeof(color) == "undefined" ? this.color : color;
	
	var pointDiv = document.createElement("div");
	
	switch(this.clientBrowser.browser){
		case "Explorer":{
			pointDiv.style.position = "absolute";
			pointDiv.style.left = this.x + "px";
			pointDiv.style.top = this.y + "px";
			pointDiv.style.width = parseInt(size) + "px";
			pointDiv.style.height = parseInt(size) + "px";
			pointDiv.style.backgroundColor = color;
			break;
		}default:{
			pointDiv.setAttribute("style", "position:absolute; left:" + this.x + "px; top:" + this.y + "px; width:" + parseInt(size) + "px; height:" + parseInt(size) + "px; background-color:" + color + ";");
			break;
		}
	}
	
	return pointDiv;
}