/**************************************************
  Coppermine 1.5.x Plugin - anythingslider
  *************************************************
  Copyright (c) 2013 Mykee (www.acegem.hu)
  *************************************************
  This plugin based on AnythingSlider JQuery script.
  A very robust jQuery-based slider plugin. Need to
  link to a specific slide? No problem. Like a choice
  of themes? Got it. Need callbacks for when specific
  slider actions happen? Sure. Need custom tab names?
  You got it. Need more than one slider per page? Easy.
  More information and license here: https://github.com/CSS-Tricks/AnythingSlider
  ************************************************
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/branches/cpg1.5.x/plugins/anythingslider/readme.txt $
  $Revision: 6994 $
  $LastChangedBy: mykee $
  $Date: 2013-09-01 17:09:10 +0100 (Sun, 1 Sep 2013) $
  **************************************************/


What it does:
-------------
Displays a JavaScript AnythingSlider on album list page.
This plugin has been created for cpg1.5.x.

=========================================================================

How to install:
---------------
* Unzip
* Upload folder 'anythingslider' into Coppermine's plugins folder
* Go to plugin manager page and install it

How to enable:
--------------
* To enable this plugin, you'll have to add "anythingslider" to "the content
of the main page" in coppermine's config in the section "Album list view".
The setting should look like "breadcrumb/catlist/alblist/anythingslider"
or similar. For details, review the documentation that comes with coppermine
(inside the docs folder) in the section "The gallery configuration page" >
"Album list view" > "The content of the main page".

=========================================================================

Plugin settings (Use the additional Settings link under 'anythingslider' section in Plugin Manager menu):
-----------------
* Use standard code - Default 'yes', if no, then can use custom javascript code for plugin, cannot use plugin parameters
* Load JQuery - If JQuery loaded yet, then use 'no', otherwise 'yes' 
* Select an album - Select default album for anythingslider
* AnythingSlider theme - Select a theme for AnythingSlider (more information on developer's page)
* Filter for photos by orientation - Select picture type for show
* Show header - Show album header on top of gallery
* Number of pics - Default pieces of photos. Minimum 1, maximum 10 (full sized) pictures for show (do not use higher values!)

Plugin parameters:
* Delay - How long between slideshow transitions in AutoPlay mode (in seconds)
* Show picture caption - Show picture caption 
* Enable strech content - Fixed slider size, and picture strech to size
* Autoplay - Enable autoplay or not
* Show arrows - Enable arrows
* Show navigation - Enable navigations (tabs or squares)
* Enable Start/Stop option - Enable slideshow button (If user click on any arrows or use keyboard navigation, slideshow stopped!)
* Keyboard navigation - Enable navigation for keyboard (arrow keys)
* Addon parameters - Default is empty. Can add plus parameters with comma separed like this: startPanel: 2,
Attention: if use any non compatible parameter, then AnythingSlider will not work! Check parameters on AnythingSlider developer's site.

Custom parameters:
* Custom javascript code - Default is empty. If not use Standard code, then write any javascript code to Anythingslider.
Attention: if use any non compatible code, then AnythingSlider will not work! Check functions and samples on AnythingSlider developer's site.

Other parameters:
* Fix height - Default is no. Height override width parameter, but not working on any times, test it with your pictures. 
* Width - Default is 100%. Can use pixel or % like this: 800px or 95%
* Height - Default is 550. If use fixed height or strech content, then use this parameter to height in pixels
* Div container width - Default is empty. Can add AnythingSlider wrapper width
* AnythingSlider ID - Default is 'slider1'. Can rename AnythingSlider UL ID
* AnythingSlider DIV Wrapper Class - Default is 'anythingsliderwclass'. Can use custom class name for wrapper  


How to add to your page:
-----------------
Go to your gallery Settings, and select Album list view. To "The content
of the main page" section add "anythingslider" parameter.

Additional information:
-----------------
anythingslider gallery not show next items:
- no thumbnail for item (like video)
- no enable a photo by admin
- user galleries

If you an developer, then can add more effects, parameters or updates for scripts, see JQuery script developer's sites.
For any custom CSS settings use plugins/anythingslider/css/main.css file.

=========================================================================

Browser Compatibility:
----------------------
The JavaScript anythingslider is tested and works perfectly in these browsers:
- IE 8 and higher
- Firefox 3.x and higher (Win)
- Opera 9.x and higher (Win)
- Chrome (all version) (Win)
It probably works fine in many other browsers, too. Check compatibility list on anythingslider site.

=========================================================================

Credits:
--------
This plugin is written by Mykee and based on the "AnythingSlider" by Chris Coyier (https://github.com/CSS-Tricks/AnythingSlider).
Don't try to contact the plugin author for support - post on the board publicly instead.

=========================================================================

Change log:
-----------
v1.3 (2014/09/27)
-----------------
- added restriction mode for sql query

v1.2 (2014/07/11)
-----------------
- Updated script to 1.9.4 version
- Slider show on gallery page only
- Optimized code

v1.1 (2013/09/04)
-----------------
- added normal or full size picture selector
- can change link under photo (to photo, to album, no link)

v1.0 (2013/09/01)
-----------------
- code started