/*
 * jQuery Galleriffic plugin config file
 *
 * Copyright (c) 2008 Trent Foley (http://trentacular.com)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Thanks to Taku Sano (Mikage Sawatari), whose history plugin I adapted to work with Galleriffic
 * Modified by Ghismo (ghismo.com) to disable the location rewrite 
 */
 
 $(document).ready(function() {
						   
// Initially set opacity on thumbs and add
// additional styling for hover effect on thumbs
var onMouseOutOpacity = 0.50;
$('#thumbs ul.thumbs li').css('opacity', onMouseOutOpacity)
.hover(
function () {
$(this).not('.selected').fadeTo('medium', 1.0);
}, 
function () {
$(this).not('.selected').fadeTo('medium', onMouseOutOpacity);
}
);

var gallery = $('#gallery').galleriffic('#thumbs', {
delay:                  4500,
numThumbs:              16,
preloadAhead:           10,
enableTopPager:         false,
enableBottomPager:      true,
imageContainerSel:      '#slideshow',
controlsContainerSel:   '#controls',
captionContainerSel:    '#caption',
loadingContainerSel:    '#loading',
renderSSControls:       true,
playLinkText:           'Play Slideshow',
pauseLinkText:          'Stop Slideshow',
prevLinkText:           'Previous',
nextLinkText:           'Next',
nextPageLinkText:       'Next &rsaquo;',
prevPageLinkText:       '&lsaquo; Prev',
enableHistory:          false,
autoStart:              false,
onChange:               function(prevIndex, nextIndex) {
$('#thumbs ul.thumbs').children()
.eq(prevIndex).fadeTo('slow', onMouseOutOpacity).end()
.eq(nextIndex).fadeTo('slow', 1.0);
},
onTransitionOut:        function(callback) {
$('#slideshow, #caption').fadeOut('slow', callback);
},
onTransitionIn:         function() {
$('#slideshow, #caption').fadeIn('slow');
},
onPageTransitionOut:    function(callback) {
$('#thumbs ul.thumbs').fadeOut('slow', callback);
},
onPageTransitionIn:     function() {
$('#thumbs ul.thumbs').fadeIn('slow');
}
});
});