
function phplive_unique() { var date = new Date() ; return date.getTime() ; }
if ( typeof( phplive_js ) == "undefined" )
{
	phplive_js = 1 ;
	var phplive_dom ;
	var phplive_btn = 3724686 ;
	var phplive_stat_refer = encodeURIComponent( document.referrer.replace("http", "hphp") ) ;
	var phplive_stat_onpage = encodeURIComponent( location.toString().replace("http", "hphp") ) ;
	var phplive_stat_title = encodeURIComponent( document.title ) ;
	var win_width = screen.width ;
	var win_height = screen.height ;
	var phplive_initiate_widget = 0 
	var phplive_support_3724686 ;
	var obj_div ;
	var obj_cover ;
	var obj_iframe ;

	var resolution = escape( win_width + " x " + win_height ) ;

	var phplive_quirks = 0 ;
	var phplive_IE ;
	//@cc_on phplive_IE = navigator.appVersion ;

	javascript:(
		function()
		{
			var mode=document.compatMode,m ;
			if( mode )
			{
				if ( ( mode == 'BackCompat' ) && phplive_IE )
					phplive_quirks = 1 ;
			}
		}
	)();

}

function init_doms()
{
	// jQuery lib load
	if ( ( typeof( window.jQuery ) == "undefined" ) && ( typeof( phplive_dom ) == "undefined" ) )
	{
		var script_jquery = document.createElement('script') ;
		script_jquery.type = "text/javascript" ; script_jquery.async = true ;
		script_jquery.onload = script_jquery.onreadystatechange = function () {
			phplive_dom = window.jQuery.noConflict() ;
		} ;
		script_jquery.src = "//https://clrur.com/js/framework.js" ;
		var script_jquery_s = document.getElementsByTagName('script')[0] ;
		script_jquery_s.parentNode.insertBefore(script_jquery, script_jquery_s) ;
	}
	else
		phplive_dom = window.jQuery ;
}

var phplive_pullimg_footprint_3724686, st_phplive_pullimg_3724686, phplive_thec_3724686 = 0 ;
// below image also in function phplive_image_refresh_3724686()
var phplive_status_image_3724686 = "//https://clrur.com/ajax/image.php?d=1&procedure_group=&r="+phplive_stat_refer+"&p="+phplive_stat_onpage+"&title="+phplive_stat_title+"&btn=3724686&resolution="+resolution+"&"+phplive_unique() ;
var phplive_request_url_3724686 = "//https://clrur.com/phplive.php?d=1&procedure_group=&btn=3724686&onpage="+phplive_stat_onpage+"&title="+phplive_stat_title ;
var phplive_widget_3724686 = "" ;

    //>~~~~~> Is Patient Portal
            var phplive_image_or_text_3724686 = "<a class=\"btn-support\" href=\"Javascript:void(0)\" onClick=\"can_show_box=false;phplive_launch_chat_3724686(0)\"><span>Live CHAT Support<strong>Online Now</strong></span></a>";
    
function phplive_image_refresh_3724686()
{
		clearInterval( phplive_interval_3724686 ) ;
	}

function phplive_silent_close( phplive_theces, theisadmin, thetimer, theunique )
{
	alert( unescape( phplive_theces ) ) ;
}

function phplive_footprint_tracker_3724686()
{
	phplive_pullimg_footprint_3724686 = new Image ;
	phplive_pullimg_footprint_3724686.onload = phplive_pullimg_actions_3724686 ;
	phplive_pullimg_footprint_3724686.src = "//https://clrur.com/ajax/footprints.php?deptid=1&procedure_group=&r="+phplive_stat_refer+"&onpage="+phplive_stat_onpage+"&title="+phplive_stat_title+"&c="+phplive_thec_3724686+"&resolution="+resolution+"&"+phplive_unique() ;
}

function phplive_pullimg_actions_3724686()
{
	var thisflag = phplive_pullimg_footprint_3724686.width ;

	if ( ( thisflag == 1 ) || ( thisflag == 2 ) )
	{
		// if phplive_dom is not registered, wait for the next cycle as the loading was too fast
		if ( ( thisflag == 2 ) && !phplive_initiate_widget && ( typeof( phplive_dom ) != "undefined" ) )
		{
			phplive_dom( "body" ).append( phplive_widget_3724686 ) ;

			phplive_initiate_widget = 1 ;
			obj_div = phplive_dom( "#phplive_widget_3724686" ) ;
			obj_div_cover = phplive_dom( "#phplive_widget_cover_3724686" ) ;
			obj_iframe = phplive_dom ( "#iframe_widget_3724686" ) ;

			obj_iframe.attr( 'src', "//https://clrur.com/widget.php?btn=3724686&"+phplive_unique() ) ;
			if ( typeof( obj_div_cover.center ) == "undefined" )
			{
				obj_div = phplive_dom( "#phplive_widget_3724686" ) ;
				obj_div_cover = phplive_dom( "#phplive_widget_cover_3724686" ) ;
				obj_iframe = phplive_dom ( "#iframe_widget_3724686" ) ;
			}

			obj_div_cover.show().animate({ left: 50 }, 2000, function() { obj_div.fadeIn("fast") ; }) ;
		}
		else if ( ( thisflag == 1 ) && phplive_initiate_widget )
		{
			phplive_initiate_widget = 0 ;
			obj_div.fadeOut( "fast" ) ;
			obj_div_cover.fadeOut("fast") ;
		}
		else
		{
			// brute fix - will refine to dom load check in future build
			setTimeout(function(){ init_doms() }, 2000) ;
		}

		++phplive_thec_3724686 ;
		st_phplive_pullimg_3724686 = setTimeout(function(){ phplive_footprint_tracker_3724686() }, 10 * 1000) ;
	}
	else if ( thisflag == 4 )
	{
		clearTimeout( st_phplive_pullimg_3724686 ) ;
		clearInterval( phplive_interval_3724686 ) ;
	}
}

