		});

		function refresh_notifications() {
			var item = common.notifications.messages.shift();

			if (item === undefined) {
				common.notifications.ui.rclass('header-message-visible');
				common.notifications.running = false;
				return;
			}

			var msg = '';
			var t = common.notifications.template;

			switch (item.type) {
				case 'products.save':
					msg = t.format('@(Product has been saved)', item.message);
					break;
				case 'navigation.save':
					msg = t.format('@(Navigation has been saved)