//jquery
var queue = new Array(2);
//http://192.168.2.5/animals2/
var _WD = '';
var curr_menu = $('.selecthover');
function bindMenusDesk(title, index) {
var menu = title + "drop";
$(menu).on('mouseover', function() {
//curr_menu.removeClass('selecthover');
$(title).addClass('copyhover');
queue[index] = false;
});
$(menu).on('mouseout', function(event) {
queue[index] = true;
//curr_menu.addClass('selecthover');
setTimeout(function(){
hideAfter(menu, title, index);
}, 100)
});
$(title).on('mouseover', function() {
$(menu).fadeIn(300);
//curr_menu.removeClass('selecthover');
$(title).addClass('copyhover');
queue[index] = false;
});
$(title).on('mouseout', function(event) {
queue[index] = true;
//curr_menu.addClass('selecthover');
setTimeout(function(){
hideAfter(menu, title, index);
}, 100)
});
}
function hideAfter(which, other, index) {
if (queue[index]) {
$(other).removeClass('copyhover');
$(which).fadeOut(100);
queue[index] = false;
}
}
function initMenu(){
index = 0;
$('.bar_item').each( function () {
bindMenusDesk('#' + $(this).attr('id'), index);
index++;
});
}
initMenu();
$(window).ready(function() {
/*
if ($('.fotorama').length) {
$('#botl2').append('');
}
*/
$('#mobile_menub').on('click', function() {
if ($("#mobile_menub").hasClass("mobile_menub_hover")) {
$("#mobile_menub").removeClass("mobile_menub_hover");
$("#bar").fadeOut(400);
} else {
$("#mobile_menub").addClass("mobile_menub_hover");
$("#bar").fadeIn(300);
//hideSearch();
}
});
$('#magni').on('click',function() {
$(".searchf").css('border-width', '1px');
$('.searchf').show();
$('.searchf').focus();
});
$('.searchf').on('focusout', function() {
$(".searchf").css('border-width', '0px');
$('.searchf').hide();
});
if ($('#i_follow').length) {
$(window).resize(function(event) {
if ($('#follow_me').width() > 500) {
$('#i_follow').css('height', $('#follow_me').height() + 'px');
} else {
}
});
$('#i_follow').css('height', $('#follow_me').height() + 'px');
}
$(".searchf").css('border-width', '0px');
$('.searchf').hide();
if ($(window).width() < 1100) {
$('#menu2').click(function(){ return false; });
$('#menu3').click(function(){ return false; });
}
});
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3192862-11', 'auto');
ga('send', 'pageview');