jQuery(document).ready(function(){"use strict";var c=jQuery(".nav-icons li").length-1,d=jQuery(".nav-icons li").eq(c-1).height()+2*jQuery(".nav-icons li").eq(c-1).css("padding-top").replace("px",""),e=jQuery(".nav-icons li").eq(c-1).position().top,f=parseInt(e)+parseInt(d),g=jQuery(".logged-out");function h(a,b){jQuery(window).height()-2*a<=b?jQuery(".helix-logo").fadeOut("fast"):jQuery(".helix-logo").fadeIn("fast")}h(d,f),jQuery(window).resize(function(a){e=jQuery(".nav-icons li").eq(c-1).position().top,f=parseInt(e)+parseInt(d),h(d,f)}),g.length<=0?jQuery(".idhelix").hover(function(){jQuery(".helix-logo > div").toggleClass("pop-out-content pop-out-content-visible")}):jQuery(".idhelix .helix-logo").click(function(){jQuery(".helix-logo > div").toggleClass("pop-out-content pop-out-content-visible")}),jQuery(".login-frame #helix_login_user").attr("placeholder","Your User Name"),jQuery(".login-frame #helix_login_pass").attr("placeholder","Your Password"),jQuery(".login-frame .login-password").after(jQuery(".login-frame .helix-error"));var a=jQuery(".dashboard-nav.left"),b=jQuery(".dashboard-nav.right"),i=a.find(".nav-icons"),m=a.find(".nav-content"),j=b.find(".nav-icons"),n=b.find(".nav-content"),k=jQuery(".dashboard-nav li a"),o=jQuery(".logged-out");if("undefined"!=typeof Storage){var l=Math.random();localStorage.setItem("helix_session",l),"open"==localStorage.helix_state&&jQuery(".dashboard-nav").removeClass("close-menu").addClass("open")}jQuery(".helixopen").click(function(a){a.preventDefault(),jQuery(".dashboard-nav").hasClass("active")?(localStorage.setItem("helix_state","closed"),Query(".dashboard-nav").removeClass("active").addClass("close-menu"),jQuery(".helix_avatar").addClass("active")):(jQuery(".dashboard-nav").removeClass("close-menu").addClass("active"),jQuery(".helix_avatar").removeClass("active open"))}),a.find(".close-list").on({click:function(b){a.addClass("close-menu").removeClass("active open"),localStorage.setItem("helix_state","closed"),jQuery(".helix_avatar").addClass("active")}}),b.find(".close-list").on({click:function(a){b.addClass("close-menu").removeClass("active open"),localStorage.setItem("helix_state","closed"),jQuery(".helix_avatar").addClass("active")}}),"0"==idf_logged_in&&(a.find(".close-list.login-frame").unbind("click"),b.find(".close-list.login-frame").unbind("click")),i.on({mouseenter:function(){o.length?jQuery(this).index()>2&&m.children().eq(jQuery(this).index()).addClass("active"):m.children().eq(jQuery(this).index()).addClass("active")},mouseleave:function(){m.children().eq(jQuery(this).index()).removeClass("active")}},"li"),j.on({mouseenter:function(){o.length?jQuery(this).index()>2&&n.children().eq(jQuery(this).index()).addClass("active"):n.children().eq(jQuery(this).index()).addClass("active")},mouseleave:function(){n.children().eq(jQuery(this).index()).removeClass("active")}},"li"),jQuery(k).click(function(a){"undefined"!==l&&localStorage.setItem("helix_state","open")}),jQuery('.login-frame [name="helix-wp-submit"]').click(function(d){var a=!1,b=!1,c=!1;return(""===jQuery('.login-frame input[name="log"]').val()&&(a=!0,b=!0),""===jQuery('.login-frame input[name="pwd"]').val()&&(a=!0,c=!0),a&&(b||c))?(jQuery(".login-frame .login-password").after(jQuery(".login-frame .helix-error")),jQuery(".login-frame .helix-error.blank-field").show(),!1):!a&&(jQuery(".login-frame .helix-error").hide(),!0)})})