//ignorei18n_start
/**variable initialization */
var connectionUrl,
	currentUrl,
	nav = [
		{
	"title": "Welcome to Exchange Reporter Plus",  //No I18N
	"url": "index.html",
	"parentType": "mainParent noIcon",
	"parentName": "Home"
}, {
	"title": "Getting Started",
	"url": "getting-started/getting-started.html",
	"parentType": "mainParent",
	"parentName": "Home",
	"children": [{
		"title": "System Requirements",
		"url": "getting-started/system-requirements.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "Installation of Exchange Reporter Plus",
		"url": "getting-started/installation.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "Pre-requisites for Admin Account Configuration",
		"url": "getting-started/pre-requisites-admin-account-configuration.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "How Exchange Reporter Plus Works",
		"url": "introduction/how-erp-works.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "Working with Exchange Reporter Plus",
		"url": "getting-started/working-with-exchange-reporter-plus.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "Licensing Exchange Reporter Plus",
		"url": "getting-started/licensing.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "Configuring MSSQL Server",
		"url": "getting-started/configuring-mssql-server.html",
		"parentType": "child",
		"parentName": "Getting Started"
	}, {
		"title": "Exchange Reporter Plus database migration",
		"url": "getting-started/exchange-reporter-plus-database-migration.html",
		"parentType": "subParent",
		"parentName": "Getting Started",
		"children": [{
			"title": "Migrating from MySQL database to PostgreSQL server",
			"url": "getting-started/mysql-pgsql-migration.html",
			"parentType": "child",
			"parentName": "Getting Started"
		}, {
			"title": "Migration from PostgreSQL database to Microsoft SQL Server",
			"url": "getting-started/postgresql-to-mssql-server-migration.html",
			"parentType": "child",
			"parentName": "Getting Started"
		}, {
			"title": "Migration from MySQL database to MS SQL Server",
			"url": "getting-started/mysql-to-mssql-server-migration.html",
			"parentType": "child",
			"parentName": "Getting Started"
		}, {
			"title": "Migration from PostgreSQL database to PostrgreSQL database",
			"url": "getting-started/postgresql-to-postgresql-migration.html",
			"parentType": "child",
			"parentName": "Getting Started"
		}]
	}, {
		"title": "Backup and restoration",
		"url": "exchange-database-backup-and-restoration.html",
		"parentType": "child",
		"parentName": "Getting Started"
	},]
}, {
	"url": "home/dashboard-view.html",
	"title": "Dashboard",
	"parentType": "mainParent",
	"parentName": "Home"
}, {
	"title": "Reports",
	"url": "reports/preconfigured-reports.html",
	"parentType": "mainParent",
	"parentName": "Home",
	"children": [{
		"title": "Exchange Server",
		"url": "reports/exchange-server-reports-introduction.html",
		"parentType": "subParent",
		"parentName": "Reports",
		"children": [{
			"title": "Mailbox reports",
			"url": "reports/mailbox-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "OWA and ActiveSync reports",
			"url": "reports/outlook-web-access-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Email traffic reports",
			"url": "reports/server-traffic-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Storage reports",
			"url": "reports/storage-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Distribution lists report",
			"url": "reports/distribution-list-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Public folders reports",
			"url": "reports/public-folders-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Organization reports",
			"url": "reports/organization-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Custom reports",
			"url": "reports/custom-reports/custom-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Compliance reports",
			"url": "reports/compliance-reports/compliance-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		},]
	}, {
		"title": "Exchange Online",
		"url": "exchange-online/exchange-online.html",
		"parentType": "subParent",
		"parentName": "Reports",
		"children": [{
			"title": "Mailbox reports",
			"url": "exchange-online/mailbox-reports-office-365.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Mail traffic reports",
			"url": "exchange-online/mail-traffic-reports-office-365.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "OWA and mobile reports",
			"url": "exchange-online/owa-and-mobile-reports-office-365.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Exchange Usage reports",
			"url": "exchange-online/exchange-usage-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Other Exchange reports",
			"url": "exchange-online/other-exchange-reports-office-365.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Security reports",
			"url": "exchange-online/security-reports-office-365.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Compliance reports",
			"url": "exchange-online/compliance-reports-office-365.html",
			"parentType": "child",
			"parentName": "Reports"
		},]
	}, {
		"title": "Skype Server",
		"url": "skype/skype-for-business-reports.html",
		"parentType": "subParent",
		"parentName": "Reports",
		"children": [{
			"title": "Conference reports",
			"url": "skype/conference-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Instant messaging reports",
			"url": "skype/instant-messaging-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Audio/video reports",
			"url": "skype/audio-video-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "File transfer reports",
			"url": "skype/file-transfer-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}, {
			"title": "Organization reports",
			"url": "skype/skype-organization-reports.html",
			"parentType": "child",
			"parentName": "Reports"
		}]
	}, {
		"title": "Data gathering tasks for reports",
		"url": "reports/reports-based-on-data-gatherings.html",
		"parentType": "child",
		"parentName": "Reports"
	},]
}, {
	"title": "Audit",
	"url": "audit/exchange-auditing-overview.html",
	"parentType": "mainParent",
	"parentName": "Home",
	"children": [{
		"title": "System Requirements for Auditing",
		"url": "audit/system-requirements.html",
		"parentType": "child",
		"parentName": "Audit"
	}, {
		"title": "Configuring Exchange Servers",
		"url": "audit/configuring-exchange-server.html",
		"parentType": "child",
		"parentName": "Audit"
	}, {
		"title": "Configuring Default Domain Controller",
		"url": "audit/configuring-default-domain-controller-policy.html",
		"parentType": "child",
		"parentName": "Audit"
	}, {
		"title": "Configuring Object Level Auditing",
		"url": "audit/configuring-object-level-auditing.html",
		"parentType": "child",
		"parentName": "Audit"
	}, {
		"title": "How Exchange Auditing Works",
		"url": "audit/exchange-auditing-working.html",
		"parentType": "child",
		"parentName": "Audit"
	}, {
		"title": "Exchange Server Audit Reports",
		"url": "audit/exchange-audit-reports/exchange-audit-reports.html",
		"parentType": "subParent",
		"parentName": "Audit",
		"children": [{
			"title": "Mailbox Permission Changes Reports",
			"url": "audit/exchange-audit-reports/mailbox-permission-changes-reports.html",
			"parentType": "child",
			"parentName": "Audit"
		}, {
			"title": "Mailbox Property Changes Reports",
			"url": "audit/exchange-audit-reports/mailbox-property-changes-reports.html",
			"parentType": "child",
			"parentName": "Audit"
		}, {
			"title": "Exchange Database Changes Reports",
			"url": "audit/exchange-audit-reports/exchange-store-changes-reports.html",
			"parentType": "child",
			"parentName": "Audit"
		}, {
			"title": "DAG Auditing Reports",
			"url": "audit/exchange-audit-reports/dag-auditing-reports.html",
			"parentType": "child",
			"parentName": "Audit"
		}, {
			"title": "Distribution List Auditing Reports",
			"url": "audit/exchange-audit-reports/distributionlist-auditing-reports.html",
			"parentType": "child",
			"parentName": "Audit"
		},]
	}, {
		"title": "Exchange Online Audit Reports",
		"url": "audit/exchange-onilne-audit.html",
		"parentType": "child",
		"parentName": "Audit",
	}, {
		"title": "Advanced Audit Reports",
		"url": "audit/advanced-audit-reports/advanced-audit-reports.html",
		"parentType": "subParent",
		"parentName": "Audit",
		"children": [{
			"title": "Mailbox Audit Logging Reports",
			"url": "audit/advanced-audit-reports/mailbox-audit-logging.html",
			"parentType": "child",
			"parentName": "Audit",
		}, {
			"title": "Admin Audit Log Reports",
			"url": "audit/advanced-audit-reports/admin-audit-log.html",
			"parentType": "child",
			"parentName": "Audit",
		}, {
			"title": "Mailbox Import Export Changes Reports",
			"url": "audit/advanced-audit-reports/mailbox-import-export-changes.html",
			"parentType": "child",
			"parentName": "Audit",
		}, {
			"title": "Folder Access Permission Changes Reports",
			"url": "audit/advanced-audit-reports/folder-access-permission-changes.html",
			"parentType": "child",
			"parentName": "Audit",
		},]
	}, {
		"title": "Views",
		"url": "audit/view/view.html",
		"parentType": "child",
		"parentName": "Audit",
	}, {
		"title": "Alerts Configuration",
		"url": "audit/fault-management/fault-management.html",
		"parentType": "child",
		"parentName": "Audit",
	}, {
		"title": "Action Configuration",
		"url": "audit/action-configuration.html",
		"parentType": "child",
		"parentName": "Audit",
	}, {
		"title": "Report Configuration",
		"url": "audit/report-configuration.html",
		"parentType": "child",
		"parentName": "Audit",
	}, {
		"title": "Troubleshooting Tips",
		"url": "audit/troubleshooting-tips.html",
		"parentType": "child",
		"parentName": "Audit",
	},]
}, {
	"title": "Monitoring",
	"url": "monitoring/Overview-of-Exchange-Monitoring.html",
	"parentType": "mainParent",
	"parentName": "Home",
	"children": [{
		"title": "System Requirements for Monitoring",
		"url": "monitoring/system-requirements.html",
		"parentType": "child",
		"parentName": "Monitoring",
	}, {
		"title": "Dashboard View",
		"url": "monitoring/dashboard-view/Dashboard-View.html",
		"parentType": "child",
		"parentName": "Monitoring",
	}, {
		"title": "Exchange Monitoring Reports",
		"url": "monitoring/exchange-monitoring-reports/Exchange-Monitoring-Reports.html",
		"parentType": "subParent",
		"parentName": "Monitoring",
		"children": [{
			"title": "DAG Monitoring Reports",
			"url": "monitoring/exchange-monitoring-reports/DAG-Monitoring-Report.html",
			"parentType": "child",
			"parentName": "Monitoring",
		}, {
			"title": "Server Monitoring Reports",
			"url": "monitoring/exchange-monitoring-reports/Server-Monitoring-Reports.html",
			"parentType": "child",
			"parentName": "Monitoring",
		}, {
			"title": "Database Monitoring Reports",
			"url": "monitoring/exchange-monitoring-reports/Database-Monitoring-Reports.html",
			"parentType": "child",
			"parentName": "Monitoring",
		}, {
			"title": "Storage Monitoring Reports",
			"url": "monitoring/exchange-monitoring-reports/storage-monitoring-reports.html",
			"parentType": "child",
			"parentName": "Monitoring",
		}, {
			"title": "Email Monitoring Reports",
			"url": "monitoring/exchange-monitoring-reports/email-monitoring-reports.html",
			"parentType": "child",
			"parentName": "Monitoring",
		},]
	}, {
		"title": "Alerts",
		"url": "monitoring/alerts.html",
		"parentType": "child",
		"parentName": "Monitoring",
	}, {
		"title": "Monitoring Configuration",
		"url": "monitoring/Report-Configuration.html",
		"parentType": "child",
		"parentName": "Monitoring",
	}, {
		"title": "Troubleshooting",
		"url": "monitoring/troubleshooting-tips.html",
		"parentType": "child",
		"parentName": "Monitoring",
	},]
}, {
	"title": "Content search",
	"url": "content-search/content-search.html",
	"parentType": "mainParent",
	"parentName": "home",
	"children": [{
		"title": "Exchange Mailbox Content Search", //No I18N
		"url": "content-search/exchange-mailbox-content-search.html",
		"parentType": "subParent",
		"parentName": "Settings",
	}, {
		"title": "Exchange Online Content Search",
		"url": "content-search/exchange-online-content-search.html",
		"parentType": "subParent",
		"parentName": "Settings",
	}]
},
{
	"title": "Migration",
	"url": "migration/migration.html",
	"parentType": "mainParent",
	"parentName": "home",
	"children": [{
		"title": "Troubleshooting Tips",
		"url": "migration/troubleshooting-tips.html",
		"parentType": "subParent",
		"parentName": "Settings",
	},]
},
{
	"title": "Settings",
	"url": "admin/admin.html",
	"parentType": "mainParent",
	"parentName": "home",
	"children": [{
		"title": "Configuration",
		"url": "admin/configuration/configuration.html",
		"parentType": "subParent",
		"parentName": "Settings",
		"children": [{
			"title": "Exchange Server",
			"url": "admin/configuration/exchange-server.html",
			"parentType": "subParent",
			"parentName": "Settings",
			"children": [{
				"title": "Task Scheduling",
				"url": "admin/scheduling/task-scheduling/introduction.html",
				"parentType": "subParent",
				"parentName": "Settings",
				"children": [{
					"title": "Task Scheduling",
					"url": "admin/scheduling/task-scheduling/task-scheduling.html",
					"parentType": "child",
					"parentName": "Settings",
				}, {
					"title": "Threshold values for Exchange email traffic",
					"url": "admin/scheduling/task-scheduling/exchange-email-traffic-threshold-limit.html",
					"parentType": "child",
					"parentName": "Settings",
				}, {
					"title": "Prerequisites for OWA logs gathering task",
					"url": "admin/scheduling/task-scheduling/owa-logs-gathering-task.html",
					"parentType": "child",
					"parentName": "Settings",
				}]
			}, {
				"title": "Custom Reports",
				"url": "admin/configuration/custom-reports.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Log/ Database Path",
				"url": "admin/scheduling/log-path.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "LDAP Attributes",
				"url": "admin/configuration/ldap-attributes.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Archive Settings",
				"url": "admin/configuration/ArchiveSettings.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Content Search Profiles",
				"url": "admin/configuration/exchange-server-content-search-profiles.html",
				"parentType": "child",
				"parentName": "Settings",
			},]
		}, {
			"title": "Exchange Online",
			"url": "admin/configuration/exchange-online.html",
			"parentType": "subParent",
			"parentName": "Settings",
			"children": [{
				"title": "Audit Profiles",
				"url": "admin/configuration/audit-profiles.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Content Search Profiles",
				"url": "admin/configuration/content-search-profiles.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Connection",
				"url": "admin/configuration/connection-configuration.html",
				"parentType": "child",
				"parentName": "Settings",
			},]
		}, {
			"title": "Skype for Business",
			"url": "admin/configuration/skype-configuration.html",
			"parentType": "subParent",
			"parentName": "Settings",
			"children": [{
				"title": "Report Profile",
				"url": "admin/configuration/skype-report-profile.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Data Collection",
				"url": "admin/configuration/skype-data-collection.html",
				"parentType": "child",
				"parentName": "Settings",
			},]
		}, {
			"title": "Other Configurations",
			"url": "admin/configuration/other-configuration.html",
			"parentType": "subParent",
			"parentName": "Settings",
			"children": [{
				"title": "Schedule Reports",
				"url": "admin/scheduling/report-scheduling.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Personal Settings",
				"url": "admin/configuration/server.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Business Hours",
				"url": "admin/configuration/business-hours.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Org/ Tenant Settings",
				"url": "admin/scheduling/adding-organization.html",
				"parentType": "child",
				"parentName": "Settings",
			},]
		},]
	}, {
		"title": "Admin",
		"url": "admin/admin-settings.html",
		"parentType": "subParent",
		"parentName": "Settings",
		"children": [{
			"title": "General Settings",
			"url": "admin/general-settings.html",
			"parentType": "subParent",
			"parentName": "Settings",
			"children": [{
				"title": "Product Settings",
				"url": "admin/configuration/product-settings.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Server Settings",
				"url": "admin/configuration/connection.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "What is SSL?", //No I18N
				"url": "admin/configuration/product-settings/ssl-overview.html", //No I18N
				"parentType": "child", //No I18N
				"parentName": "Settings", //No I18N
			}, {
				"title": "SSL Configuration", //No I18N
				"url": "admin/configuration/product-settings/ssl-configuration.html", //No I18N
				"parentType": "child", //No I18N
				"parentName": "Settings", //No I18N
			}, {
				"title": "Log Forwarder",
				"url": "admin/log-forwarder.html",
				"parentType": "child",
				"parentName": "Settings",
			},]
		}, {
			"title": "Utilities",
			"url": "admin/utilities/utilities.html",
			"parentType": "subParent",
			"parentName": "Settings",
			"children": [{
				"title": "Technicians",
				"url": "admin/utilities/user-management.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "Two-Factor Authentication",
				"url": "admin/utilities/two-factor-authentication.html",
				"parentType": "child",
				"parentName": "Settings",
			}, {
				"title": "License Management",
				"url": "admin/utilities/license-management.html",
				"parentType": "child",
				"parentName": "Settings",
			},]
		},]
	},]
}, {
	"title": "Tenant Settings",
	"url": "tenant/exchange-tenant-settings.html",
	"parentType": "mainParent",
	"parentName": "home",
	"children": [{
		"title": "Manual Configuration",
		"url": "tenant/manual-microsoft365-tenant-configuration.html",
		"parentType": "subParent",
		"parentName": "Tenant Settings",
	}, {
		"title": "Minimum Scope",
		"url": "tenant/roles-and-permissions.html",
		"parentType": "subParent",
		"parentName": "Tenant Settings",
	}, {
		"title": "Modify permissions for tenants",
		"url": "tenant/modify-restapi-permission.html",
		"parentType": "subParent",
		"parentName": "Tenant Settings",
	}, {
		"title": "Steps to modify REST API permissions",
		"url": "tenant/mfa-enabled-service-account.html",
		"parentType": "subParent",
		"parentName": "Tenant Settings",
	}, {
		"title": "Microsoft 365 tenant configuration",
		"url": "tenant/microsoft-365-tenant-configuration.html",
		"parentType": "subParent",
		"parentName": "Tenant Settings",
	}]
}, {
	"title": "Troubleshooting for Exchange",
	"url": "troubleshooting/troubleshooting-tips.html",
	"parentType": "mainParent",
	"parentName": "home",
}, {
	"title": "Troubleshooting for Skype",
	"url": "skype/troubleshooting-tips.html",
	"parentType": "mainParent",
	"parentName": "home",
}, {
	"title": "Knowledge Base",
	"url": "kb/service-account-removal.html",
	"parentType": "mainParent",
	"parentName": "home",
}, {
	"title": "Third-party Software",
	"url": "third-party-software.html",
	"parentType": "mainParent",
	"parentName": "home",
}, {
	"title": "Deprecation Details",
	"url": "deprecation.html",
	"parentType": "mainParent",
	"parentName": "home",
}, {
	"title": "Send Support Info",
	"url": "troubleshooting/support.html",
	"parentType": "mainParent",
	"parentName": "home",
}, {
	"title": "Contact ZOHO Corp",
	"url": "introduction/contact-zohocorp.html",
	"parentType": "mainParent",
	"parentName": "home",
}
],
bgColor = "#fff",
rhsNav,
	rhsNavList = "",
	searchList = [],
	sections;


//initial hash handling
if (location.hash) {
	setTimeout(function () {
		window.scrollTo(0, 0);
	}, 1000);
}
/**variable initialization */

/**DOM Ready */
$(document).ready(function () {
    $("#year").text("2025");
	initializer();
	try{

		if(window.location.href.indexOf('manageengine.com')> -1 && (ME_CC!=undefined && ME_CC=='US' || ME_CC=='GB' || ME_CC=='CA')){
			enableYearEndBanner();
		}
	}
	catch(e){

	}
});
/**DOM Ready */
function contextMenuHandler(selector) {
	$(selector).on("contextmenu", function (e) {
		var futureUrl = $(this).attr("href");
		var baseUrl = "/help/";
		var isFutureURLISSet = futureUrl.indexOf(baseUrl) == -1 ? false : true;
		var hostURL = window.location.href.substr(
			0,
			window.location.href.indexOf(baseUrl)
		);
		if (!isFutureURLISSet) {
			$(this).attr("data-href", futureUrl);
			$(this).attr("href", hostURL + baseUrl + futureUrl);
		}
	});
}
function checkConnection() {
	connectionUrl = window.location.href.substr(0, window.location.href.indexOf("/help/")) + "/help/";
}
function getRecursiveList(element) {
	if ($(element).closest("ul").prev().length) {
		return {
			text: $(element).closest("ul").prev().text(),
			url: $(element).closest("ul").prev().attr("href"),
		};
	}
}
function getNavitionObject() {
	var defaultObject = [
		{
			text: "Welcome M365 Manager Plus",
			url: "index.html",
		},
	];
	var ele = $(".in .active");
	var iteration = ele.parents("ul").length;
	var navMenuObject = [{ text: ele.text(), url: ele.attr("href") }];
	ele.parents("ul").each(function () {
		if (!$(this).hasClass("vertical-menu")) {
			navMenuObject.push(getRecursiveList($(this)));
		}
	});
	if (
		navMenuObject.length == 1 &&
		navMenuObject[0].text == "" &&
		navMenuObject[0].url == undefined
	) {
		return defaultObject;
	}
	return navMenuObject;
}
function buildMenu(data) {
	if (data.length > 0) {
		var ulCon = $("<ul/>");
		for (var i = 0; i < data.length; i++) {
			var liCon = $("<li/>");
			var alink = $("<a/>");
			alink.text(data[i].title);
			alink.attr("title", data[i].title);
			alink.attr("href", data[i].url);
			alink.attr("data-href", data[i].url);
			alink.attr("data-parent", data[i].parentName);
			alink.addClass(data[i].parentType);
			if (location.href.indexOf(data[i].url) != -1) {
				liCon.addClass("in");
				alink.addClass("active");
				currentUrl = data[i].url;
				//breadCrumb+=" &gt; <a href='"+data[i].url+"'>"+data[i].title+"</a> ";
			}
			liCon.append(alink);
			if (data[i].children && data[i].children.length > 0) {
				var childCon = buildMenu(data[i].children);
				liCon.append(childCon);
				liCon.addClass("arrow");
			} else {
				liCon.addClass("book");
			}
			ulCon.append(liCon);
		}
		//$(".breadcrumbWrapper").append(breadCrumb);
		return ulCon;
	}
}
function mobileMenuHandler() {
	$(".ic").on("click", function () {
		$(".menu-it").slideToggle();
		$(this).toggleClass("active");
		$(".lhs").toggleClass("active");
	});
	$(".mclo").on("click", function () {
		$(".lhs").removeClass("active");
		$(".ic").removeClass("active");
		$(".menu-it").slideUp();
	});
}
function initialHashHandling() {
	if (location.hash != "") {
		setTimeout(function () { $("html, body").stop().animate({ scrollTop: $(window.location.hash).offset().top - 130, }, 900, "swing"); }, 500);
	}
}
function innerLinksScrollingToId() {
	$("a[href*=\\#]").on("click", function (e) {
		var target = this.hash,
			$target = $(target);
		$("html, body")
			.stop()
			.animate(
				{
					scrollTop: $target.offset().top - 70,
				},
				900,
				"swing",
				function () {
					window.location.hash = target;
				}
			);
	});
}
function setSearchBackgroundColor() {
	if ($(window).innerWidth() > 1200) {
		bgColor = "#122331";
	}
}
//opens currect active page
function searchHandler() {
	var filter,
		testStr,
		txtValue,
		chk = 0;
	$(".searchField").on('keyup',function () {
		if ($(this).val() == "") {
			$(this).html("");
			chk = 1;
			$(".searchList, .searchListBg").hide();
			$(".searchBar, .mobSearch").removeClass("hideIcon");
		} else {
			$(".searchBar, .mobSearch").addClass("hideIcon");
			// $(".searchField").css("background", "#fff");
			$(".searchList, .searchListBg").show();
		}
		$(".searchList").html("");
		$(".meSearch").hide();
		filter = sanitizeHTML($(this).val()).trim();
		testStr = filter.toLowerCase();
		//			console.log(filter, testStr);
		for (i = 0; i < searchList.length; i++) {
			txtValue = searchList[i].title;
			var liHeightFix = "";
			if (searchList[i].clsName != undefined) {
				liHeightFix = searchList[i].clsName;
			}
			if (txtValue.toLowerCase().indexOf(testStr) > -1) {
				$(".searchList").append(
					"<li class='" +
					liHeightFix +
					"'><a href='" +
					searchList[i].url +
					"'><p> <span class='search-head'>" +
					searchList[i].title +
					"</span><span>" +
					searchList[i].cat +
					"</span></p></a></li>"
				);
			}
		}
		if ($(".searchList li").length <= 0) {
			$(".searchList").append(
				"<li class='noResult'><p>No results found</p></li>"
			);
			$(".meSearch").show();
			$(".meSearch").attr(
				"href",
				"https://www.manageengine.com/products/exchange-reports/help/search-results.html?query=" +
				filter
			);
			$(".meSearch").find("span").html(filter);
			$(".searchListBg").css("height", "80px");
		} else {
			$(".searchListBg").css("height", "160px");
		}
	});
}
function breadCrumbsGenerator() {
	var breadCrumbList = getNavitionObject();
	var breadCrumb = "";
	for (var i = breadCrumbList.length - 1; i >= 0; i--) {
		if (0 === i) {
			breadCrumb +=
				"<span class='gtIcon'>&nbsp;</span> <a style='pointer-events:none'>" +
				breadCrumbList[i].text +
				"</a>";
		} else {
			breadCrumb +=
				"<span class='gtIcon'>&nbsp;</span> <a href=" +
				breadCrumbList[i].url +
				">" +
				breadCrumbList[i].text +
				"</a>";
		}
	}
	$(".breadcrumbWrapper div").append(breadCrumb);
	contextMenuHandler(".breadcrumbWrapper a");
}
function menuBuilder() {
	$(".lhs > div").html(
		buildMenu(window.nav).addClass("vertical-menu").attr("id", "vMenu")
	);
	$("#vMenu li.in").parents("li").addClass("in");
	$("#vMenu a.active").parents("li.arrow").find(".mainParent").addClass("act");
	$("#vMenu a.active")
		.parentsUntil(".mainParent")
		.find(".in>a")
		.addClass("act");
	$(".container .lhs").css("height", $(window).innerHeight() - (67+45+34+20) + "px");
	contextMenuHandler(".vertical-menu li a");
	$(".vertical-menu li").each(function () {
		searchList.push({
			title: $(this).find("a").attr("title"),
			url: connectionUrl + $(this).find("a").attr("href"),
			cat: $(this).find("a").attr("data-parent"),
			clsName: $(this).find("a").attr("data-classname"),
		});
	});
}
function linkClickHanlder() {
	$(document).on(
		"click",
		".vertical-menu li a, .breadcrumbWrapper a",
		function (e) {
			$(this).attr("href", $(this).attr("data-href"));
			if (currentUrl!=undefined && location.href.indexOf(currentUrl) != -1) {
				debugger
				location.replace(location.href.slice(0, location.href.indexOf(currentUrl)) + $(this).attr("href"));
				e.preventDefault();
			}
			else if(location.href.indexOf( unLinkedPages.filter(function(e,i){return e.indexOf(window.location.href.substring(window.location.href.lastIndexOf("help/")))}))>-1){
				debugger
				var index = location.href.indexOf( unLinkedPages.filter(function(e,i){return e.indexOf(window.location.href.substring(window.location.href.lastIndexOf("help/")))}));
				location.replace(location.href.slice(0, index) + $(this).attr("href"));
				e.preventDefault();
			}
		}
	);
	$(document).on("click", 'a[href^="#"]', function (event) {
		event.preventDefault();
		$("html, body").animate(
			{
				scrollTop: $($.attr(this, "href")).offset().top - 130,
			},
			500
		);
	});
	$(document).on("click", function (e) {
		if (!$(e.target).is(".searchField") || $(".searchField").val() != "") {
			$(".searchList, .searchListBg").hide();
			// $(".searchField").css("background", bgColor);
		}
	});
}
function RHSTopicBuilder() {
	var rhsTopicLength = $(".container .rhs h2").length;
	if (rhsTopicLength > 1) {
		var i = 0;
		$(".container .rhs h2").each(function () {
			var id = "nav" + i;
			if ($(this).attr("id") != undefined) {
				id = $(this).attr("id");
			}
			$(this).attr("id", id);
			rhsNavList += "<li><a href=#" + id + ">" + $(this).text() + "</a></li>";
			i++;
		});
		rhsNav =
			"<div class='stickyRhs'><h3>On this page</h3><ul>" +
			rhsNavList +
			"</ul></div>";
		$(".container .rhs").after(rhsNav);
	}
	sections = $(".rhs h2"),
		nav = $(".stickyRhs"),
		nav_height = nav.outerHeight();
}
function onWindowScroll() {
	$(window).on("scroll", function () {
		var cur_pos = $(this).scrollTop();
		sections.each(function () {
			var top = $(this).offset().top - nav_height + 20,
				bottom = top + $(this).outerHeight();
			if (cur_pos >= top && cur_pos <= bottom) {
				nav.find("a").removeClass("active");
				nav.find('a[href="#' + $(this).attr("id") + '"]').addClass("active");
			}
		});
		var windowTop = $(window).scrollTop();
		if ($(window).scrollTop() > 100) {
			windowTop += 60;
			$(".stickyRhs").css("top", windowTop);
		} else {
			$(".stickyRhs").css("top", "80px");
		}
	});
}

function templateScript() {
	$(".mob-act").click(function () { $(".right-menu").addClass("menushow"); });
	$("ul.right-menu li:nth-child(1) span").click(function () { $(".right-menu").removeClass("menushow"); });
	var loc = document.location + "";
	if (loc.search("https://www.manageengine.com") !== -1) { $(".downloadd").css({ "display": "block" }); $(".getquo").css({ "display": "none" }); }
	else { $(".downloadd").css({ "display": "none" }); $(".getquo").css({ "display": "block" }); }
	$(window).scroll(function () {
		if ($(window).scrollTop() >= 350)
			$('.btn-mob-bann').addClass('btn-mob-bann-act');
		else {
			$('.btn-mob-bann').removeClass('btn-mob-bann-act');
		}
	});
	$("ul.relPro li").mouseover(function () {
		if ($(this).hasClass("hrel")) {
		} else {
			$("ul.relPro li div").stop(true).slideUp(500);
			$("ul.relPro li").stop(true).css("border", "none");
			$("div", this).stop(true).slideDown(500);
			$(this).stop(true).css({ "border-top": "solid 1px #f3f3f3", "border-bottom": "solid 1px #f3f3f3" });
		}
	});
}
function rhsScrollStoper(){
	setTimeout(function() {
		if ($('.in').length > 0) {
			$('.lhs').animate({
				scrollTop: $('.in').last().offset().top - 200
			});
			if (!$('.book').hasClass('in')) {
				$('.in').last().children('a').addClass('highlight');
			}
		}
	}, 300)
}
function sanitizeHTML(html) {
	var regexPatterns = [/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,/\<(.*?)\>/g,/[&].*?;/g];
	var myHTML = new DOMParser()
		.parseFromString(html, 'text/html');
	  myHTML = myHTML.body.textContent;
	  for(var i=0;i<regexPatterns.length;i++){
		  myHTML  = myHTML.replace(regexPatterns[i], '');
		  }
	  return myHTML || '';
}

var yearEndOfferTemplate = "<style>" + ".offer-bar {display: none;}.year-end-offer-enabled .help_top_pane {top: 49px}.year-end-offer-enabled .breadcrumbWrapper {top: 115px;}.year-end-offer-enabled .b-con {padding-top: 94px;}.year-end-offer-enabled .container .lhs {top: 155px;}.year-end-offer-enabled .offer-bar {height: 50px;background: #fdd15b;position: fixed;text-align: center;border-bottom: 1px solid #e6e6e8;display: none;}.year-end-offer-enabled .offer-bar:before {content: \"\";width: 165px;height: 58px;position: absolute;left: 0;top: 0;background: url(https://www.manageengine.com/products/active-directory-audit/help/images/year-end-offer-2023.png) -6px -15px no-repeat;background-size: 187px;z-index: 1;}.offer-bar:after {background-position: left -9px;right: 0;left: auto;}.year-end-offer-enabled .offer-bar, .year-end-offer-enabled .offer-bar * {font-size: 16px;color: #000;box-sizing: border-box;font-weight: 400;left: 0;right: 0;z-index: 1 }.year-end-offer-enabled .offer-bar .offer-bar-inner {position: relative;z-index: 2;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag {display: inline-block;position: relative;padding: 8px 12px 8px 20px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small {font-size: 14px;display: block;position: relative;z-index: 2;color: #fff;font-weight: 600;padding: 5px 13px;background: #2c795d;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:before {content: \"\";display: block;position: absolute;background: url(\"https://www.manageengine.com/products/active-directory-audit/help/images/year-end-offer-2023.png\") -6px -91px;background-size: 187px;width: 80px;height: 39px;top: -3px;left: -95px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:after {content: \"\";display: block;position: absolute;width: 0px;height: 0px;border: 8px solid #2c795d;border-left-color: #0000;border-right-color: #0000;border-top-color: #0000;top: -3px;right: -7px;height: 0.2px;display: none\\\\9;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag:before {content: \"\";display: none;position: absolute;background: url(\\\"images/yearend-offer-2022.png\\\") -12px -95px;background-size: 600px 144px;top: 0;left: 0;height: 100%;width: 100%;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-btn {transition: all 0.5s ease-in-out;display: inline-block;padding: 5px 15px;border-radius: 30px;background-color: #d21313;text-decoration: none;margin-left: 10px;color: #fff;font-size: 14px;font-weight: 500;z-index: 2;position: relative;}.offer-bar .offer-bar-inner .offer-btn:hover {box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;}.offer-bar .offer-bar-inner .offer-tc {position: absolute;right: 10px;bottom: 10px;font-size: 10px;text-align: right }@media screen and (min-width: 2559px) {.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-tc {font-size: 12px;right: 18px;}}@media screen and (max-width: 1200px) {.year-end-offer-enabled .mob-act {top: 70px;}}@media screen and (max-width: 1024px) {.year-end-offer-enabled .offer-bar::after {background-position: left -41px;}.year-end-offer-enabled .offer-bar::before {background-position: -235px -9px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-tc {right: 65px;}}@media screen and (max-width: 768px) {.year-end-offer-enabled .offer-bar::after {background-position: 59px -21px;}.year-end-offer-enabled .offer-bar::before {background-position: -235px -9px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-btn {position: absolute;left: 0;right: 0;bottom: -25px;margin: auto;width: 165px;padding: 5px 15px;}.year-end-offer-enabled .offer-bar + .help_top_pane {top: 80px;}body.year-end-offer-enabled .offer-bar {height: 90px;}.year-end-offer-enabled .help_top_pane{top: 89px;}.year-end-offer-enabled .breadcrumbWrapper{top: 155px;}.year-end-offer-enabled .n1-body .n1-right{padding-top: 80px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-tc {right: 15px;bottom: -30px;}.year-end-offer-enabled .mob-act {top: 94px;}.year-end-offer-enabled .mob-act {top: 115px;}}@media screen and (max-width: 620px) {.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small {background: transparent;color: #000;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:after {display: none}}@media screen and (max-width: 468px) {.year-end-offer-enabled .offer-bar:before, .year-end-offer-enabled .offer-bar:after {display: none;}.year-end-offer-enabled .offer-bar .offer-bar-inner {padding-top: 9px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag {padding: 0;display: block;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag:before {display: none;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:before {display: none;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:after {display: none;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-btn .offer_icn_gift {display: none;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-tc {right: 15px;bottom: -30px;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-btn {bottom: -35px;}.year-end-offer-enabled .help_top_pane {top: 110px;}body.year-end-offer-enabled .offer-bar {height: 111px;}.year-end-offer-enabled .mob-act {top: 135px;}}@media screen and (max-width: 375px) {.year-end-offer-enabled .offer-bar {padding: 0 10px}.year-end-offer-enabled .help_top_pane {top: 134px;}body.year-end-offer-enabled .offer-bar {height: 135px;}.year-end-offer-enabled .mob-act {top: 145px;}.year-end-offer-enabled .content {padding-top: 105px;}.year-end-offer-enabled .n1-body .n1-right {padding-top: 100px;}}@media screen and (max-width: 325px) {.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:before {display: none;}.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-tc {right: 0;}}@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {.year-end-offer-enabled .offer-bar .offer-bar-inner .offer-des-tag small:after {display: none;}}body.year-end-offer-enabled .offer-bar {display: block;</style>" +
	"<div class=\"offer-bar\">" +
	"  <div class=\"offer-bar-inner\">" +
	"    <span class=\"offer-des-tag\"><small>Big savings, Better ROI!</small></span> Exclusive discounts on ManageEngine" +
	"    Products!* <a target=\"_blank\"" +
	"      href=\"https://www.manageengine.com/active-directory-360/year-end-offer.html?utm_source=mmp&utm_medium=help_docs&utm_content=yearend_banner\"" +
	"      class=\"offer-btn\"> Boost your business</a>" +
	"    <span class=\"offer-tc\">*T&C apply</span>" +
	"  </div>" +
	"</div>";
function enableYearEndBanner(){
	var elem = document.createElement('div');
	elem.innerHTML = yearEndOfferTemplate;
	document.body.insertBefore(elem,document.body.firstChild);
	document.body.classList.add('year-end-offer-enabled');
}
  

function initializer() {
	// setSearchBackgroundColor();
	initialHashHandling();
	checkConnection();
	mobileMenuHandler();
	innerLinksScrollingToId();
	menuBuilder();
	searchHandler();
	breadCrumbsGenerator();
	RHSTopicBuilder();
	onWindowScroll();
	templateScript();
	rhsScrollStoper();
	linkClickHanlder();
}
//ignorei18n_end
