function BreakPoint(parent, lng, lat, ts_start, ts_end, color) {
	this.surface = new RysownikSurface(18,18);
	this.element = new RysownikPath(this.surface);
	this.lat = lat;
	this.lng = lng;
	this.ts_start = ts_start;
	this.ts_end = ts_end;
	this.map = Wiking.getMap();
	this.parent = parent;
	this.color = color;

	this.map.addOverlay(this);
}
BreakPoint.prototype = new GOverlay();

BreakPoint.prototype.initialize = function(map){
	this.map = map;
	this.element.setStroke({color:'rgb(255,255,255)', opacity:1, width:2});
	this.element.setFill('solid',{color:this.color});
	this.element.setD("M 13,18 7,18 2,13 2,7 7,2 13,2 18,7 18,4 18,13 z");
	this.surface.attach(map.getPane(G_MAP_MARKER_PANE));
	GEvent.bindDom(this.surface.getNode(),'click',this,this.showInfo)
}

BreakPoint.prototype.redraw = function(force){
    if (!force) return;

    var point = this.map.fromLatLngToDivPixel(new GLatLng(this.lat, this.lng));
	this.surface.moveTo(point.x-9, point.y-9);
}

BreakPoint.prototype.remove = function() {
    var node = this.surface.getNode();
    node.parentNode.removeChild(node);
}

BreakPoint.prototype.show = function() {
	this.surface.show();
}

BreakPoint.prototype.hide = function() {
	this.surface.hide();
}

BreakPoint.prototype.setColor = function(color) {
	this.element.setFill('solid',{'color':color});
}

BreakPoint.prototype.getNode = function() {
	return this.surface.getNode();
}

BreakPoint.prototype.showInfo = function(e) {
	new BreakInfo(this.parent, this.lat, this.lng, this.ts_start, this.ts_end);
}