The home ceases to be the taxpayer's main home in situations where the taxpayer:
Form 5405
Form 5405 Instructions
Pub 4491, Other Taxes