/** * Galleria (http://monc.se/kitchen) * * Galleria is a javascript image gallery written in jQuery. * It loads the images one by one from an unordered list and displays thumbnails when each image is loaded. * It will create thumbnails for you if you choose so, scaled or unscaled, * centered and cropped inside a fixed thumbnail box defined by CSS. * * The core of Galleria lies in it's smart preloading behaviour, snappiness and the fresh absence * of obtrusive design elements. Use it as a foundation for your custom styled image gallery. * * MAJOR CHANGES v.FROM 0.9 * Galleria now features a useful history extension, enabling back button and bookmarking for each image. * The main image is no longer stored inside each list item, instead it is placed inside a container * onImage and onThumb functions lets you customize the behaviours of the images on the site * * Tested in Safari 3, Firefox 2, MSIE 6, MSIE 7, Opera 9 * * Version 1.0 * Februari 21, 2008 * * Copyright (c) 2008 David Hellsing (http://monc.se) * Licensed under the GPL licenses. * http://www.gnu.org/licenses/gpl.txt **/ /*------------------------------------------------------------------------------------*/ /* Galleria(WP) */ /* */ /* CAUTION!!! This is not a original version of Galleria V1.0. */ /* */ /* Major modification : replaced all '$' global to 'jQuery' */ /* (to keep avoid global name conflicts) */ /* */ /* added the second caption line */ /* */ /* modified by Y2 May 11, 2008 */ /* */ /* V1.2.2 Build 705 6/21 2008 */ /*------------------------------------------------------------------------------------*/ var gCounter = 0; var tempClass = ""; var shrink = new Array(); var index_position = new Array(); var doShowImage = new Array(); var usejcarousel = new Array(); var hideThumbnail = new Array(); var isVertical = new Array(); var thumbnailColumns = new Array(); var thumbnail_caption_text = new Array(); var numOfListItems = new Array(); var caption1CSSStyles = new Array(); var caption2CSSStyles = new Array(); var gInitMsg = new Array(); var gPrepared = new Array(); (function($) { var galleria; /** * * @desc Convert images from a simple html