/*
function request() {
  var title = $("div.footer div.maincol div.description strong").text();
  window.location.href = $(this).attr('href')+'?event='+encodeURI(title);

  return false;
}

function initRequest() {
  $("a.request").click(request);
}

$(window).load(function() {
  initRequest();
});
*/

$(document).ready(function() {
  SexyLightbox.initialize({color: 'black', dir: '/static/images/sexylightbox'});

  $('p.processBooking').click(function() {
    if($('div.bookingForm').css('display') == 'block') {
      $('p.processBooking').html('Anmeldung zu dieser Veranstaltung öffnen');
    }
    else {
      $('p.processBooking').html('Anmeldung zu dieser Veranstaltung schließen');
    }
    $('div.bookingForm').slideToggle();
  });
  
  $('table.eventList tbody tr').click(function() {
  	window.location.assign($('base').attr('href') + $(this).attr('summary'));
  });
});
