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

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