{{capture name=Rot assign=rotator}}
{{getCollectionByCategory CollectionID=304 ColumnID='4' Value='on' var=Results OrderColumn=5 }}

<div id="rotator">
			<div id="rotatornav">
					<div id="rotatorresume">Resume</div>
					<div id="rotatorpause">Pause</div>
					<div id="rotatorpages"></div>
					<div id="rotatornext"><img src="/images/cycle/next.png"/></div>
					<div id="rotatorprev"><img src="/images/cycle/previous.png"/></div>
			</div>
			<div id="contentstarter"></div>
			<div id="rotatortitlebg"><div id="rotatortitle"></div></div>
			<div id="rotatorsubtitle"></div>
			<div id="rotatorlink"></div>
			{{assign var=tmp value="&qu"|concat:"ot;"}}
			<div class="pics" id="slideshow">
			{{foreach from=$Results item=v key=k name=n}} 
			{{assign var=canAccess value=0}}
			{{if $smarty.session.UserID gt 0}}
					{{CollectionCanAccess userId=$smarty.session.UserID CollectionId=273 rowId=$v.$catId var=canAccess}}
			{{/if}}
			<a href="{{$v.Collection_304_6}}"><img {{if $canAccess eq true}}collectionid="304" collectionrowid="{{$v.Collection_304_ID}}" collectioneditor="1" collectionfilter="11"{{/if}} id="rotatorimageid{{$smarty.foreach.n.index}}" title="{{$v.Collection_304_1|replace:'"':$tmp}}" height="271" width="960" alt="{{$v.Collection_304_2|replace:'"':$tmp}}" link="{{$v.Collection_304_6}}" src="{{$v.Collection_304_3}}" /></a> 
			{{/foreach}}
			</div>
</div>			
{{/capture}}
{{eval var=$rotator}}

