// JavaScript Document

jQuery(document).ready(function() {
    $("a#single").fancybox({
        'transitionIn'	: 'none',
        'transitionOut'	: 'none',
        'titlePosition'	: 'over'
    });
    
    $("a[rel=galery]").fancybox({
        'transitionIn'		: 'none',
        'transitionOut'		: 'none',
        'titlePosition' 	: 'over',
        'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });
    
    setTimeout(function(){
        $("label.submited,label.error").fadeOut("slow");
    }, 4000);
});
