Lightview.show({
  href: '/ajax/',
  rel: 'ajax',
  title: 'Login',
  caption: 'Enter your username and password to login',
  options: {
    autosize: true,
    topclose: true,
    ajax: {
      method: 'get',
      onComplete: function(){ $('name').focus(); }
    }
  }
});

// If you have firebug installed you can run this from your console, have fun.
Lightview.show({ href: 'http://www.google.com', rel: 'iframe', options: { width: 800, height: 500 }});

Lightview.show({
  href: 'http://movies.apple.com/movies/newline/semi_pro/semi_pro-tlr1_h.480.mov',
  rel: 'quicktime' // not required
});

document.observe('lightview:opened', function(event) {
  alert('You opened ' + event.target.href);
});

$('myId').observe('lightview:opened', function(event) {
  new Effect.Pulsate($('lightview').down('.title'));
});

document.observe('lightview:loaded', function() {
  Lightview.show('myId');
});

