Pattern of circles

Drag the point!

In the demo above, the blue circles all have the same radius. Where should the red point be placed in order for he blue circles to have the same radius as the yellow circle? If all circles, blue and yellow, have the same radius; the red segments form a polygon. How many sides does this polygon have?