{if $_modx->resource.headerMain == 'Шапка-1'}
{'header1'|chunk}
{elseif $_modx->resource.headerMain == 'Шапка-2'}
{'header2'|chunk}
{elseif $_modx->resource.headerMain == 'Шапка-3'}
{'header3'|chunk}
{elseif $_modx->resource.headerMain == 'Шапка-4'}
{'header4'|chunk}
{/if}