
$(function(){$.fn.superbgimage.options={id:'superbgimage',z_index:-1,inlineMode:0,showimage:1,vertical_center:1,transition:1,transitionout:1,randomtransition:0,showtitle:0,slideshow:1,slide_interval:10000,randomimage:0,speed:'slow',preload:1,onShow:superbgimage_show,onHide:superbgimage_hide,onMouseenter:0,onMouseleave:0,onMousemove:0};$('#thumbs1').superbgimage();});function superbgimage_hide(img){$('#showtitle').hide();var container=$("#slideshow");var currentImg=container.children(":visible");var slideCount=container.children().length;var nextIndex=($.superbg_imgActual-1)%slideCount;var nextImg=container.children(":eq("+nextIndex+")")
$(currentImg).fadeOut("slow");nextImg.fadeIn("slow");}
function superbgimage_show(img){$('#superbgimage').css('background','none');$('#superbgimage').append($('#showtitle'));$('#showtitle p.imagecount').html('image '+img+' of '+$.superbg_imgIndex);if($('#thumbs1').css('display')=='block'){$('#showtitle p.title').html($('#thumbs1 a'+"[rel='"+img+"']").attr('title'));}else{$('#showtitle p.title').html($('#thumbs2 a'+"[rel='"+img+"']").attr('title'));}
$('#showtitle').fadeIn('fast');}
my_slideshowActive=false;function superbgimage_mouseenter(img){if($.superbg_slideshowActive){my_slideshowActive=true;if($('#pause').length==0){$('body').prepend('');}
$('#pause').css('position','absolute').css('z-index',3).show();return $('#thumbs').stopSlideShow();}}
function superbgimage_mouseleave(img){if(my_slideshowActive&&($('#pause').length>0)&&($('#pause').css('display')=='block')){$('#pause').hide();return $('#thumbs').startSlideShow();}}
function superbgimage_mousemove(img,e){if(my_slideshowActive&&($('#pause').length>0)){$("#pause").css("top",(e.pageY+20)+"px").css("left",(e.pageX+20)+"px").show();}}
