$(document).ready(function(){
$("#cookiesuhlas").click(function(){
$.ajax({
type: 'POST',
url: 'moduly/cookies/cookies.php',
success: function(data) {
$('#cookies').css('display','none');
}
});
});
});
$(document).ready(function(){
$('#nav').slicknav({
allowParentLinks:"true"
});
});
$(function(){
$('#mapimage').mapster(
{
fillColor: 'f74e2f',
clickNavigate: true,
stroke: false,
strokeWidth: 0,
scaleMap: true,
fillOpacity: 1, showToolTip: true,
onMouseover: function (e) {
$(this).mapster('set', false).mapster('set', true);
},
onMouseout: function (e) {
$(this).mapster('set', false);
},
mapKey: 'name',
areas: [
{ key: "nebyt60",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt99",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt100",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt101",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt102",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt103",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt104",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt105",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt106",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt107",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt108",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt61",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt109",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt110",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt111",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt112",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt113",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt114",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt115",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt116",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt117",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt118",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt92",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt93",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt94",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt95",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt96",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt97",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt98",
staticState: true,fillColor: 'faad35',
toolTip: "
Rezervované ",
},
]
});
});
$(function(){
$('#mapimage2').mapster(
{
fillColor: 'f74e2f',
clickNavigate: true,
stroke: false,
strokeWidth: 0,
scaleMap: true,
fillOpacity: 1, showToolTip: true,
onMouseover: function (e) {
$(this).mapster('set', false).mapster('set', true);
},
onMouseout: function (e) {
$(this).mapster('set', false);
},
mapKey: 'name',
areas: [
{ key: "nebyt60",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt99",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt100",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt101",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt102",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt103",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt104",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt105",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt106",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt107",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt108",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt61",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt109",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt110",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt111",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt112",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt113",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt114",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt115",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt116",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt117",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt118",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt92",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt93",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt94",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt95",
staticState: true,fillColor: 'aceedd',
},
{ key: "nebyt96",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt97",
staticState: true,fillColor: 'f74e2f',
toolTip: "
Predané ",
},
{ key: "nebyt98",
staticState: true,fillColor: 'faad35',
toolTip: "
Rezervované ",
},
]
});
});
jQuery(document).ready(function() {
var offset = 220;
var duration = 500;
jQuery(window).scroll(function() {
if (jQuery(this).scrollTop() > offset) {
jQuery('.back-to-top').fadeIn(duration);
} else {
jQuery('.back-to-top').fadeOut(duration);
}
});
jQuery('.back-to-top').click(function(event) {
event.preventDefault();
jQuery('html, body').animate({scrollTop: 0}, duration);
return false;
})
});