var href=document.location.href;
var host=document.location.host;
if(/massify\.com$/.test(host))
{
	if(!/^www\.massify\.com/.test(host) && !/^massify\.com/.test(host))
		document.location=href.replace(/[a-zA-Z0-9_-]*\.massify/,"massify");
}
else
	document.location=href.replace(/[a-zA-Z0-9_-]*\.com/,"massify.com");