<div id="banner-bg" onClick="banner_close(); return false;">
  <div id="banner" <? if ( $this -> banner['languages']['url'] ):?>onClick="document.location.href='<?= $this -> banner['languages']['url'];?>'; return false;"<? endif;?> <? if ( $this -> banner['languages']['src'] ):?>style="background-image: url( '<?= $this -> banner['src'];?>' );"<? endif;?>>
    <? if ( $this -> banner['languages']['html'] ): echo $this -> banner['languages']['html']; endif;?>
    <? if ( $this -> banner['languages']['text'] ): echo $this -> banner['languages']['text']; endif;?>
  </div>
</div>
<script type="text/javascript">  
  function banner_close() 
  {    
    $.ajax(
    {
      type: 'POST',
      cache: false,
      url: 'ajax.php',
      data: 
      {
        a: 'banner_close'
      },
      success: function( data ) 
      { 
        jQuery( "#banner-bg" ).remove();
      }
    });
  }
</script>