//  Lightview 1.0.4 - 17-01-2008

//  Copyright (c) 2008 Nick Stakenburg (http://www.nickstakenburg.com)
//
//  Permission is hereby granted, free of charge, to any person obtaining
//  a copy of this software and associated documentation files (the
//  "Software"), to deal in the Software without restriction, including
//  without limitation the rights to use, copy, modify, merge, publish,
//  distribute, sublicense, and/or sell copies of the Software, and to
//  permit persons to whom the Software is furnished to do so, subject to
//  the following conditions:
//
//  The above copyright notice and this permission notice shall be
//  included in all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
//  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
//  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
//  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
//  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

//  More information on this project:
//  http://www.nickstakenburg.com/projects/lightview/

var Lightview = {
  Version: '1.0.4',

  // Configuration
  options: {
    backgroundColor: '#ffffff',                            // Background color of the lightview
    border: 12,                                            // Size of the border
    buttons: { opacity: { normal: 0.65, hover: 1 } },      // Opacity of inner buttons
    closeDimensions: {                                     // If you've changed the close button you can change these
      large: { width: 22, height: 22 },                    // not required but it speeds things up.
      small: { width: 22, height: 22 }
    },
    effects: !!window.Effect,                              // Use effects when available, or true/false
    images: '../images/lightview/',                        // the directory of the images, from this file
    imgNumberTemplate: 'Image #{position} of #{total}',    // Want a different language? change it here
    overlay: { display: true, opacity: 0.85 },              // overlay display and opacity
    radius: 12,                                            // Corner radius of the border
    resizeDuration: 0.9,                                   // When effects are used, the duration of resizing in seconds
    sideDimensions: { width: 16, height: 22 },             // see closeDimensions
    slideshow: { delay: 5 },                               // seconds each image is visible in slideshow
    titleCaptionSplit: '::',                               // The characters you want to split title and caption with
    transition: function(pos) {                            // Or your own transition
      return ((pos/=0.5) < 1 ? 0.5 * Math.pow(pos, 4) :
        -0.5 * ((pos-=2) * Math.pow(pos,3) - 2));
    },
    viewport: true,                                        // Resize large images to screen when they open
    zIndex: 15000                                           // zIndex of #lightview, #overlay is this -1
  }
};




