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);
if(vyska > ($('#menucon').height()+415)){ //dopocte velikost textoveho okna podle menu
$("#main_content").height($('#menucon').height() + 110);
}else{
$("#main_content").height(vyska - 305);
$("#obsah").height($('#main_content').height()-20)
}
$("#obsah").height($('#main_content').height()) //prizpusobi obsah v text. okne
$("#main_content").css("display", "block");
$("#skryt").css("display", "block");
//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", "11px");
}
else{
$("#skryt").css("left", "auto"); //presun skryvaci tlacitko pokud je scroll
$("#skryt").css("right", "11px");
}
}
//do promenny slideManagerImages da spravny obrazky do dany sekce
//bud do #superbgimage vlozi obrazky nebo mu nastavi pozadi
function superimage(){
slideManagerImages = new Array( );
//var webPath = "http://www.hotel-imperial.cz/";
//var webPath = "http://test.virtual-zoom.cz/weby/imp/";webPath + webPath +
var pictPath = "admin/pictures4flash/fullsize/";
var pictGenerator = "inc/slidemanager_image.php?ww="+$(window).width()+"&wh="+($(window).height())+"&url=";
//set_bcg(pictGenerator + pictPath + slideManagerImages[0]);
if ( slideManagerImages.length == 1 ) {
set_bcg(pictGenerator + pictPath + slideManagerImages[0]);
$('#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');
$('').attr('src', pictGenerator + pictPath + slideManagerImages[0] ).load(function() {
$('#superbgimage').css('background-image', 'url('+pictGenerator + pictPath + slideManagerImages[0]+')');
$("#superbgimage").animate({ opacity: 1 }, 2000, function(){ });
});
} else {
var html = "";
// html += '';
for (dd=0; dd';
}
set_bcg(pictGenerator + pictPath + slideManagerImages[0]);
$('#preloader').css('display', 'block');
$('#superbgimage').html( html );
$('#superbgimage').css('display', 'block');
$('#superbgimage').css('opacity', 0);
$('#superbgimage').css('background', 'none');
$('#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,
vertical_center: 1,
preload:1,
speed: 2000 // animation speed
};
$('#superbgimage').superbgimage();
$("#superbgimage").animate({
opacity: 1
}, 3000, function(){
$('#preloader').css('display', 'none');
});
}
}
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");
// podminka jeslti je vyska mensi nebo vetsi
var vox = $('#main_content').height();
var vo = $('#obsah_text').height();
$("#main_content").toggle('show');
//$("#skryt").slideToggle("fast");
scrollpane = $('#obsah').jScrollPane( {scrollbarWidth:15, scrollbarMargin:15, showArrows:true} );
$("#skryt").css("display", "block");
if(vox < vo){
$("#skryt").css("right", "30px");
}
/*$("#main_content").animate({
height: $('#main_content').height()//vo
}, 100, function(){
$("#skryt").css("display", "block");
//$("#skryt").slideToggle("fast"); //zobraz skryvaci tlacitko
scrollpane = $('#obsah').jScrollPane( {scrollbarWidth:15, scrollbarMargin:15, showArrows:true} );
if(vox < vo){
$("#skryt").css("right", "30px");
}
});*/
display_type ="rozbaleno";
});
$("#skryt").click(function () {
$("#rozbalit").css('left', (252 - ($("#rozbalit").width()-$("#rozbalit").height())/2));
$("#rozbalit").css('top', (80 + ($("#rozbalit").width()-$("#rozbalit").height())/2));
$("#skryt").css("display", "none");
$("#main_content").toggle('slow', function() {
$("#rozbalit").css("display", "block");
});
});
}); // end document ready
function show_superbgimage(animations){
};