function SWFDelegate(url,width,height,caption) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','lightbox');
   objLink.setAttribute('title',caption);
   if(typeof width != 'undefined') {
      objLink.setAttribute('width',width);
   }
   if(typeof height != 'undefined') {
      objLink.setAttribute('height',height);
   }
   Lightbox.prototype.start(objLink);
}

function setIntroAdv() {
  var datum = new Date();
  var d_hon = datum.getMonth() + 1;
  var d_nap = datum.getDate();
  
  // Margita-Kupa 2009
  /*
  if((d_hon == 8) && ((d_nap > 2) && (d_nap <= 8))) {
    SWFDelegate('images/parties/margita-kupa-090815-v2ff_25.jpg',620,877,
                'Margita-Kupa 2009, Szentmargitfalva');
  }
  if((d_hon == 8) && ((d_nap > 8) && (d_nap <= 16))) {
    SWFDelegate('images/parties/margita-kupa-090815-v3-25.jpg',620,877,
                'Margita-Kupa 2009, Szentmargitfalva');
  }
  */
  
}