{if $user->isLoggedIn()}
	{store_messages}
	{* TEMPORARY FIX *}
	{* if $smarty.session.company.companyVanity eq "abc" *}
		{redirect href="?pg=my_home"}
	{* else}	
		{redirect href="?pg=myhome"}
	{/if *}
{elseif $smarty.session.company.companyName}
	{store_messages}
	{redirect href="?pg=my_login"}
{/if}
{if not $errors|@count}
	{assign var="pgLayout" value="file:./layouts/home.tpl"}
{/if}