$(document).ready(function() {
    $.blockUI({
          //message: '<div style="background: url(images/layer2.jpg); width:593px; height:234px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:20px; height:20px; position:absolute; top: 14px; left:15px;"></a><a href="<?= l(21) ?>" style="display:block; cursor:pointer; width:174px; height:30px; position:absolute; bottom: 16px; left:20px;"></a><a href="<?= l(20) ?>" style="display:block; cursor:pointer; width:130px; height:30px; position:absolute; bottom: 16px; right:260px;"></a></div>',
          //message: '<div style="background: url(images/vitlayer3.jpg); width:593px; height:234px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:16px; height:16px; position:absolute; top: 13px; right:11px;"></a><a href="nyeremenyjatek.html" style="display:block; cursor:pointer; width:123px; height:33px; position:absolute; bottom: 19px; left:32px;"></a></div>',
          //message: '<div style="background: url(images/valami.jpg); width:593px; height:234px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:20px; height:20px; position:absolute; bottom: 14px; left:15px;"></a><a href="piacter-scholtz22.html" style="display:block; cursor:pointer; width:283px; height:202px; position:absolute; top: 25px; left:38px;"></a></div>',
          //message: '<div style="background: url(images/punkosdi_banner.jpg); width:685px; height:234px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:20px; height:20px; position:absolute; top: 14px; left:15px;"></a><a href="fotopalyazat.html" style="display:block; cursor:pointer; width:130px; height:30px; position:absolute; bottom: 13px; left:155px;"></a><a href="vitorlas-kozvetites-punkosdi-regatta.html" style="display:block; cursor:pointer; width:130px; height:30px; position:absolute; bottom: 13px; right:24px;"></a></div>',
          //message: '<div style="background: url(images/layer_kekszalag.jpg); width:685px; height:234px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:20px; height:20px; position:absolute; top: 14px; left:15px;"></a><a href="fotopalyazat.html" style="display:block; cursor:pointer; width:130px; height:30px; position:absolute; bottom: 13px; left:155px;"></a></div>',
          //message: '<div style="background: url(images/akcio_layer_vit.jpg); width:685px; height:234px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:20px; height:20px; position:absolute; top: 14px; left:15px;"></a><a href="vitorlastanfolyam-felnott-kaloz.html" style="display:block; cursor:pointer; width:130px; height:30px; position:absolute; bottom: 13px; left:155px;"></a></div>',
          //message: '<div style="background: url(/images/gleccser_layer.jpg); width:647px; height:320px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:202px; height:30px; position:absolute; top: 266px; left:412px;"></a><a href="nyeremenyjatek.html" style="display:block; cursor:pointer; width:173px; height:30px; position:absolute; top: 266px; left:34px;"></a></div>',
          //message: '<div style="background: url(/images/nautika_layer.jpg); width:647px; height:320px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:21px; height:21px; position:absolute; top: 9px; left:9px;"></a><a href="nyeremenyjatek.html" style="display:block; cursor:pointer; width:176px; height:33px; position:absolute; top: 265px; left:33px;"></a></div>',
          message: '<div style="background: url(/images/NauticaJatekLayer.jpg); width:647px; height:320px; position:relative;"><a id="closebutton" style="display:block; cursor:pointer; width:21px; height:21px; position:absolute; top: 9px; left:9px;"></a><a target="_blank" href="http://hu-hu.facebook.com/vitorlasmagazin" style="display:block; cursor:pointer; width:197px; height:30px; position:absolute; top: 266px; left:21px;"></a></div>',
          css: {
              width: '647px',
              height: '320px',
              border: 'none',
              cursor: 'default'
          }
      });
      $('#closebutton').attr('title','Bezárás').click($.unblockUI);

      setTimeout($.unblockUI, 16000);
});

