When Total Internal Reflection Occurs