remove i-(i+1)l from your moveCamera() function...
now i want you to add a new function:
function change_Cam()
{
i++;
i%=6; //cycle between 6 views
}
now somewhere in your main function, add:
on_c=change_Cam;
you should be calling your void moveCamera() function from inside the while loop though, that or put all its instructions within a while loop