Looks like you've got JavaScript disabled in your browser - you'll get a better site experience if you enable JavaScript
{foreach $_item as $_i} .... .stuff {/foreach}
{foreach $_item as $_i} {if $_i@iteration % 2 == 0} PUT YOUR ADVERT IN HERE {/if} .... .stuff {/foreach}