Sadly the system proxy selector does not handle PAC/WPAD/JS specifications, confirmed by my testing with Windows or MacOS X. Even on Java6, which includes a JavaScript interpreter.
I'm hoping proxy-vole http://code.google.com/p/proxy-vole/ may do the trick.