Math.max(0, pos1));
		};
		
		MyShape.prototype.redrawPath = function(path, x, y, w, h, isForeground)
		{
		 	var pos1 = mxUtils.getValue(this.style, 'pos1', this.defaultPos1);
		 	var pos2 = mxUtils.getValue(this.style, 'pos2', this.defaultPos2);
		 	
			if (isForeground)
			{
				if (pos1 < h)
				{
					path.moveTo(0, pos1);
					path.lineTo(w, pos1);
				}
				
				if (pos2 < h)
				{
					path.moveTo(0, pos2);
					path.lineTo(w, pos2);
				}
			}
			else
			{
				path.rect(0, 0, w, h);
			}
		};

		mx