camera rotations

I’m really having a hard time trying to figure this out.

I want to make the motion of the camera rotate around an arbitrary pivot point (in 3 dimensions using the mouse). I’m looking to mimic the control sceme used in most 3d modelling programs.

Please help me!

thought about gluLookAt?

Marty