var ceny = {X5A13:"199 kč",X5A14:"299 kč",X5A15:"399 kč",X5A16:"499 kč",X5A17:"15999 kč",X4A13:"499 Kč",X4A14:"1399 Kč",X4A15:"2999 Kč",X4A16:"Dohodou",X4A17:"Dohodou",X86A15:"1999 Kč",X5A18:"20",X5A19:"1500 kč",X6A13:"399 kč",X6A14:"1199 kč",X6A15:"2799 kč",X6A16:"12999 kč",X6A17:"35000 kč",X89A13:"999 Kč",X6A19:"35000 kč",X7A13:"199 kč",X7A14:"255 kč",X7A15:"999 kč",X7A16:"5 999 kč",X7A17:"9 999 kč",X7A18:"25",X7A19:"1 500 kč",X8A13:"399 kč",X8A14:"789 kč",X8A15:"2299 kč",X8A16:"13399 kč",X8A17:"39999 kč",X8A18:"15",X8A19:"5000 kč",X68A16:"1799",X68A17:"2990",X9A13:"499 Kč",X9A14:"1299 Kč",X9A15:"3399 Kč",X9A16:"6990 kč",X9A17:"23900 kč",X78A15:"4490 Kč",X78A16:"15990",X11A13:"399 Kč",X11A14:"1199 Kč",X11A15:"2499 Kč",X11A16:"Dohodou",X11A17:"24990 Kč",X11A18:"061",X11A19:"24990",X14A13:"599 Kč",X14A14:"1599 Kč",X14A15:"3990 Kč",X14A16:"Dohodou",X14A17:"49900 Kč",X14A18:"071",X16A13:"199 Kč",X16A14:"429 Kč",X16A15:"989 Kč",X16A16:"1199 Kč",X16A17:"2580 Kč",X33A14:"499Kč",X17A13:"199 Kč",X17A14:"449 Kč",X17A15:"999 Kč",X17A16:"2099 Kč",X17A17:"3990 Kč",X33A13:"249 Kč",X24A18:"063",X20A13:"249 Kč",X20A14:"490 Kč",X20A15:"1399 Kč",X20A16:"2290 Kč",X20A17:"3190 Kč",X21A13:"269 Kč",X21A14:"499 Kč",X21A15:"1499 Kč",X21A16:"2899 Kč",X21A17:"3599 Kč",X55A16:"2290 Kč",X22A13:"599 Kč",X22A14:"1499 Kč",X22A15:"1999 Kč",X22A16:"3999 Kč",X22A17:"Dohodou",X32A13:"999 Kč",X54A13:"399 Kč",X18A13:"299 Kč",X18A14:"599 Kč",X18A15:"1999 Kč",X18A16:"2999 Kč",X18A17:"Dohodou",X15A13:"199",X23A13:"299 Kč",X23A14:"799 Kč",X23A15:"2099 Kč",X23A16:"4999 Kč",X50A18:"999",X24A13:"990 Kč",X24A14:"2499 Kč",X24A15:"4990 Kč",X24A16:"Dohdou",X24A17:"Dohodou",X26A13:"399 Kč",X26A14:"1199Kč",X26A15:"2799 Kč",X26A16:"10990 Kč",X26A17:"30990 Kč",X35A18:"092",X27A13:"249 kč",X27A14:"699 Kč",X27A15:"1699Kč",X27A16:"3999 Kč",X27A17:"12490 Kč",X27A18:"052",X28A13:"249 Kč",X28A14:"749Kč",X28A15:"1699 Kč",X28A16:"6999 Kč",X28A17:"20999 Kč",X36A18:"091",X29A13:"219 Kč",X29A14:"439 Kč",X29A15:"2199 Kč",X29A16:"6599 Kč",X29A17:"19990 Kč",X72A13:"599 Kč",X32A14:"2490 Kč",X32A15:"5990 Kč",X32A16:"10990 Kč",X32A17:"39900Kč",X32A18:"273",X33A15:"1239 Kč",X33A16:"Dohdou",X33A17:"Dohodou",X33A18:"287",X30A13:"399 Kč",X30A14:"999Kč",X30A15:"2799 Kč",X30A16:"Dohdou",X30A17:"18900 Kč",X30A18:"281",X34A13:"399 Kč",X34A14:"1349Kč",X34A15:"2590 Kč",X34A16:"11990 Kč",X34A17:"33990 Kč",X41A16:"10990 Kč",X41A15:"2699 Kč",X41A14:"1199 Kč",X41A13:"399 Kč",X31A13:"449 Kč",X31A14:"1399 Kč",X31A15:"2999 Kč",X31A16:"12999 Kč",X31A17:"39900Kč",X35A13:"99 Kč",X35A14:"299 Kč",X35A15:"399 Kč",X35A16:"999Kč",X35A17:"2990 Kč",X36A13:"119 Kč",X36A14:"299 Kč",X36A15:"699 Kč",X36A16:"1499Kč",X36A17:"3990 Kč",X37A13:"od 119 Kč",X37A14:"od 359 Kč",X37A15:"od 699Kč",X37A16:"od 1990 Kč",X37A17:"od 4990 Kč",X9A18:"111",X31A18:"042",X38A13:"od 149 Kč",X38A14:"od 439 Kč",X38A15:"od 999Kč",X38A16:"od 2590 Kč",X38A17:"od 6990 Kč",X38A18:"083",X39A13:"od 199 Kč",X39A14:"od 599 Kč ",X39A15:"od 1299Kč",X39A16:" od 1999 Kč",X39A17:"od 5999 Kč",X39A18:"082",X40A13:"299 Kč",X40A14:"899Kč",X40A15:"1999 Kč",X40A16:"8990 Kč",X40A17:"27900 Kč",X40A18:"072",X41A17:"25990 Kč",X42A13:"299 Kč",X42A14:"999 Kč",X42A15:"1999 Kč",X42A16:"Dohdou",X42A17:"12990 Kč",X42A18:"285",X45A13:"249 Kč",X45A14:"699 Kč ",X45A15:"1699Kč",X45A16:"Dohdou",X45A17:"Dohodou",X43A13:"69 Kč",X43A14:"129 Kč",X43A15:"299 Kč",X43A16:"399 Kč",X43A17:"Dohodou",X44A13:"99 Kč",X44A14:"199 Kč",X44A15:"499 Kč",X44A16:"Dohdou",X49A13:"389 Kč",X49A14:"779 Kč",X49A15:"1959 Kč",X49A16:"Dohdou",X49A17:"Dohodou",X16A18:"131",X51A13:"399 Kč",X51A14:"1199 Kč",X51A15:"2490 Kč",X51A16:"Dohdou",X51A17:"Dohodou",X51A18:"282",X92A13:"1199",X37A18:"091",X29A19:"16990",X86A16:"6990 Kč",X53A16:"2199 Kč",X55A17:"4799 Kč",X18A18:"170",X55A13:"199 Kč",X55A14:"459 Kč",X55A15:"999 Kč",X4A19:"69000",X53A13:"229 Kč",X53A14:"449 Kč",X53A15:"999 Kč",X54A14:"999 Kč",X54A15:"2799 Kč",X54A16:"5999 Kč",X54A17:"Dohodou",X54A18:"112",X26A18:"021",X57A13:"199 Kč",X57A14:"599 Kč",X57A15:"1299 Kč",X57A16:"2099 Kč",X57A17:"Dohodou",X57A18:"173",X45A18:"283",X52A13:"199 Kč",X52A14:"449 Kč",X52A15:"999 Kč",X52A16:"2049Kč",X52A17:"Dohodou",X46A13:"69",X46A14:"129",X46A15:"329",X46A16:"699",X46A17:"Dohodou",X55A19:"3590 Kč",X23A17:"Dohodou",X58A13:"99 Kč",X58A14:"189 Kč",X58A15:"699 Kč",X58A16:"990 Kč",X58A17:"2590 Kč",X58A18:"177",X59A13:"139 Kč",X59A14:"269 Kč",X59A15:"899 Kč",X59A16:"1599 Kč",X59A17:"3990 Kč",X59A18:"194",X60A13:"149 Kč",X60A14:"399 Kč",X60A15:"949 Kč",X60A16:"1999 Kč",X60A17:"od 2990 Kč",X60A18:"196",X61A13:"99 Kč",X61A14:"299 Kč",X61A15:"699 Kč",X61A16:"1490 Kč",X61A17:"2490 Kč",X61A18:"161",X62A13:"399 Kč",X62A14:"999 Kč",X62A15:"2990 kč",X62A16:"Dohodou",X62A17:"11990",X62A18:"113",X66A13:"149 kč",X66A14:" 399Kč",X66A15:"799 kč",X66A16:"1490 Kč",X66A17:"4590 kč",X66A18:"183",X67A13:"399Kč",X67A14:"789 Kč",X67A15:"2790 kč",X67A16:"Dohodou",X67A17:"9990 Kč",X67A18:"186",X65A13:"219 Kč",X65A14:"449 Kč",X65A15:"2690 Kč",X65A16:"Dohodou",X65A17:"7900 Kč",X65A18:"188",X64A13:"49 Kč",X64A14:"99 Kč",X64A15:"290 Kč",X64A16:"Dohodou",X64A17:"999 Kč",X64A18:"190",X63A13:"49 Kč",X63A14:"99 Kč",X63A15:"290 Kč",X63A16:"Dohodou",X63A17:"999 Kč",X63A18:"192",X68A13:"199 Kč",X68A14:"499 Kč",X68A15:" 1199Kč",X68A18:"153",X28A18:"051",X69A13:"299 Kč",X69A14:"799 Kč",X69A15:"2099 Kč",X69A16:"3990 Kč",X69A17:"6590",X69A18:"102",X23A18:"104",X70A13:"249 Kč",X70A14:"499 Kč",X70A15:"1299 Kč",X70A16:"1999 Kč",X70A17:"3990 Kč",X70A18:"152",X20A18:"141",X21A18:"142",X22A18:"143",X13A13:"399 Kč",X13A14:"799 Kč",X13A15:"1999 Kč",X13A16:"4990 kč",X13A17:"21900 kč",X13A18:"180",X71A13:"399 Kč",X71A14:"999 Kč",X71A15:"2799 Kč",X71A16:"5990 kč",X71A18:"107",X71A17:"Dohodou",X26A19:"25000",X72A14:"1599 Kč",X72A15:"3990 Kč",X72A16:"Dohodou",X72A17:"59990",X72A18:"011",X17A18:"132",X52A18:"151",X55A18:"133",X78A13:"699 Kč",X78A14:"1990 Kč",X73A13:"499 kč",X73A14:"1490Kč",X73A15:"3490 Kč",X73A16:"dohodou",X74A13:"799",X74A14:"1990",X74A15:"4990",X74A16:"dohodou",X47A13:"199 Kč",X47A14:"599 Kč",X47A15:"1399 Kč",X75A13:"699 Kč",X75A14:"1999 Kč",X75A15:"4490 Kč",X75A17:"49990 Kč",X75A18:"022",X75A16:"Dohodou",X75A19:"49990 Kč",X76A13:"449 Kč",X76A14:"1299 Kč",X76A15:"3199 Kč",X76A17:"24990",X76A18:"053",X77A13:"499 Kč",X77A14:"1499 Kč",X77A15:"3290 Kč",X77A16:"Dohodou",X77A17:"39990 Kč",X77A18:"023",X78A17:"39990 Kč",X78A18:"073",X79A13:"399 Kč",X79A14:"1199 Kč",X79A15:"2799 Kč",X79A16:"7990Kč",X79A17:"19990Kč",X86A14:"799 Kč",X86A13:"299 Kč",X81A13:"799 Kč",X81A14:"2290 Kč",X81A15:"6390 Kč",X81A17:"36990 Kč",X81A18:"100",X83A13:"799 Kč",X83A14:"2299 Kč",X83A15:"6390 Kč",X83A16:"Dohodou",X83A17:"39990 Kč",X83A18:"101",X84A13:"799 Kč",X84A14:"2290 Kč",X84A15:"6390 Kč",X84A16:"Dohodou",X84A17:"29990",X84A18:"101",X85A13:"499 kč",X85A14:"1490Kč",X85A15:"3490 Kč",X85A16:"Dohodou",X85A17:"16490 Kč",X85A18:"101",X73A18:"105",X94A13:"499 Kč",X86A17:"20990 Kč",X86A18:"032",X87A13:"299 Kč",X87A14:"799 Kč",X87A15:"1999 Kč",X87A16:"6990 Kč",X87A17:"20990 Kč",X87A18:"033",X88A13:"599 Kč",X88A14:"1499 Kč",X88A15:"4199 Kč",X88A17:"39990 Kč",X88A18:"043",X88A19:"39990 Kč",X89A14:"2899 Kč",X89A15:"6990",X89A17:"79900",X89A18:"052",X89A19:"79990",X77A19:"39990 Kč",X90A13:"449 Kč",X90A14:"1299 Kč",X90A15:"2990 Kč",X90A17:"29990",X90A18:"033",X90A19:"29990",X92A14:"3290",X92A15:"7999",X92A18:"013",X92A19:"99000",X93A13:"499 Kč",X93A14:"1499 Kč",X93A15:"3490 Kč",X93A17:"39990 Kč",X93A18:"051",X94A14:"1499 Kč",X94A18:"1001",X94A19:"Dohodou",X94A15:"3490 Kč",X94A16:"Dohodou",X94A17:"Dohodou",X99A13:"499 Kč",X99A14:"1399 Kč",X99A15:"3299 Kč",X99A16:"dohodou",X99A17:"29000",X99A18:"031",X100A13:"1099",X100A14:"2990",X100A15:"6990",X100A16:"dohodou",X100A17:"71990",X100A18:"012",X101A13:"249 Kč",X101A14:"699 Kč",X101A15:"1699 Kč",X101A16:"Dohodou",X101A17:"16000",X101A18:"041",X102A13:"199 Kč",X102A14:"599 Kč",X102A15:"1399 Kč",X102A16:"Dohodou",X102A17:"5000 Kč",X102A18:"081",X103A13:"499 Kč",X103A14:"1499 Kč",X103A15:"3490 Kč",X103A17:"29900 Kč",X103A18:"062",X103A19:"29900Kč",X74A17:"25000",X105A13:"249 Kč",X105A14:"749 Kč",X105A15:"1799 Kč",X105A16:"Dohodou",X105A17:"15000Kč",X105A18:"063",X105A19:"15000Kč",X106A13:"249 Kč",X106A14:"699 Kč",X106A15:"1699 Kč",X106A16:"Dohodou",X106A17:"10000Kč",X106A18:"073",X106A19:"10000Kč",X107A13:"199 Kč",X107A14:"599 Kč",X107A15:"1399 Kč",X107A16:"Dohodou",X107A17:"5000 Kč",X107A18:"081",X107A19:"5000Kč",X108A13:"449Kč",X108A14:"1399 Kč",X108A15:"2990Kč",X108A16:"Dohodou",X108A17:"19900Kč",X108A18:"081",X108A19:"19900Kč"};
var obdobi = 1;
function zmenaurl(id) { $(".url_"+id).attr('href', "./rezervace.php?id="+id+"&obdobi="+obdobi ); }
function napln_litebox(idzbozi)
{
$("#liteboxobsah").html("");
$("#liteboxobsah").load("naplnlitebox.php?id="+idzbozi);
}
function url_query( query ) {
query = query.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var expr = "[\\?&]"+query+"=([^]*)";
var regex = new RegExp( expr );
var results = regex.exec( window.location.href );
if ( results !== null ) { return results[1]; } else { return false; }
}
function zmenaceny(idvceniku)
{
console.log(idvceniku);
if ( idvceniku == 5 ) // koupit
{
obdobi=5;
$(".timeselection").removeClass("selected");
$(".time5").addClass("selected");
$( "div[id^='bike_']" ).each(function(index){
var idzbozi = $(this).attr('id').replace("bike_", "");
$(".cena_bike_"+idzbozi).hide(300).html(''+ceny['X'+idzbozi+'A17']+'').show(300);
$(".zaloha_bike_"+idzbozi).hide(300);
});
}
if ( idvceniku == 4 ) // rok
{
obdobi=4;
$(".timeselection").removeClass("selected");
$(".time4").addClass("selected");
$( "div[id^='bike_']" ).each(function(index){
var idzbozi = $(this).attr('id').replace("bike_", "");
$(".cena_bike_"+idzbozi).hide(300).html(''+ceny['X'+idzbozi+'A16']+' / rok').show(300);
$(".zaloha_bike_"+idzbozi).hide(300).html('Záloha '+ceny['X'+idzbozi+'A19']).show(300);
});
}
if ( idvceniku == 3 ) // tyden
{
obdobi=3;
$(".timeselection").removeClass("selected");
$(".time3").addClass("selected");
$( "div[id^='bike_']" ).each(function(index){
var idzbozi = $(this).attr('id').replace("bike_", "");
$(".cena_bike_"+idzbozi).hide(300).html(''+ceny['X'+idzbozi+'A15']+' / týden').show(300);
$(".zaloha_bike_"+idzbozi).hide(300).html('Záloha '+ceny['X'+idzbozi+'A19']).show(300);
});
}
if ( idvceniku == 2 ) // vikend
{
obdobi=2;
$(".timeselection").removeClass("selected");
$(".time2").addClass("selected");
$( "div[id^='bike_']" ).each(function(index){
var idzbozi = $(this).attr('id').replace("bike_", "");
$(".cena_bike_"+idzbozi).hide(300).html(''+ceny['X'+idzbozi+'A14']+' / víkend').show(300);
$(".zaloha_bike_"+idzbozi).hide(300).html('Záloha '+ceny['X'+idzbozi+'A19']).show(300);
});
}
if ( idvceniku == 1 ) // den
{
obdobi=1;
$(".timeselection").removeClass("selected");
$(".time1").addClass("selected");
$( "div[id^='bike_']" ).each(function(index){
var idzbozi = $(this).attr('id').replace("bike_", "");
$(".cena_bike_"+idzbozi).hide(300).html(''+ceny['X'+idzbozi+'A13']+' / den').show(300);
$(".zaloha_bike_"+idzbozi).hide(300).html('Záloha '+ceny['X'+idzbozi+'A19']).show(300);
});
}
}