function web_full_screen_mode( min_vyska_obsahu, vyska, display_type ){//vyska_okoli,min_vyska_obsahu,vyska, druh okna (full, mini, middle) try{var api = scrollpane.data('jsp');if(api){api.destroy();}}catch(chyba){} if (vyska < min_vyska_obsahu){vyska = min_vyska_obsahu;} $('#all').height( vyska ); $('#foot_rooms').css('left',($(window).width()-$('#centered').width())/2); $("#obsah").width($('#main_content').width()-10); $("#main_content").height(vyska - 405); $("#obsah").height($('#main_content').height()-10); if ($(window).width()-$('#banners_so').width() - 40 > 0){ $('#banners_so').css('left',($(window).width()-$('#banners_so').width())/2); } else { } $("#main_content").css("display", "block"); $("#skryt").css("display", "block"); $("#rozbalit").css("display", "none"); $("#gall_full_top").height($(window).height()); //pro sekci download nastavi 100% vysku scrollpane = $('#obsah').jScrollPane( {scrollbarWidth:15, scrollbarMargin:15, showArrows:true} ); if($('.jspPane').height() <= $('.jspContainer').height()){ $("#skryt").css("left", "auto"); //presun skryvaci tlacitko pokud neni scroll $("#skryt").css("right", "21px"); } else{ $("#skryt").css("left", "auto"); //presun skryvaci tlacitko pokud je scroll $("#skryt").css("right", "21px"); } } //do promenny slideManagerImages da spravny obrazky do dany sekce //bud do #superbgimage vlozi obrazky nebo mu nastavi pozadi function superimage(){ slideManagerImages = new Array( "104_DSCF7488 Panorama.jpg", "103_DSCF7447.jpg", "51__MG_2436.jpg", "52__MG_2478.jpg" ); var pictPath = "admin/pictures4flash/fullsize/"; var pictGenerator = "inc/slidemanager_image.php?ww="+$(window).width()+"&wh="+($(window).height())+"&url="; if ( slideManagerImages.length == 1 ) { $('#superbgimage').css('opacity', 0); //$('#superbgimage').css( 'background-image', 'url("'+pictGenerator + pictPath + slideManagerImages[0]+'")' ); $('#superbgimage').height($('body').height()); $('#superbgimage').width($('body').width()); $('#superbgimage').css('display', 'block'); //alert(pictGenerator + pictPath + slideManagerImages[0]); $('').attr('src', pictGenerator + pictPath + slideManagerImages[0] ).load(function() { $('#superbgimage').css('background-image', 'url('+pictGenerator + pictPath + slideManagerImages[0]+')'); $("#superbgimage").animate({ opacity: 1 }, 2000, function(){ }); // alert("loaded"); }); } else { var html = ""; for (dd=0; dd'; } $('#superbgimage').html( html ); $('#superbgimage').css('display', 'block'); $('#superbgimage').css('opacity', 0); $('#superbgimage').css('background', 'none'); $('#superbgimage img').css("visibility", "visible"); $.fn.superbgimage.options = { slideshow: 1, slide_interval: 6000, transition: 1, transitionout: 1, vertical_center: 1, preload:1, speed: 2000 }; $('#superbgimage').superbgimage(); $("#superbgimage").animate({ opacity: 1 }, 3000, function(){ }); } } var scrollpane; var vyska_iframe; $(document).ready(function() { if($(window).height() > 750){ vyska_iframe = 750; }else{vyska_iframe = $(window).height()} $("#iframe").fancybox({ height: vyska_iframe, overlayOpacity : 0.6, overlayColor : '#000000', width: 1000, padding: 1 }); $("#rozbalit").click(function () { var vyska2; if (vyska2 < min_vyska_obsahu){vyska2 = min_vyska_obsahu;}else{vyska2 = $('body').height();}; $("#rozbalit").css("display", "none"); if($("#all").width() < 1270){$("#main_content").width($("#all").width()-530);}else{$("#main_content").width(700);} $("#komentare_hp").css("visibility", "hidden"); // podminka jeslti je vyska mensi nebo vetsi var vox = $('#main_content').height(); var vo = $('#obsah_text').height(); $("#main_content").toggle('show', function() { scrollpane = $('#obsah').jScrollPane( {scrollbarWidth:15, scrollbarMargin:15, showArrows:true} ); }); $("#skryt").css("display", "block"); if(vox < vo){ $("#skryt").css("right", "30px"); } display_type ="rozbaleno"; }); $("#skryt").click(function () { $("#skryt").css("display", "none"); $("#main_content").toggle('slow', function() { $("#rozbalit").css("display", "block"); }); }); }); // end document ready function show_superbgimage(animations){};