Restoring the function by its graph

I need a function that will produce a graph similar to the one below.

This function is odd, symmetrical relatively to origin in III quarter. A is an asymptote (the top part is similar to hyper-tangent); B is the length of "dead zone" (straight line), where the function value is 0. By changing A and B params the user can control the look of the function, so they have to be included in equation somewhere.

Also it's interesting to know, is there some unified procedure for restoring the function by graph? Maybe some super-computer can do that? I can imagine the approximation by using NURBS methods or similar, but hardly imagine this using analytical way.

-
Are you looking for a piecewise solution? How do you feel about $\frac{A}{2}(1 + \frac{2}{pi} tan^{-1}(x-C))$ for an offset C? –  Joshua Shane Liberman Feb 7 '11 at 12:58
@Joshua Shane Liberman, your graph is close, but rotated 90 deg, and the linear part cannot be controlled by A value. Piecewise solution is possible but how to make the correct inflections? –  Andrew Feb 7 '11 at 13:24
I think Joshua's proposal was 0 for 0<x<B and $\frac{A}{2}(1 + \frac{2}{pi} tan^{-1}(x-B))$ for $x\ge B$ It appears the length of the linear part is controlled by B, not A. –  Ross Millikan Feb 7 '11 at 13:46
I'm sorry for my stupidity, now I understood that tan^-1 means "arctan". Yes, your solution is suitable. Can you move it to answers for me to check it? –  Andrew Feb 7 '11 at 14:00