okay... if it works ;-)

hopefully all this js will get replaced anyway with something simple and sane one of these days.