 




var asyncLoadFlag = "0";

var protocalType  = (window.location.protocol.indexOf("https") != -1 ? 'https' : 'http') 

var timeHour1 = parseInt("11");
timeHour1 = timeHour1+1;

function livsrvgetCookie(cookiename)
{
	var cookiestring=""+document.cookie;
	var index1=cookiestring.indexOf(cookiename);
	if (index1==-1 || cookiename=="") return "";
	var index2=cookiestring.indexOf(';',index1);
	if (index2==-1) index2=cookiestring.length;
	return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}

//---------------retriv the queryString parameter----------
function getParameter( parameterName ) {
	var queryString = "";
	try
	{
	   queryString = window.top.location.search.substring(1);
	}catch(e){}
 
  var parameters = new Array();
  parameters = queryString.split('&');
  for(var i = 0; i < parameters.length; i++) {
    if (parameters[i].indexOf(parameterName)>=0) {
      var parameterValue = new Array();
      parameterValue = parameters[i].split('=');
      return parameterValue[1];
    }
  }
  return 0;
}

var lschatWinLoadStatus = getParameter("ls_cs");
var ls_chatsess_s = escape(livsrvgetCookie("ls_chatsess833"));
var ls_chatbox_s  = escape(livsrvgetCookie("ls_chatbox833"));
var ls_brodet_s	  = escape(livsrvgetCookie("ls_brodet833"));

var tls_tempcs_id = livsrvgetCookie("ls_tempcs_id833");
var tls_serverip = livsrvgetCookie("ls_serverip833");
var pInitSess = livsrvgetCookie("ls_initsess833");

if (tls_tempcs_id == "")
{
	tls_tempcs_id =  "NA";
	tls_serverip = "NA";
}
if(pInitSess == "")
{
	pInitSess = "NA";
}

var ls_nexturl = "";
var did = "833";


var pageUrl = "NA";

try{
pageUrl = escape(window.top.location.href);
}
catch(e){}


var testpageUrl = "";
try
{
    testpageUrl = window.location.search.substring(1);
}
catch(e)
{}



if(pageUrl.indexOf("livserv_cs_id")>=0 || testpageUrl.indexOf("test_cs_id") != -1)
{
	ls_chatsess_s = "";
}

var livpropSessionId = "";

try{
  livpropSessionId = document.getElementById("UserSessionID").value;
}
catch(e){
}

var ls_chat_url = "";

if(pageUrl.indexOf("brigadegroup.com/residential/helpful-tools/electronic-fund-transfer")== -1){
    if (ls_chatsess_s == "")
    {
    	ls_nexturl = '<script src="' + protocalType + '://sub1.livserv.in/livserv/livservtemp3/index.jsp?did=833&pid=1&gtm=null' + '&count=' + new Date().getTime() + '"></script>';
    	ls_chat_url = protocalType + '://sub1.livserv.in/livserv/livservtemp3/index.jsp?did=833&pid=1&gtm=null' + '&count=' + new Date().getTime();
    }
    else
    {
    	ls_nexturl = '<script src="' + protocalType + '://sub1.livserv.in/livserv/livservtemp3/GetLivservWindow.jsp?did=833&pid=1&exParam=null&browserUrl=' +  pageUrl + '&ls_chatsess=' + ls_chatsess_s + '&ls_chatbox=' + ls_chatbox_s + '&ls_brodet=' + ls_brodet_s + '&pCsid=' + tls_tempcs_id + '&pSrvid=' + tls_serverip + '&pInitSess=' + pInitSess + '&livpropSessionId=' + livpropSessionId +  '&count=' + new Date().getTime() + '" ></script>';

    	ls_chat_url = protocalType + '://sub1.livserv.in/livserv/livservtemp3/GetLivservWindow.jsp?did=833&pid=1&exParam=null&browserUrl=' +  pageUrl + '&ls_chatsess=' + ls_chatsess_s + '&ls_chatbox=' + ls_chatbox_s + '&ls_brodet=' + ls_brodet_s + '&pCsid=' + tls_tempcs_id + '&pSrvid=' + tls_serverip + '&pInitSess=' + pInitSess + '&livpropSessionId=' + livpropSessionId +  '&count=' + new Date().getTime();
    }
}


