How can I make camera automatically change its location ,so that it would adjust to the models of different size?

I did this, but it needs a lot of tweaking:

306335-zoom.gif

[link text][4]