How do I figure out the speed of a jet of water in this example?

I should know how to do this but I don't. I'm not very familiar with vectors. Perhaps I will be after this.

So I have a stream of water falling out of a pipe. It obviously forms a parabola of the form $f(x) = -ax^2+h$, where $h$ is the height of the pipe from the ground, $a$ is some constant and $x$ is the horizontal distance from the pipe.

The question is: if I know $h$, and I know at what distance the water hits the ground, what is the initial speed of the water as it exits the pipe, assuming that it exits the pipe parallel to the ground?

I'm going to try to figure this out myself, but I'd like to return to see how you guys solve this. (btw, not a homework question. I'm 30 years old and just curious.)

-
Did you try to see if you could get it from the general formula for the trajectory of a projectile? –  Arturo Magidin May 6 '12 at 0:39
Actually no. But I just tried to figure it out with Calculus. I have to double check but I'm pretty sure I pee at $1.8 m/s$. A worthy cause for math! –  Korgan Rivera May 6 '12 at 0:57

If the water exits horizontally (you seem to assume that) the height of the water is $y=h-\frac {gt^2}2$. The time to reach the ground comes from setting $y=0, t=\sqrt {\frac{2h}{g}}$The horizontal position is $x=vt$ where $v$ is the velocity on exit from the pipe. Let $d$ be the horizontal distance where the water hits the ground. We have $v=\frac dt=d\sqrt{\frac g{2h}}$. Your $a$ is my $g$, the acceleration of gravity, about $9.8 m/s^2$ or $32 ft/s^2$.