/**/(function(){
	var cHref = encodeURIComponent( location.href );
	var cDomain = encodeURIComponent( '' );
	var wwCookie = document.cookie.match(/WebWelcomer=([^;]*)/);
	var scriptSrc = ''.concat(
		'https://app.webwelcomer.com/',
		'?_=1732842531',
		'&d=',( cDomain || cHref ),
		'&json=',( typeof JSON == 'object' ),
		'&useragent=',encodeURIComponent( navigator.userAgent ),
		'&' );
	
	var domLoaded = function(){
        var oScript = document.createElement( 'script' );

        oScript.type = 'text/javascript';
        oScript.src = scriptSrc;

        document.getElementsByTagName( 'head' )[0].appendChild( oScript );
	};// /domLoaded()

	if ( wwCookie ) {
		scriptSrc += '&cookie='.concat( wwCookie[1] );
	}

	if ( window.jQuery ) {
		scriptSrc += '&jquery='.concat( jQuery().jquery );
	}

	switch( true )
	{
		case document.readyState !== 'loading':
			/**
			 * document.readyState is onen of the following now:
			 *
			 * interactive: The document has finished loading and the document
			 * has been parsed but sub-resources such as images, stylesheets and
			 * frames are still loading. In this state the "DOMContentLoaded"
			 * event has already fired.
			 *
			 * complete: The document and all sub-resources have finished
			 * loading. This state indicates that the "load" event is about to
			 * fire.
			 */
			domLoaded();
			break;
			
		case /Safari/i.test(navigator.userAgent):(function(){
			var nSafariInterval = setInterval(function(){
	
				if( /loaded|complete/.test( document.readyState ) ){
					clearInterval( nSafariInterval );
					domLoaded(); // call target function
				}}, 10)
			}());
			break;

		case typeof window.addEventListener != 'undefined':
			window.addEventListener( 'DOMContentLoaded', domLoaded, false );
			break;

		case ( document.all && !window.opera ):
			// We don't need to wait for the dom to load. We can use "defer" with these browsers.
			document.write( ''.concat( '<script type="text/javascript" defer="defer" src="',scriptSrc,'">\x3C/script>' ) );
			break;

		default:
			/** Nothing can be done here. **/
	}// /switch()
}());