A pure code implement of http://dribbble.com/shots/929359-Camera-Switch