$(document).ready(function() {
  $('.slideshow').cycle({ 
      fx:     'fade', 
      speed:  200, 
      timeout: 8000,
      pager:   '.slideshow-pager',
      activePagerClass: 'active',
      pagerAnchorBuilder: function(idx, slide) {
        return '<a href="#"></a>'
      }
  });
  
  $('body').click(function (event) {
      $('.drop-info').hide();
      $('.drop').removeClass("active");
  })
  $('.drop').click(function (event) {
      $('.drop-info').hide();
      $(this).addClass("active");
      $(this).parent().children(".drop-info").toggle();
      event.stopPropagation();
  });
  
  /*external links*/
  $('a').filter(function() {
   return this.hostname && this.hostname !== location.hostname;
  }).attr('rel', 'external');
  $('a[rel*="external"]').live('click',function(){ this.target='_blank'; });
    
});

//Cufon.replace('h1, h2, .booking-wizard .title, .notification-title'); // Works without a selector engine
