var LiferayJedi=function(){return{init:function(){var a=this;a.dropDownMenu();a.handleLastChild();if(themeDisplay.isSignedIn()){a.checkUnreadMsg();setInterval(function(){a.checkUnreadMsg()},300000)}},handleLastChild:function(){var a=this;jQuery("#footer ul li:last").addClass("last-child")},dropDownMenu:function(){jQuery(".parent-nav-item").hoverIntent({interval:25,timeout:0,over:function(){var a=jQuery(this);var b=jQuery(".child-menu",this);a.addClass("init");b.slideDown(100)},out:function(){var a=jQuery(this);var b=jQuery(".child-menu",this);b.slideUp(50);a.removeClass("init")}})},checkUnreadMsg:function(){jQuery.ajax({url:themeDisplay.getPathMain()+"/ext/messaging/count_unreaded",dataType:"json",success:function(a){var c=a.countUnreaded||0;var b=jQuery("#navline-unreaded-msg");if(c>0){b.html("<strong>(</strong>"+a.countUnreaded+"<strong>)</strong").addClass("has-unreaded-msg")}else{b.html("").removeClass("has-unreaded-msg")}}})}}}();jQuery(document).ready(function(){LiferayJedi.init()});Liferay.Portlet.ready(function(b,a){});jQuery(document).last(function(){});