
$(document).ready(function() {
  ViboKit.init();
  $("a[rel^='album[g]']").prettyPhoto();
  $f("film", {src: 'http://www.vibokit.com/assets/swf/flowplayer-3.1.5.swf', wmode: 'transparent'}, {
    playlist: [
          // this first PNG clip works as a splash image
          {
              url: 'http://www.vibokit.com/assets/img/film.jpg',
              scaling: 'orig'
          },

          // second clip is a video. when autoPlay is set to false the splash screen will be shown
          {
              url: 'http://www.vibokit.com/assets/flv/kit.flv',
              autoPlay: false,

              // video will be buffered when splash screen is visible
              autoBuffering: true
          }
      ]
  });

});

var ViboKit = {

  init: function() {
    $('.lang').bind('click',function() {
      ViboKit.language( $(this).attr('href') );
      return false;
    });
  },

  language: function( code ) {
    code = code.replace('#','');
    $('#lang').html( $('#l' + code ).html() );
  },

  video: function() {

  }
  
}

