ls = {"title":"On-line reservations - Hr\u00e1dek","intro":"Reservation of the Tour II. The information shown is only indicative and we will confirm the actual status after processing the reservation on weekdays between 8am and 4pm. Number of visitors for single tour is limited to 25. Children under the age of 6 are not allowed in the mine. For the safety of children, in case of doubt, the chaperone will be asked to prove the age of the child. Children between the ages of 6 and 10 are only allowed to enter when accompanied by an adult, and group visits of children from the age of 10 or from the 4th grade of elementary school only with pedagogical supervision.Entry to the mine is not recommended for persons suffering from claustrophobia, epilepsy and poor health and is forbidden to women in advanced stages of pregnancy.The system allows reservations to be made at least 2 days in advance. For next day bookings please contact us by phone (do not send SMS).","legenda":"Legenda","tourin":"Tour in","onday":"on","choosetypeofperson":"Make a reservation as a","physical":"Natural person","juridical":"Juridical person","school":"School","name":"Name and surname","jname":"Organisation","address":"Address","phone":"Telephone","email":"E-mail","schoolkrs":"School with seat in the Central Bohemia Region","remember":"Remember for the next reservation<\/span>","tour":"Tour","lang":"Language","adults":"Adults","children":"Children\/students\/seniors","contact":"Contact person","note":"Note","obligatory":"Obligatory items","close":"Close","save":"Send","inputformdisclaimer":" By submitting a reservation, I agree to the General Terms and Conditions<\/a> and the Visiting Regulations<\/a>. All personal data is processed in accordance with Act No. 110\/2019 Coll., on the processing of personal data solely for the purpose of arranging and settling the tour reservation for the time necessary. Only authorised museum staff have access to your data and we do not pass it on to anyone else.","inputformnewsletter":"I wish to receive occasional newsletter emails","legendfree":"Available","legendmaybe":"Number of reserved places","legendfull":"Full","legendnotour":"No tour is available","legendczech":"Tour language","legendforeign":"Tour in foreign language only","legendfullshort":"Full","basicfee":"Full admission","reducedfee":"Reduced admission","tour1":"Tour I - Town of Silver","tour2":"Tour II - Way of Silver","tour3":"Tour I+II","tour4":"Exhibition","sentlabel":"The reservation has been sent","sentinfo":"Your reservation is recorded in the system and awaits review by a museum staff member. The reservation becomes valid only after you receive an email confirmation of your reservation. Reservations are only confirmed on weekdays between 8am and 4pm.<\/b>","errorlabel":"The reservation could not be sent","errorinfo":"The internet connection may have failed or the booking server is unavailable. You can still contact us by telephone or e-mail.<\/b>","errorconn":"Could not connect to the server!","noname":"Please enter your name!","nophone":"Please enter a valid telephone number!","nomail":"Please enter a valid e-mail address!","noperson":"Please enter the number of persons!","notour":"Please choose the tour!","nolang":"Please choose the language of the tour!","noaccept":"Before making a reservation, you must agree to the General Terms and Conditions and the Visitor Regulations.","maxpersons":"There are only %x places left for this tour!","tournames":["Tour I<\/span>","Tour II<\/span>","Tour I+II<\/span>"],"languageids":{"C":"CZ<\/span>","A":"EN<\/span>"},"languages":["Czech","English","German","Russian"],"placesbooked":"booked","placesremaining":"remains","days":["Su","Mo","Tu","We","Th","Fr","Sa"],"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"last2":"Final term of the tour II, following only tour I.","last3":"Final term of the tour III, following only tour I and II.","tourisfull":"The tour is already full. Please choose another term.","notourheld":"Closed. There is no tour at this time","gtc":"General Terms and Conditions","visitregulations":"Visiting Regulations","visitregulationsurl":"https:\/\/www.cms-kh.cz\/eng\/visitor-rules-hradek","pricelist":"Opening hours and price list","novembernotice":"

In November 2018 for technical reasons the tour II DOES NOT include the medieval mine.<\/h2><\/div>","noseasonnotice":"

The mine is closed from December to 26 March 2024.<\/h2><\/div>","corona":"

Until 30 May, we offer only individual visit of the combined tours I and II without visiting the mine.<\/h2><\/div>","callus":"Reservations for today or tomorrow are accepted only by phone at +420 327 512 159<\/b> and +420 733 420 366<\/b>.","buyonplace":"We do not accept reservations for this day. Tickets can be obtained at the venue. Reservations are accepted by phone only on the current day.","firsttourlang":"The tour is without a guide. Texts in foreign languages are available at the ticket office.","specialnotice":"Since 1 August, number of visitors for single tour is limited to 25 and and a certificate of infection-free status is not required. Larger groups of up to 25 people can book by phone, but proof of infection-free status will be required (proof of a PCR test no older than 7 days, an antigen test no older than 72 hours, proof of vaccination no earlier than on the 14th day after the last dose was administered or proof of illness within 180 days).","wdays":["Su","Mo","Tu","We","Th","Fr","Su"],"coronavirus":"

In May, only individual tour of the museum without the medieval mine is available. The mine should be opened on 2 June, you can place your reservations.<\/h2><\/div>","cancellation":"Cancellation","confirm":"Confirm","cancellationtext":"To cancel your reservation, please enter the email address you provided at the time of booking.","cancellationerror":"The reservation could not be cancelled. You may have entered an invalid email address.","cancellationdone":"The reservation was cancelled.","notice":"Notice","of":"of"}; lasttourtimes = {1: {1: '15:00',2: '14:30',3: '14:00'},2: {1: '15:00',2: '14:30',3: '14:00'},3: {1: '16:00',2: '15:30',3: '15:00'},4: {1: '16:00',2: '15:30',3: '15:00'},5: {1: '17:00',2: '16:30',3: '16:00'},6: {1: '17:00',2: '16:30',3: '16:00'},7: {1: '17:00',2: '16:30',3: '16:00'},8: {1: '17:00',2: '16:30',3: '16:00'},9: {1: '17:00',2: '16:30',3: '16:00'},10: {1: '16:00',2: '15:30',3: '15:00'},11: {1: '15:00',2: '14:30',3: '14:00'},12: {1: '15:00',2: '14:30',3: '14:00'}}; maxpersonsintour = { 1: 25, 2: 25, 3: 25 }; // // Kalendář // function Calendar () { this.tour = new Array(2,3); } // Vytvořit kalendář Calendar.prototype.drawCalendar = function() { mesice = new Array("I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"); var now = new Date(); yearindex = 1; month = 5;year = 2024; document.writeln("
"); if (year != now.getFullYear()) { document.writeln("

"+year+"

"); } //document.writeln("
"); document.writeln("
"); document.writeln("
"); var inHtml = "<"; for (var i=year-1; i
"+i+""; } inHtml += ">"; //$("years").update(inHtml); inHtml = ""; var ny = now.getFullYear(); var nm = now.getMonth()+1; for (var i=0; i<12; i++) { var style = " class='"; style += (i==month-1 ? "selected" : ""); style += (i+1==nm && year==ny ? " today" : ""); style += (i<2 || i>10 ? " closed" : ""); style += "'"; //inHtml += "" + (i") + ls.months[i] + (i") + "

"; inHtml += "" + ls.months[i] + "

"; } $("#months").html(inHtml); } // Změní údaje v liště dnů podle měsíce a roku Calendar.prototype.scrollYears = function(d) { var y = $("#years :nth-child(1)").text()*1; for (var i=1;i<4;i++) { $("#years :nth-child("+i+")").removeClass(); $("#years :nth-child(1)").text(y+i-1+d); if (year==y+i-1+d) { $("#years :nth-child("+i+")").addClass("selected"); } } yearindex -= d; } // Změna měsíce Calendar.prototype.changeMonth = function (m) { $("#months :nth-child("+(month)+")").removeClass("selected"); month = m; $("#months :nth-child("+(month)+")").addClass("selected"); this.onChange(); } // Změna roku Calendar.prototype.changeYear = function (y) { if (yearindex>-1 && yearindex<3) { $("#years :nth-child("+yearindex+1+")").removeClass(); } year = $("#years :nth-child("+y+1+")").text()*1; yearindex = y; $("#years :nth-child("+y+1+")").addClass("selected"); this.onChange(); } // Změna okruhu Calendar.prototype.changeTour = function (t, o) { this.tour = t; $("#tourpicker div").removeClass("active"); $(o).addClass("active"); this.onChange(); } // Změna okruhu Calendar.prototype.isTourActive = function (t) { //return $.inArray(t,[].concat(this.tour))>-1; return [].concat(this.tour)[0]==t; } // Funkce vykonávaná při změně data Calendar.prototype.onChange = function () { loader(true); $.ajax({ url: 'query.php', type: "POST", dataType: "json", data: { c:'list_month_aggregate', m:month, y:year, lang: "en" }, success: function(result){ $('#aggregate').html(result.content);loader(false); //$('#aggregate .maybe, #aggregate .free, #aggregate .closed').tooltip({ items: "[data-tooltip]", content: function () { return $(this).attr("data-tooltip"); } }); }, error: function(){ alert(ls.errorconn); loader(false); } }); } // // Akce myší // function mouseOnTime(o) { $(o).parent().toggleClass("selected",true); //$(o).parent().parent().toggleClass("selected",true); //var i = $(o).parent().attr("idx"); //$(".aggregate th[idx="+i+"]").toggleClass("selected",true); var dd = $(o).parent().attr("data-day"); var dt = $(o).parent().attr("data-time").replace(":",""); $(".aggregate .d"+dd).toggleClass("highlighted",true); $(".aggregate .t"+dt).toggleClass("highlighted",true); } function mouseOutTime(o) { $(o).parent().toggleClass("selected",false); //$(o).parent().parent().toggleClass("selected",false); //var i = $(o).parent().attr("idx"); //$(".aggregate th[idx="+i+"]").toggleClass("selected",false); var dd = $(o).parent().attr("data-day"); var dt = $(o).parent().attr("data-time").replace(":",""); $(".aggregate .d"+dd).toggleClass("highlighted",false); $(".aggregate .t"+dt).toggleClass("highlighted",false); } // // Stmívačka // function grayOut(vis) { if (!$("#grayout").length) { $("body").append("
"); } if (vis) { $("#grayout").fadeTo(1,0.01).fadeTo(400,0.7); } else { $("#grayout").stop(true, true).hide(); } } // // Loader // function loader(v) { if (v) { $("#loader").fadeTo(1,0.01).fadeTo(400,1); } else { $("#loader").stop(true, true).hide(); } } function loader2(vis) { if (vis) { $(".loader").fadeIn(); } else { $(".loader").fadeOut('fast'); } } /** * Formulář rezervace * (formulář pro zadání, editaci a mazání rezervací) */ function InputForm(instance) { this.pid = null; // Id prohlídky this.cid = ""; // Id zákazníka this.instance = instance; // Jméno instance formuláře this.persontype = ""; this.taken = 0; } // Vykreslí formulář InputForm.prototype.drawForm = function() { document.writeln("
"); // Údaje o zákazníkovi document.writeln("

"+ls.choosetypeofperson+"

"); document.writeln("

"); document.writeln("
"); document.writeln("
"); // Údaje o prohlídce document.writeln("
\n

"); document.writeln(" ");document.writeln(" ");document.writeln(" "); document.writeln("

"); document.writeln("

"); document.writeln(" ");document.writeln(" ");document.writeln("The tour is without a guide. Texts in foreign languages are available at the ticket office."); document.writeln("

"); document.writeln("

"); document.writeln("

"); document.writeln("

"); document.writeln("

* "+ls.obligatory+"

"); //document.writeln("

"+ls.specialnotice+"

"); document.writeln("

"+ls.inputformdisclaimer+"

"); document.writeln("

"+ls.inputformnewsletter+"

"); document.writeln("
"); document.writeln("
"); } // Uloží data z formuláře InputForm.prototype.save = function() { if (this.check()) { // Načíst údaje z formuláře var name = $("#name").val(); var address = $("#address").val(); var phone = $("#phone").val(); var email = $("#email").val(); var tour = $('#inputform input[name="tour"]:checked').val(); var lang = $('#inputform input[name="lang"]:checked').val(); var adults = $("#adults").val(); var children = $("#children").val(); var contact = $("#contact").val(); var comment = $("#comment").val(); var datum = $("#inputform").dialog("option", "title"); var persontype = this.persontype; var cid = this.cid; var newsletter = $("#inputformnewsletter").prop('checked') ? 1 : 0; var district = $("#krs").prop('checked') ? "s" : ""; // Uložit údaje $("#inputform").dialog("close"); loader(true); $.ajax( { url: "query.php", type: "POST", data: { c:"save_reservation", tourid: iform.pid, datum: datum, name: name, address: address, phone: phone, email: email, tour: tour, lng: lang, adults: adults, children: children, contact: contact, comment: comment, persontype: persontype, district: district, cid:cid, newsletter: newsletter, lang: "en" }, dataType: "json", success: function (data) { if (!$("#remember").prop('checked')) { iform.clear(); } else { if (data.val) { iform.cid = data.val; iform.lockCustomer(true); } $("#adults").val(""); $("#children").val(""); $("#inputformdisclaimer").prop('checked', false); $("#inputformnewsletter").prop('checked', false); $("#inputform input[name='lang']").prop("checked",false); } showConfirmation(data); }, error: function () { showConfirmation({val:false,msg:ls.errorinfo}); } } ); } } // Vymaže data z formuláře InputForm.prototype.clear = function() { $("#name").val(""); $("#address").val(""); $("#phone").val(""); $("#email").val(""); $("#adults").val(""); $("#children").val(""); $("#contact").val(""); $("#comment").val(""); this.setPersonType(""); $("#inputformdisclaimer").prop('checked', false); $("#inputformnewsletter").prop('checked', false); $("#inputform input[name='tour']").prop("checked",false); $("#inputform input[name='lang']").prop("checked",false); } // Kontrola dat ve formuláři před odesláním InputForm.prototype.check = function() { if ($('#name').val()=="") { alert(ls.noname); $("#name").focus(); return false; } if ($('#phone').val()=="" || !validatePhone($('#phone').val())) { alert(ls.nophone); $("#phone").focus(); return false; } if ($('#email').val()=="" || !validateEmail($('#email').val())) { alert(ls.nomail); $("#email").focus(); return false; } var RE = /^\d+$/; if (!RE.test($('#adults').val()) && !RE.test($('#children').val())) { alert(ls.noperson); $("#adults").focus(); return false; } var persons = ($('#adults').val()=="" ? 0 : $('#adults').val()*1)+( $('#children').val()=="" ? 0 : $('#children').val()*1); if (!$('#inputform input[name="tour"]:checked').length) { alert(ls.notour); return false; } var tour = $('#inputform input[name="tour"]:checked').val(); if (persons<1) { alert(ls.noperson); $("#adults").focus(); return false; } var maxp = maxpersonsintour[tour]; // if (iform.persontype == "s") { maxp += 5; } // Korona-omezení //if (month>7 && year==2021) { maxp = 18; } if (persons+iform.taken > maxp) { alert(ls.maxpersons.replace("%x",maxp-iform.taken)); return false; } if (!$('#inputform input[name="lang"]:checked').length) { alert(ls.nolang); return false; } if (!$("#inputformdisclaimer").prop('checked')) { alert(ls.noaccept); $("#inputformdisclaimer").focus(); return false; } return true; } // Zobrazí formulář InputForm.prototype.show = function(o,id,stav) { var time = $(o).parent().attr("data-time"); var day = $(o).parent().attr("data-day"); this.day = day; day = day + "." + month + "." + year; $("#inputform").dialog("option", "title", ls.tourin+" "+time+", "+ls.onday+" "+day); $("#inputformdisclaimer").prop('checked', false); $("#inputformnewsletter").prop('checked', false); this.pid = id; // Zaznamenat id prohlídky var RE = /^\d*/; this.taken = $(o).text().match(RE)*1; // Zaznamenat počet obsazených míst // Upozornění na uzavírku v listopadu //if (month==11) //{ // $(".specialnotice").show(); //} else // $(".specialnotice").hide(); // Zakázat okruhy, které se už ve vybraném čase nepořádají var checked = false; for (var i=1; i <= 3; i++) { //if ((Date.parse('01/01/2011 '+time+':00') > Date.parse('01/01/2011 '+lasttourtimes[month][i]+':00')) || !cal.isTourActive(i)) if ((Date.parse('01/01/2011 '+time+':00') > Date.parse('01/01/2011 '+lasttourtimes[month][i]+':00')) || i==1) { $("#tour"+i).prop("disabled",true); $("#tour"+i).prop("checked",false); $("#tour"+i).hide(); $('label[for="tour'+i+'"]').hide(); } else { $("#tour"+i).prop("disabled",false); $("#tour"+i).show(); $('label[for="tour'+i+'"]').show(); if (!checked) { $("#tour"+i).prop("checked",true); checked = true; } } } // Zakázat cizí jazyky pro české prohlídky $("p.langs input, p.langs label.checkbox").show(); $("p.langs .notice").hide(); if (stav==2) { //var langs = $('[name="lang"]'); //for (var i=1; i3) { $('.langs input').hide(); $('.langs input').prop("disabled", true); $('.langs label.checkbox').hide(); $('input[data-lid='+stav+']').prop("disabled",false); $('input[data-lid='+stav+']').prop("checked",true); $('[data-lid='+stav+']').show(); } else { $('.langs input').show(); $('.langs input').prop("disabled", false); $('.langs input').prop("checked", false); $('.langs label.checkbox').show(); } // Pro první okruh zakázat volbu jazyka /*if (cal.isTourActive(1)) { $("p.langs input, p.langs label.checkbox").hide(); $("p.langs .notice").show(); $('#lang0').prop("checked",true); }*/ // Zobrazit formulář a nastavit focus $(".ui-dialog-titlebar-close").hide(); var dw = 41*$("#em1").width(); var wh = $(window).height(); $('#inputform').dialog("option", "width", dw); $('#inputform').dialog("option", "height", wh*.9); $('#inputform').dialog("option", "width", "100%"); $('#inputform').dialog("option", "height", wh); $('#inputform').dialog("option", "position", { my: "center top", at: "center top", of: window }); $('#inputform').dialog("open"); $("#name").focus(); } // Skryje formulář InputForm.prototype.hide = function() { $("#inputform").dialog("close"); if (!$("#remember").prop('checked')) { iform.clear(); } $( '#aggregate .maybe, #aggregate .free' ).tooltip( "close" ); } // Nastavit formulář pro fyzickou nebo právnickou osobu InputForm.prototype.setPersonType = function(ptype) { if (ptype == "ph") { var txt = "

"; txt += ""; txt += ""; txt += "

"; txt += "

"; txt += "

"; $("#customerinfo").html(txt); $("#inputformsubmit").button({ disabled: false }); //$("#inputformsubmit").prop('disabled', false); $("#inputformchoice").hide(); $("#inputformform").css('visibility', 'visible'); this.persontype = "p"; } else if (ptype == "ju") { var txt = "

"; txt += "

"; // txt += "

"; txt += ""; txt += "

"; txt += "

"; txt += "

"; $("#customerinfo").html(txt); $("#inputformsubmit").button({ disabled: false }); //$("#inputformsubmit").prop('disabled', false); $("#inputformchoice").hide(); $("#inputformform").css('visibility', 'visible'); this.persontype = "j"; } else if (ptype == "sc") { var txt = "

"; txt += "

"; // txt += "

"; txt += ""; txt += "

"; txt += "

"; txt += "

"; txt += "

"; $("#customerinfo").html(txt); $("#inputformsubmit").button({ disabled: false }); //$("#inputformsubmit").prop('disabled', false); $("#inputformchoice").hide(); $("#inputformform").css('visibility', 'visible'); this.persontype = "s"; } else { $("#inputformform").css('visibility', 'hidden'); $("#customerinfo").html(""); $("#inputformsubmit").button({ disabled: true }); //$("#inputformsubmit").prop('disabled', true); this.persontype = ""; $("#inputformchoice").show(); } } // Zamknout a odemknout údaje zákazníka pro editaci InputForm.prototype.lockCustomer = function(lock) { $("#name").prop("readonly",lock); $("#address").prop("readonly",lock); $("#phone").prop("readonly",lock); $("#email").prop("readonly",lock); if (!lock) { this.cid = ""; } } InputForm.prototype.toggleLockCustomer = function() { $("#remember").prop("checked", !$("#remember").prop("checked")); if (!$("#remember").prop("checked")) { this.lockCustomer(false); } } function showConfirmation(data) { loader(false); if (data.val!=false) { $("#confirmation h1").html("The reservation has been sent"); $("#confirmation h1").removeClass("warning"); } else { $("#confirmation h1").html("The reservation could not be sent"); $("#confirmation h1").addClass("warning"); } $("#confirmation p").html(data.msg); $("#confirmation").dialog("open"); } function showMessage(data, title) { if (typeof title === "undefined") { var title = ""; } $("#confirmation h1").html(title); $("#confirmation h1").addClass("warning"); $("#confirmation p").html(data); $("#confirmation").dialog("open"); } function closeConfirmation() { $("#confirmation").dialog("close"); cal.onChange(); } function openCancellation(id) { $('#cancellation').dialog('open'); $('#cancellationid').val(id); $("#cancellationemail").val(""); } function closeCancellation() { $("#cancellation").dialog("close"); } function confirmCancellation() { var id = $("#cancellationid").val(); var email = $("#cancellationemail").val(); if (email == "") { return false; } $("#cancellationemail").hide(); $("#cancellationconfirmbutton").hide(); $("#cancellationemail").val(""); $("#cancellationid").val(""); loader(true); $.ajax( { url: "query.php", type: "POST", data: { c:"cancel_reservation", id: id, email: email }, dataType: "json", success: function (data) { loader(false); if (data.val) { $("#cancellation p").html(ls.cancellationdone); cal.changeMonth(data.date.substr(3,2)*1); } else { $("#cancellation p").html(""+ls.cancellationerror+""); } }, error: function () { loader(false); $("#cancellation p").html(""+ls.cancellationerror+""); } } ); } function validateEmail(value) { var input = document.createElement('input'); input.type = 'email'; input.value = value; return typeof input.checkValidity == 'function' ? input.checkValidity() : /\S+@\S+\.\S+/.test(value); } function validatePhone(value) { var re = new RegExp('^[\\d\\+\\-\\s\\.,]*(?:l|line|linka)?[\\d\\s\\.\\-]*$', 'i'); return re.test(value); }