/**
* jQuery Lightbox Plugin (balupton edition) - Lightboxes for jQuery
* Copyright (C) 2008 Benjamin Arthur Lupton
* http://jquery.com/plugins/project/jquerylightbox_bal
*
* This file is part of jQuery Lightbox (balupton edition).
*
* You should have received a copy of the GNU Affero General Public License
* along with jQuery Lightbox (balupton edition). If not, see .
*/
(function($){if(typeof $.log==="undefined"){if(!$.browser.safari&&typeof window.console!=="undefined"&&typeof window.console.log==="function"){$.log=function(){var args=[];for(var i=0;i0){image.description=image.title.substring(s+2)||image.description;image.title=image.title.substring(0,s)||image.title}}else{image=false}}else{image=false}}if(!image){$.console.error("We dont know what we have:",obj);return false}return image},get:function(image){if(typeof image==="undefined"||image===null){return this.active()}else{if(typeof image==="number"){image=this.list[image]||false}else{image=this.create(image);if(!image){return false}var f=false;for(var i=0;i=0){this.ie6=true}else{this.ie6=false}if(domReady||typeof options.download_link!=="undefined"||typeof options.colorBlend!=="undefined"||typeof options.files==="object"||typeof options.text==="object"||typeof options.show_linkback!=="undefined"||typeof options.scroll_with!=="undefined"){$(function(){$.Lightbox.domReady()})}return true},domReady:function(){var bodyEl=document.getElementsByTagName($.browser.safari?"head":"body")[0];var stylesheets=this.files.css;var scripts=this.files.js;if(this.colorBlend===true&&typeof $.colorBlend==="undefined"){this.colorBlend=true}else{this.colorBlend=typeof $.colorBlend!=="undefined";delete scripts.colorBlend}for(stylesheet in stylesheets){var linkEl=document.createElement("link");linkEl.type="text/css";linkEl.rel="stylesheet";linkEl.media="screen";linkEl.href=stylesheets[stylesheet];linkEl.id="lightbox-stylesheet-"+stylesheet.replace(/[^a-zA-Z0-9]/g,"");$("#"+linkEl.id).remove();bodyEl.appendChild(linkEl)}for(script in scripts){var scriptEl=document.createElement("script");scriptEl.type="text/javascript";scriptEl.src=scripts[script];scriptEl.id="lightbox-script-"+script.replace(/[^a-zA-Z0-9]/g,"");$("#"+scriptEl.id).remove();bodyEl.appendChild(scriptEl)}delete scripts;delete stylesheets;delete bodyEl;$("#lightbox,#lightbox-overlay").remove();$("body").append('