',
closeInfo: 'You can also click anywhere outside the image to close.',
download: 'Direct link to download the image.',
help: {
close: '',
interact: ''
},
about: {
text: '',
title: '',
link: ''
}
},
keys: {
close: 'c',
prev: 'p',
next: 'n'
},
handlers: {
// For custom actions
show: null
},
opacity: 0.9,
padding: null, // if null - autodetect
speed: 400, // Duration of effect, milliseconds
rel: 'lightbox', // What to look for in the rels
auto_relify: true, // should we automaticly do the rels?
auto_scroll: 'follow', // should the lightbox scroll with the page? follow, disabled, ignore
auto_resize: true, // true or false
ie6: null, // are we ie6?
ie6_support: true, // have ie6 support
ie6_upgrade: true, // show ie6 upgrade message
colorBlend: null, // null - auto-detect, true - force, false - no
download_link: true, // Display the download link
show_linkback: true, // true, false
show_info: 'auto', // auto - automaticly handle, true - force
show_extended_info: 'auto', // auto - automaticly handle, true - force
// names of the options that can be modified
options: ['auto_scroll', 'auto_resize', 'download_link', 'show_info', 'show_extended_info', 'ie6_support', 'ie6_upgrade', 'colorBlend', 'baseurl', 'files', 'text', 'show_linkback', 'keys', 'opacity', 'padding', 'speed', 'rel', 'auto_relify'],
// -----------------
// Functions
construct: function ( options )
{ // Construct our Lightbox
// -------------------
// Prepare
// Initial construct
var initial = typeof this.constructed === 'undefined' || this.constructed === false;
this.constructed = true;
// Perform domReady
var domReady = initial;
// Prepare options
options = options || {};
// -------------------
// Handle files
// Prepend function to use later
var prepend = function(item, value) {
if ( typeof item === 'object' ) {
for (var i in item) {
item[i] = prepend(item[i], value);
}
} else if ( typeof value === 'array' ) {
for (var i=0,n=item.length; i':'')+'
'+this.text.help.close+'
'+this.text.help.interact+'