
            $(document).ready(function(){

                $('.fancybox').fancybox();

                fTop = parseInt($('#footer').css('top'));
                dHeight = parseInt(document.height);
                top = dHeight - 154 - 50;
                if( (fTop < top) && (document.title != 'Vybavenie | Chata Zuzana') )
                    $('#footer').css({'top':top})
                top = dHeight - 104;
                if(document.title == 'Víta Vás Chata Zuzana | Chata Zuzana')
                    $('#footer').css({'top':top})
            })
