{if $resListPublishedAd[16]|@count gt 0}<div class="addbanner" align="center">
<div class="add-cnt-div">
<ul class="promo_banner"> 
 {foreach from=$resListPublishedAd[16] item="resPromoBanner16" key="key1"}
{if $resPromoBanner16.bannerDisplayType=='Image'}
<li>
{html->anchor title="Banner Image" href="{$resPromoBanner16.bannerURL}" target="_blank" content="<img src='{$view_public_path}/uploads/adBanner/thumb/{$resPromoBanner16.bannerImage}' title='{$resPromoBanner16.bannerURL}' alt='Sample Banner' width='{$resPromoBanner16.bannerTypeWidth}' height='{$resPromoBanner16.bannerTypeHeight}' align='absmiddle' />"}
</li>
{/if}
 {if $resPromoBanner16.bannerDisplayType=='Script'}
<li><div style="height:{$resPromoBanner16.bannerTypeHeight}px; width:{$resPromoBanner16.bannerTypeWidth}px; overflow:scroll;">{$resPromoBanner16.bannerScript}</div><li>
{/if} 
{if $resPromoBanner16.bannerDisplayType=='Swf'} 
{assign var="swfUrl" value="{$resPromoBanner16.bannerURL}"}
{assign var="swfContent" value="{$view_public_path}/uploads/adBanner/Swf/{$resPromoBanner16.bannerSwf}"}
<li>
<div class="slip">	
<object wmode="opaque" style="cursor:pointer;" width="{$resPromoBanner16.bannerTypeWidth}" height="{$resPromoBanner16.bannerTypeHeight}">
<param name="movie" value="{$swfContent}">
<embed wmode="opaque" src="{$swfContent}" width="{$resPromoBanner16.bannerTypeWidth}" height="{$resPromoBanner16.bannerTypeHeight}"  type="application/x-shockwave-flash" 

pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>
</object>
{if $swfUrl != ""}
<a href="{$swfUrl}" class="banner-swf-link" target ="_blank"></a> 
{/if}
</div>
{*
<object wmode="opaque" style="cursor:pointer;" width="{$resPromoBanner16.bannerTypeWidth}" height="{$resPromoBanner16.bannerTypeHeight}">
  <param name="movie" value="{$view_public_path}/banner/bannerProxy.swf?targetURL={$swfUrl}&targetSWF={$swfContent}">
  <embed wmode="opaque" src="{$view_public_path}/banner/bannerProxy.swf?targetURL={$swfUrl}&targetSWF={$swfContent}" width="{$resPromoBanner16.bannerTypeWidth}" height="{$resPromoBanner16.bannerTypeHeight}" type="application/x-shockwave-flash" 

pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed>
</object>
*}
</li>
{/if}
{/foreach}</ul>
</div>
</div>{/if}