function phplive_launch_chat_3724686(thewidget)
{
	var winname = phplive_unique() ;
	phplive_request_url_3724686 = phplive_request_url_3724686+"&widget="+thewidget ;

	phplive_support_3724686 = window.open( phplive_request_url_3724686, "_blank", 'scrollbars=no,resizable=yes,menubar=no,location=no,screenX=50,screenY=100,width=550,height=410' ) ;
}

function phplive_write_widget_3724686()
{
	var this_position = ( phplive_quirks ) ? "absolute" : "fixed" ;
	var this_widget_width = ( phplive_quirks ) ? 270 : 250 ;
	var this_widget_height = ( phplive_quirks ) ? 180 : 160 ;
	var this_widget_top = 190 ;

	// NOTE: we do not recommend modifying the width and height of the widget window as this will alter the
	// communication behavior based on mouse coordinates in function phplive_pullimg_actions_3724686()
	phplive_widget_3724686 = "<map name='initiate_chat_cover'><area shape='rect' coords='222,2,247,26' href='JavaScript:void(0)' onClick='phplive_widget_decline_3724686()'><area shape='rect' coords='0,26,250,160' href='JavaScript:void(0)' onClick='phplive_widget_launch_3724686()'></map><div id='phplive_widget_3724686' style='display: none; position: "+this_position+"; top: "+this_widget_top+"px; left: 50px; background: url( "//https://clrur.com/themes/initiate/bg_trans.png" ) repeat; padding: 10px; width: "+this_widget_width+"px; height: "+this_widget_height+"px; -moz-border-radius: 5px; border-radius: 5px; z-Index: 10000;'><iframe id='iframe_widget_3724686' name='iframe_widget_3724686' style='display: none; width: 1px; height: 1px;' src='//https://clrur.com/blank.php' scrolling='no' border=0 frameborder=0 onLoad=''></iframe></div><div id='phplive_widget_cover_3724686' style='display: none; position: "+this_position+"; top: "+this_widget_top+"px; left: -800px; padding: 10px; z-Index: 10001;'><img src='//https://clrur.com/themes/initiate/initiate.gif?1750100739' width='250' height='160' border=0 usemap='#initiate_chat_cover' style='-moz-border-radius: 5px; border-radius: 5px;'></div>" ;
}

function phplive_widget_launch_3724686()
{
	if ( phplive_initiate_widget )
	{
		var obj_div = phplive_dom( "#phplive_widget_3724686" ) ;
		var obj_div_cover = phplive_dom( "#phplive_widget_cover_3724686" ) ;
		var obj_iframe = phplive_dom( "#iframe_widget_3724686" ) ;

		obj_div.fadeOut( "fast" ) ;
		obj_div_cover.hide() ;
		phplive_launch_chat_3724686(1) ;
	}
}

function phplive_widget_decline_3724686()
{
	if ( phplive_initiate_widget )
	{
		var obj_div = phplive_dom( "#phplive_widget_3724686" ) ;
		var obj_div_cover = phplive_dom( "#phplive_widget_cover_3724686" ) ;
		var obj_iframe = phplive_dom ( "#iframe_widget_3724686" ) ;

		obj_div.fadeOut( "fast" ) ;
		obj_div_cover.hide() ;

		phplive_pullimg_widget_3724686 = new Image ;
		phplive_pullimg_widget_3724686.onload = function() {
			//
		};
		phplive_pullimg_widget_3724686.src = "//https://clrur.com/ajax/chat_actions.php?action=disconnect&isop=0&widget=1&ip=18.97.9.173&"+phplive_unique() ;
		phplive_initiate_widget = 0 ;
	}
}

var phplive_status_image_write_3724686 = "<span id=\"phplive_btn_3724686\" class=\"\" style=\"cursor: pointer;\"></span>" ;
document.write( phplive_status_image_write_3724686 ) ;

(function() {
	if ( typeof( phplive_footprint_js ) == "undefined" )
	{
		phplive_footprint_js = 1 ;
		phplive_footprint_tracker_3724686() ;
	}

	document.getElementById("phplive_btn_3724686").innerHTML = phplive_image_or_text_3724686 ;
	phplive_write_widget_3724686() ;
})();
