

// obtain plugin
	var cc = initCookieConsent();


	// run plugin with your configuration
	var ccOptions = {
		current_lang: "en",
		autoclear_cookies: true, // default: false
		theme_css: "" + '/plugins/cookieconsent/dist/cookieconsent.css', // 🚨 replace with a valid path
		page_scripts: true, // default: false
		revision: 0,
		cookie_name: 'cc_cookie_settings',
		autorun: false,
		
		// delay: 0,                               // default: 0
		// auto_language: null                     // default: null; could also be 'browser' or 'document'
		// autorun: true,                          // default: true
		// force_consent: false,                   // default: false
		// hide_from_bots: false,                  // default: false
		// remove_cookie_tables: false             // default: false
		// cookie_name: 'cc_cookie',               // default: 'cc_cookie'
		// cookie_expiration: 182,                 // default: 182 (days)
		// cookie_domain: location.hostname,       // default: current domain
		// cookie_path: '/',                       // default: root
		// cookie_same_site: 'Lax',                // default: 'Lax'
		// use_rfc_cookie: false,                  // default: false
		// revision: 0,                            // default: 0

		onAccept: function (cookie) {
			// ...
		},

		onChange: function (cookie, changed_preferences) {
			ccInitButton();
		},

		languages: {
			"en": {
				consent_modal: {
					title: "Information about cookies",
					description: "This website uses essential cookies. All other cookies will only be collected based on your permission." +  '<br><button type="button" data-cc="c-settings" class="cc-link">' + "Show my settings" + '</button>',
					primary_btn: {
						text: "Accept all",
						role: 'accept_all'              // 'accept_selected' or 'accept_all'
					},
					secondary_btn: {
						text: "Reject all",
						role: 'accept_necessary'        // 'settings' or 'accept_necessary'
					}
				},
				settings_modal: {
					title: "Cookie settings",
					save_settings_btn: "Save settings",
					accept_all_btn: "Accept all",
					reject_all_btn: "Reject all",
					close_btn_label: "Zavřít",
					cookie_table_headers: [
						{
							col1: 'Name'
						},
						{
							col2: 'Domain'
						},
						{
							col3: 'Expiration'
						},
						{
							col4: 'Description'
						}
					],
					blocks: [
						{
							title: "Cookie usage",
							description: "Cookies on this site fall into several categories. You may permit or reject one or more category. Find out more: https:\/\/www.cookiehub.com\/about-cookies",
						}, 
												{
							title: "Essential cookies",
							description: "Some cookies are essential and allow our website to function properly. These cannot be rejected.",
							toggle: {
								value: "necessary",
								enabled: true,
								readonly: true          // cookie categories with readonly=true are all treated as "necessary cookies"
							}, 
							cookie_table: [
									{
										col1: "PHPSESSID", // match all cookies starting with "_ga"
										col2: "www.khdkelectronics.com",
										col3: "7 d",
										col4: "This cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed.",
										//is_regex: true
									},
									{
										col1: "cc_cookie", // match all cookies starting with "_ga"
										col2: "www.khdkelectronics.com",
										col3: "6 month",
										col4: "",
										//is_regex: true
									}
							]
						},
						{
							title: "Analytical cookies",
							description: "These anonymized cookies help us improve your user experience.",
							toggle: {
								value: "analytics",
								enabled: true,
								readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
							}, 
							cookie_table: [
									{
										col1: "__utma", // match all cookies starting with "_ga"
										col2: ".khdkelectronics.com",
										col3: "730 d",
										col4: "",
										//is_regex: true
									},
									{
										col1: "__utmb", // match all cookies starting with "_ga"
										col2: ".khdkelectronics.com",
										col3: "1 h",
										col4: "",
										//is_regex: true
									},
									{
										col1: "__utmc", // match all cookies starting with "_ga"
										col2: ".khdkelectronics.com",
										col3: "Session",
										col4: "",
										//is_regex: true
									},
									{
										col1: "__utmz", // match all cookies starting with "_ga"
										col2: ".khdkelectronics.com",
										col3: "182 d",
										col4: "",
										//is_regex: true
									},
									{
										col1: "_fbp", // match all cookies starting with "_ga"
										col2: ".khdkelectronics.com",
										col3: "90 d",
										col4: "",
										//is_regex: true
									}
							]
						},
						{
							title: "Other cookies",
							description: "Uncategorized cookies.",
							toggle: {
								value: "other",
								enabled: true,
								readonly: false          // cookie categories with readonly=true are all treated as "necessary cookies"
							}, 
							cookie_table: [
									{
										col1: "__utmt_UA-38635881-1", // match all cookies starting with "_ga"
										col2: ".khdkelectronics.com",
										col3: "1 h",
										col4: "",
										//is_regex: true
									},
									{
										col1: "ak_bmsc", // match all cookies starting with "_ga"
										col2: ".chimpstatic.com",
										col3: "2 h",
										col4: "",
										//is_regex: true
									},
									{
										col1: "VISITOR_INFO1_LIVE", // match all cookies starting with "_ga"
										col2: ".youtube.com",
										col3: "180 d",
										col4: "",
										//is_regex: true
									},
									{
										col1: "YSC", // match all cookies starting with "_ga"
										col2: ".youtube.com",
										col3: "Session",
										col4: "",
										//is_regex: true
									},
									{
										col1: "__atuvc", // match all cookies starting with "_ga"
										col2: "www.khdkelectronics.com",
										col3: "396 d",
										col4: "",
										//is_regex: true
									},
									{
										col1: "__atuvs", // match all cookies starting with "_ga"
										col2: "www.khdkelectronics.com",
										col3: "1 h",
										col4: "",
										//is_regex: true
									},
									{
										col1: "loc", // match all cookies starting with "_ga"
										col2: ".addthis.com",
										col3: "396 d",
										col4: "",
										//is_regex: true
									},
									{
										col1: "uvc", // match all cookies starting with "_ga"
										col2: ".addthis.com",
										col3: "396 d",
										col4: "",
										//is_regex: true
									}
							]
						}
					]
				}
			}
		}
	};
	
	
	cc.run(ccOptions);
	
	
	function ccInitButton() {
		if ($('.cookies-settings-button').length == 0) {
			$('body').append('<a href="javascript:void(0);" aria-label="View cookie settings" data-cc="c-settings" class="cookies-settings-button" onclick="cc.showSettings(0);return false;">Cookie Settings</a>');
		}
	}
