text/javascript">
		function MyShape()
		{
			mxCylinder.call(this);
		};
	
		mxUtils.extend(MyShape, mxCylinder);

		MyShape.prototype.defaultPos1 = 20;
		MyShape.prototype.defaultPos2 = 60;
		
		MyShape.prototype.getLabelBounds = function(rect)
		{
		 	var pos1 = mxUtils.getValue(this.style, 'pos1', this.defaultPos1) * this.scale;
		 	var pos2 = mxUtils.getValue(this.style, 'pos2', this.defaultPos2) * this.scale;

		 	return new mxRectangle(rect.x, rect.y + pos1, rect.width, Math.min(rect.height, pos2) - 