
// Run only once on the page if possible
if (typeof ehs_videoconfig == "undefined") {

// Get URL
var ehs_dmn=window.location.href;



// Set config to true
var ehs_videoconfig = true;

}

//if (ehs_dmn.includes("diabetesincontrol.com")) {
//	(function() {
//		var d = document, e = d.createElement('script'), p = d.getElementsByTagName('head')[0];
//		e.type = 'text/javascript';e.async = true;e.setAttribute("id", "browsi-tag");e.setAttribute("data-pubKey", "ehealthcaresolutions");e.setAttribute("data-siteKey", "ehealthcaresolutions");
//		e.src = 'https://brw.inframe.ai/bootstrap/bootstrap.js';
//		p.insertBefore(e, p.firstChild);
//	})();
//}
//else if (ehs_dmn.includes("intechopen.com")) {
//	(function() {
//		var d = document, e = d.createElement('script'), p = d.getElementsByTagName('head')[0];
//		e.type = 'text/javascript';e.async = true;e.setAttribute("id", "browsi-tag");e.setAttribute("data-pubKey", "ehealthcaresolutions");e.setAttribute("data-siteKey", "intechopen");
//		e.src = 'https://brw.inframe.ai/bootstrap/bootstrap.js';
//		p.insertBefore(e, p.firstChild);
//	})();
//}
//else {
	(function () {
	var ehs_kv=[],ehs_vid="video_ad_id_20000",ehs_sid="ehs.pro.intechopen.intechopen",ehs_playlist="wTLzfyOa";

	jwplayer(ehs_vid).setup({
		"playlist": "https://cdn.jwplayer.com/v2/playlists/"+ehs_playlist,
		"autostart": "viewable"
	});


	})();
//}