<script type="text/javascript">
jQuery(document).ready(function($) {
// We only want these styles applied when javascript is enabled
$('div.navigation').css({'width' : '300px', 'float' : 'left'});
$('div.content').css('display', 'block');
$("#thumbs ul.thumbs a.thumb img").mousedown(function(){
objNN='';
});
// Initialize Advanced Galleriffic Gallery
var gallery = $('#thumbs').galleriffic({
delay: 2500,
numThumbs: 8,
preloadAhead: 16,
enableTopPager: false,
enableBottomPager: true,
maxPagesToShow: 5,
imageContainerSel: '#slideshow',
controlsContainerSel: '#controls',
captionContainerSel: '#caption',
loadingContainerSel: '#loading',
renderSSControls: false,
renderNavControls: true,
nextPageLinkText: '',
prevPageLinkText: '',
enableHistory: true,
autoStart: false,
syncTransitions: false,
defaultTransitionDuration: 900
});
//Устанавливаем fancybox на текущую картинку в слайдере
var objNN='';
$("#slideshow a.advance-link img").live('mouseover',function(){
if(objNN!==$(this)[0]){ objNN=$(this)[0];
$(this).parent().fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">' + title + '</span>';}
});
}
});
});
</script>
Поправил