In this case the interpreter parses the function definitions first and the last function definition wins.
This question has also been answered at: Ambiguous function declaration in Javascript
There is also a good article here: http://kangax.github.com/nfe/