var $links = $('.fancybox');
$links.on('click', function() {
$.fancybox.open( $links, {
// Custom options
}, $links.index( this ) );
return false;
});
var qkbrae = 0;
while (typeof qbrases[qkbrae] !== 'undefined') {
//for (var qkbrae in qbrases) {
console.log('key: ' + qkbrae + '; value: ' + qbrases[qkbrae]);
if (qbrases[qkbrae].getAttribute('data-region') == cc) {
qbrases[qkbrae].setAttribute('selected', 'selected');
}
qkbrae++;
}
var timer;
var dropdownLink = $(".js-nav-dropdown");
var dropdownBlock = dropdownLink.find(".jsCountry");
dropdownLink.on("mouseover", function () {
clearTimeout(timer);
dropdownBlock.show(300);
}).on("mouseleave", function () {
timer = setTimeout(
function () {
dropdownBlock.hide(300);
}, 600);
});