Transform camera when object is clicked

I am working on a game where I need the camera to move to specific coordinates and stay there (static) when an object is clicked. How would I go about doing this? I have it working so a level loads when the object is clicked already. Any help would be much appreciated!

function OnMouseOver(){

// Move camera to coordinates
yield WaitForSeconds (6);
Application.LoadLevel("level name");



You can use lerp to move the camera smoothly from one posiotion to other for example ,I have written the code in c# you can convert it into Jscript

public GameObject camera;

void Update()
camera.transform.position = Math.Lerp(fromPosition,Toposition , .5);