<div id="rotator">
{{include_php file='file:'|concat:$smarty.server.DOCUMENT_ROOT|concat:'/includes/cache/menu-rotator.php'}}
</div>
        
        <div class="container clearfix">

            <article id="home" class="clearfix">
                    
                <div id="hleft">
                    
                    <div id="homepagetabs">
                        {{include_php file='file:'|concat:$smarty.server.DOCUMENT_ROOT|concat:'/includes/cache/menu-tabs.php'}} 
                    </div>

                    <div id="homebottom" class="clearfix">
                        
                        <div id="hvideo">
                            <img src="{{$smarty.const.HOMEPAGE_YOUTUBE}}" alt="">
                            <div id="hvideotext">
                                <h3>{{$smarty.const.HOMEPAGE_YOUTUBE_HEADING}}</h3>
                                <p><a class="button youtube" href="{{$smarty.const.HOMEPAGE_YOUTUBE_URL}}">Watch</a></p>
                            </div>
                            <div id="videolink"> </div>
                        </div>

                        <div id="bleft" class="box">
                            <h3>Benefits</h3>
                            {{include_php file='file:'|concat:$smarty.server.DOCUMENT_ROOT|concat:'/includes/cache/menu-home-benefits.php'}}
                            
                        </div>

                        


                    </div>


                </div>
                

                <div id="hright">
                    <h3><a href="/news/"><strong>News</strong></a> and <a href="/events/"><strong>Events</strong></a></h3>
                    <div id="hnews" class="clearfix">

{{math equation="x + 2419200" x=$smarty.now assign=oneWeekLater}}
{{news skipFromFuture=1 var=NResults NewsCollection=274 NewsCategoriesCollection=273 NewsCategoriesXRefCollection=275 limit=3 filterCategories=0 isArchived=0}}
{{assign var=CalendarCollection value=236}}
{{calendarEvents collectionID=$CalendarCollection startDay=$smarty.now endDay=$oneWeekLater var=Results}}
{{assign var=CalPrefix value='Collection_'|concat:$CalendarCollection|concat:'_'}}
{{assign var=EventID value=$CalPrefix|concat:'ID'}}
{{assign var=EventName value=$CalPrefix|concat:'1'}}
{{assign var=EventStart value=$CalPrefix|concat:'2'}}
{{assign var=EventEnd   value=$CalPrefix|concat:'3'}}
{{assign var=EventAbstract  value=$CalPrefix|concat:'22'}}
{{assign var=EventSmallImage  value=$CalPrefix|concat:'6'}}
{{assign var=EventDesc  value=$CalPrefix|concat:'4'}}
{{math equation="x + y" x=$NResults|@count y=$Results|@count assign=CountData}}
{{joinResults varNews=$NResults varEvents=$Results count=CountData LimitResults=3 var=Res}}

{{assign var=count value=0}}
{{assign var=evcount value=0}}
{{assign var=ncount value=0}}

                                          
{{foreach from=$Res item=v key=k name=n}}
<div class="onenews{{if $smarty.foreach.n.index eq 2}} thirdnews{{/if}}">
    {{if $v.isEvent eq 1}}
            {{assign var=data value=$v.data}}
            {{assign var=canAccess value=0}}
            {{if $smarty.session.UserID gt 0}}
                    {{CollectionCanAccess userId=$smarty.session.UserID CollectionId=236 rowId=$data.$EventID var=canAccess}}
            {{/if}}
           
            <a {{if $canAccess eq true}} collectionid="236" collectionrowid="{{$data.$EventID}}" collectioneditor="1"{{/if}} href="/events/{{$data.$EventID}}.html">
                                <span class="ndate">{{$data.actdate|date_format:"%b"}}<strong>{{$data.actdate|date_format:"%d"}}</strong></span>
                                <span class="ntitle">{{$data.$EventName}}</span>
                                <span class="ndesc">{{$data.$EventAbstract}}</span>
                                <span class="readmore">READ MORE >></span>
            </a>

    {{else}}
            {{assign var=data value=$v.data}}
            {{assign var=canAccess value=0}}
            {{if $smarty.session.UserID gt 0}}
                    {{CollectionCanAccess userId=$smarty.session.UserID CollectionId=274 rowId=$data.Id var=canAccess}}
            {{/if}}

            <a {{if $canAccess eq true}} collectionid="274" collectionrowid="{{$data.Id}}" collectioneditor="1"{{/if}} href="/news/{{$data.Category}}/{{$data.Id}}.html">
                                <span class="ndate">{{$data.DateStart|date_format:"%b"}}<strong>{{$data.DateStart|date_format:"%d"}}</strong></span>
                                <span class="ntitle">{{$data.Headline}}</span>
                                <span class="ndesc">{{$data.Abstract}}</span>
                                <span class="readmore">READ MORE >></span>
                            </a>
            
    {{/if}}
</div>    
{{/foreach}}
  
                       
                        
                    </div>
                    <h5><a href="/news/">MORE NEWS AND EVENTS</a></h5>
                </div>
                
            </article>

            
                    
        </div>    