/** @license Videobox v2 - jQuery lightbox clone for displaying iframe videos Based on Slimbox 2.04 (c) 2007-2010 Christophe Beyls MIT-style license. */ // Videobox player (lightbox) effect (function vb($) { // Global variables, accessible to videobox only var win = $(window), options, videos, activevideo = -1, activeURL, compatibleOverlay, middle, centerWidth, centerHeight, ie6 = !window.XMLHttpRequest, hiddenElements = [], documentElement = document.documentElement, // DOM elements overlay, center, video, bottomContainer, bottom, caption, button; /* Initialization */ $(function vbll() { // Append the videobox HTML code at the bottom of the document $("body").append( $([ overlay = $('
').click($.vb_close)[0], center = $('
')[0], bottomContainer = $('
')[0] ]).css("display", "none") ); video = $('