if(833 == 508  || 833 == 21158  || 833 == 4494 || 833 == 22857 || 833 == 6179 || 833 == 21631 || 833 == 21257 || 833 == 16566 || 833 == 2826 || did == "21331" || did == "21595" || did == "20624" || did == "19608" || 833 ==  21447 || 833 ==  18873 || 833 ==  19506  || 833 ==  2553  || 833 ==  16253 || 833 ==  5662  || 833 ==  18576 || 833 == 20686   || 833 == 22068 || 833 == 20973 ||  833 == 21675 || 833 == 20981 || 833 == 16184 || 833 == 9901 || 833 == 7655 || 833 == 13852 || 833 == 9042  || 833 == 3422 || 833 == 15085 || 833 =="20973" || 833 =="9725" || 833 =="18942" || 833 =="15102" || 833 =="12981" || 833 =="13108" || 833 =="20177" || 833 =="18990" || 833 =="19690" || 833 =="9650" || 833 =="20185"  || 833 =="9657" || 833 =="918" || 833 == 19045  ||  833 == 19205 ||  833 == 9527 || 833 == 4456 ||  833 == 2546 || 833 == 16869 || 833 == 20488 || 833 == 7596 || 833 == "8228" || 833 == "1983" || 833 ==  "8907" || 833 ==  "12108" || 833 == "11912" || 833 == "12196" || 833 == "17015" || 833 == "14218" || 833 == "17339" || 833 == "4331" || 833 == "18185" || 833 == "15144" || 833 == "17552"  || 833 == "10975" || 833 == "6202" || 833 == "18637" || 833 == "18492" || 833 == "16353" || 833 == "16345" || 833 == "8228"  || 833 == "8623" || 833 == "14373" || 833 == "16661"  || 833 == "6808"  || 833 == "5054"  || 833 == "16394" || 833 == "16378"  ||  833 =="18990" || 833 =="8502" || 833 == "16386")
{
	loadLsChat();
	
}
else if(833 == 22631)
{
	if(pageUrl.indexOf("ukcbc.ac.ae/events-2")==-1 && pageUrl.indexOf("ukcbc.ac.ae/blog")==-1 && pageUrl.indexOf("ukcbc.ac.ae/2022/07/18/career-guidance-program")==-1 && pageUrl.indexOf("ukcbc.ac.ae/2022/06/07/career-guidance-and-personality-development-webinar")==-1 && pageUrl.indexOf("ukcbc.ac.ae/2022/04/18/webinar-22-april")==-1)
	{
		loadLsChat();
	}
}
else if(833 == 6171){
	if(pageUrl.indexOf("dnrgroup.in/highline-officia")== -1 && pageUrl.indexOf("dnrgroup.in/spring-leaf-official") == -1)
	{
		loadLsChat();
	}	
}
else if(833 == 16090){
    (function(){
		var s = document.createElement('script');
		s.type = "text/javascript";
		s.src = ls_chat_url;
		s.defer = true;
		document.body.appendChild(s);
	})();
}
else if(833 == 21801)
{
	if(pageUrl.indexOf("asterhospitals.in/gift-a-life")==-1)
	{
		loadLsChat();
	}
	else{
		var lsWinBlockCss = "<style>#livprop_chatbox{display:none}</style>";
		document.body.insertAdjacentHTML("beforeEnd", lsWinBlockCss);
	}
}
else if(833 == 7980){
	if(pageUrl.indexOf("feedback_form.php")== -1)
	{
		loadLsChat();
	}	
}
else if( 833 == 7153 ){
    if(lschatWinLoadStatus != "no"){
        loadLsChat();
    }
}
else if(833 == 57200000)
{
	
	if((timeHour1 <= 7 || timeHour1 > 18))
	{
		document.write(ls_nexturl);
	}

}
else{
    document.write(ls_nexturl);
    //loadLsChat();
}

function loadLsChat(){

	(function(){
		var s = document.createElement('script');
		s.type = "text/javascript";
		s.async = true;
		s.src = ls_chat_url;
		document.body.appendChild(s);
	})();
}