/** * jquery lightbox * version 0.5 - 11/29/2007 * @author warren krewenki * * this package is distributed under the bsd license. * for full license information, see license.txt * * based on lightbox 2 by lokesh dhakar (http://www.huddletogether.com/projects/lightbox2/) * originally written to make use of the prototype framework, and script.acalo.us, now altered to use jquery. * * **/ (function($){ $.fn.lightbox = function(options){ // build main options var opts = $.extend({}, $.fn.lightbox.defaults, options); return this.each(function(){ $(this).click(function(){ // initalize the lightbox initialize(); start(this); return false; }); }); /** * initalize() * * @return void * @author warren krewenki */ function initialize() { $('#overlay').remove(); $('#lightbox').remove(); opts.inprogress = false; // if jsondata, build the imagearray from data provided in json format if(opts.jsondata && opts.jsondata.length > 0) { var parser = opts.jsondataparser ? opts.jsondataparser : $.fn.lightbox.parsejsondata; opts.imagearray = []; opts.imagearray = parser(opts.jsondata); } var outerimage = '