This is an adroid project which switches to silent mode when the phone is facing down, and switches back to normal mode when facing up.