var Thetis;(function(n){var t;(function(n){var t=function(){function n(){this.getNotifications()}return n.prototype.getNotifications=function(){var u=this,i=localStorage.getItem("NotificationsExist"),n,t,r;i===null||i==="false"?(n=localStorage.getItem("NotificationNewest"),n===null&&(n="0"),t=window.location.origin,t==="http://localhost"&&(t="http://localhost/Thetis"),r=t+"/api/notification/GetNotificationsMaxId",$.getJSON(r,function(t){t>0&&t>parseInt(n)&&(localStorage.setItem("NotificationsExist","true"),localStorage.setItem("NotificationNewest",t));u.checkForNotifications()})):this.checkForNotifications()},n.prototype.checkForNotifications=function(){localStorage.getItem("NotificationsExist")===null?$("#notifications").hide():localStorage.getItem("NotificationsExist")==="false"?$("#notifications").hide():localStorage.getItem("NotificationsExist")==="true"&&$("#notifications").show()},n}();n.CheckForNotificationsCl=t})(t=n.CheckNotifications||(n.CheckNotifications={}))})(Thetis||(Thetis={}))