function web_full_screen_mode( min_vyska_obsahu, vyska, mode ){//vyska_okoli,min_vyska_obsahu,vyska if (vyska < min_vyska_obsahu){vyska = min_vyska_obsahu;} $('#all').height( vyska ); $('#centered').height( vyska - 120 -95-30 ); //$('#superbgimage').height( vyska ); if($('#all').height()<490){ $('#news').css('display','none'); }else{ $('#news').css('display','block'); } //$('#content_inner').height( $('#content').height() - 45 ); scrollpane = $('#content_inner').jScrollPane( {scrollbarWidth:12, scrollbarMargin:10, verticalDragMinHeight: 50, verticalDragMaxHeight: 50 } ); } //do promenny slideManagerImages da spravny obrazky do dany sekce //bud do #superbgimage vlozi obrazky nebo mu nastavi pozadi function superimage(){ slideManagerImages = new Array( "1_1.jpg" ); var webPath = "http://www.archibald.cz/at-the-charles-bridge-hotel-prague/"; // var webPath = "http://www.archibald.cz.gds57b.active24.cz/at-the-charles-bridge-hotel-prague/"; var pictPath = "admin/pictures4flash/fullsize/"; var pictGenerator = webPath + "inc/slidemanager_image.php?ww=1100&wh=449&url="; if ( slideManagerImages.length == 1 ) { $('#superbgimage').css( 'background-image', 'url("'+pictGenerator + pictPath + slideManagerImages[0]+'")' ); } else { var html = ""; for ( pict in slideManagerImages ){ html += ''; } $('#superbgimage').html( html ); $('#superbgimage img').css("visibility", "visible"); // Options for SuperBGImage $.fn.superbgimage.options = { //slideshow: 1, // 0-none, 1-autostart slideshow //slide_interval: 6000, // interval for the slideshow //transition: 1, //transitionout: 1, //speed: 2000 // animation speed }; /**/ //$('#superbgimage').superbgimage(); $("#superbgimage").css('height','500px'); } } // initialise plugins jQuery(function(){ jQuery('ul.sf-menu').superfish({ delay: 100, pathClass: 'current', speed: 'fast' }); }); var scrollpane; $(document).ready(function() { // /*$("#enlarge").click(function () { try{var api = scrollpane.data('jsp'); if(api){api.destroy();}}catch(chyba){} var vyska2; if (vyska2 < min_vyska_obsahu){vyska2 = min_vyska_obsahu;}else{vyska2 = $('body').height();}; $("#enlarge").css("display", "none"); $("#enclose").css("display", "none"); $("#ensmall").css("display", "none"); $("#hide").css("display", "none"); $("#ban1_large_label").css("display", "none"); $("#page_nav").width(980); $("#enlarge2").css("display", "none"); $("#ban1_large").animate({ width: '968', height: ( vyska2 - 116 - 29 - 30 - 90), }, 1000, function(){ $("#hide").css("display", "inline"); $('#ban1_large_in').height($('#ban1_large').height()-10); if ($("#page_nav").width() < 500) { $("#enclose").css("display", "inline"); }else{$("#ensmall").css("display", "inline"); }; scrollpane = $('#ban1_large_in').jScrollPane( {scrollbarWidth:10, scrollbarMargin:10, verticalDragMinHeight: 27, verticalDragMaxHeight: 27 } ); }); display_type ="full"; });*/ /*$("#enclose,#ensmall").click(function () { try{var api = scrollpane.data('jsp'); if(api){api.destroy();}}catch(chyba){} $("#enlarge").css("display", "none"); $("#enclose").css("display", "none"); $("#ensmall").css("display", "none"); $("#hide").css("display", "none"); $("#ban1_large_label").css("display", "none"); $("#page_nav").width(287); $("#ban1_large").animate({ width: '275', height: '360', }, 1000, function(){ $("#hide").css("display", "inline"); $("#enlarge").css("display", "inline"); $('#ban1_large_in').height($('#ban1_large').height()-10); $("#enlarge2").css("display", "block"); // scrollpane = $('#ban1_large_in').jScrollPane( {scrollbarWidth:10, scrollbarMargin:10, verticalDragMinHeight: 27, verticalDragMaxHeight: 27 } ); }); display_type ="middle"; }); $("#hide").click(function () { try{var api = scrollpane.data('jsp'); if(api){api.destroy();}}catch(chyba){} $("#enlarge").css("display", "none"); $("#enclose").css("display", "none"); $("#ensmall").css("display", "none"); $("#hide").css("display", "none"); $("#enlarge2").css("display", "none"); $("#page_nav").width(287); $("#ban1_large").animate({ width: '275', height: '25', }, 1000, function(){ $("#enclose").css("display", "inline"); $("#enlarge").css("display", "inline"); $('#ban1_large_in').height($('#ban1_large').height()-10); $("#ban1_large_label").css("display", "block"); }); display_type ="small"; }); */ }); // end document ready