msuschatsupport.com Open in urlscan Pro
35.209.108.216  Public Scan

URL: https://msuschatsupport.com/index.php/chat/getstatus/(click)/internal/(position)/bottom_right/(ma)/br/(top)/350/(units)/pixe...
Submission: On July 31 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/*! Cookies.js - 0.4.0; Copyright (c) 2014, Scott Hamper; http://www.opensource.org/licenses/MIT */
(function(e){"use strict";var b=function(a,d,c){return 1===arguments.length?b.get(a):b.set(a,d,c)};b._document=document;b._navigator=navigator;b.defaults={path:"/"};b.get=function(a){b._cachedDocumentCookie!==b._document.cookie&&b._renewCache();return b._cache[a]};b.set=function(a,d,c){c=b._getExtendedOptions(c);c.expires=b._getExpiresDate(d===e?-1:c.expires);b._document.cookie=b._generateCookieString(a,d,c);return b};b.expire=function(a,d){return b.set(a,e,d)};b._getExtendedOptions=function(a){return{path:a&& a.path||b.defaults.path,domain:a&&a.domain||b.defaults.domain,expires:a&&a.expires||b.defaults.expires,secure:a&&a.secure!==e?a.secure:b.defaults.secure}};b._isValidDate=function(a){return"[object Date]"===Object.prototype.toString.call(a)&&!isNaN(a.getTime())};b._getExpiresDate=function(a,d){d=d||new Date;switch(typeof a){case "number":a=new Date(d.getTime()+1E3*a);break;case "string":a=new Date(a)}if(a&&!b._isValidDate(a))throw Error("`expires` parameter cannot be converted to a valid Date instance"); return a};b._generateCookieString=function(a,b,c){a=a.replace(/[^#$&+\^`|]/g,encodeURIComponent);a=a.replace(/\(/g,"%28").replace(/\)/g,"%29");b=(b+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent);c=c||{};a=a+"="+b+(c.path?";path="+c.path:"");a+=c.domain?";domain="+c.domain:"";a+=c.expires?";expires="+c.expires.toUTCString():"";return a+=c.secure?";secure":""};b._getCookieObjectFromString=function(a){var d={};a=a?a.split("; "):[];for(var c=0;c<a.length;c++){var f=b._getKeyValuePairFromCookieString(a[c]); d[f.key]===e&&(d[f.key]=f.value)}return d};b._getKeyValuePairFromCookieString=function(a){var b=a.indexOf("="),b=0>b?a.length:b;try {return{key:decodeURIComponent(a.substr(0,b)),value:decodeURIComponent(a.substr(b+1))}} catch(e) {return{key:a.substr(0,b),value:a.substr(b+1)}}};b._renewCache=function(){b._cache=b._getCookieObjectFromString(b._document.cookie);b._cachedDocumentCookie=b._document.cookie};b._areEnabled=function(){var a="1"===b.set("cookies_lhc.js",1).get("cookies_lhc.js");b.expire("cookies_lhc.js");return a};b.enabled=b._areEnabled();window.lhc_Cookies=b})();lhc_Cookies.defaults = {path:"/",secure: true};var lh_inst  = {JSON : {parse: window.JSON && (window.JSON.parse || window.JSON.decode) || String.prototype.evalJSON && function(str){return String(str).evalJSON();} || $.parseJSON || $.evalJSON,stringify:  Object.toJSON || window.JSON && (window.JSON.stringify || window.JSON.encode) || $.toJSON},js_variables : [],rendered : false,pos : "bottom_right",isOnline : true,disabledGeo : false,checkOperatorMessage : true,offset_data : '',reset : false,lang: '',langDefault: '/eng',is_dragging : false,is_full_height : false,online_tracked : false,urlopen : function(){return "//msuschatsupport.com/index.php"+this.lang+"/chat/startchat/(leaveamessage)/true/(theme)/1"+this.survey_id;
},hasSurvey : false,survey_id : '',surveyShown : false,isMinimized : false,explicitClose : false,isProactivePending : 0,dynamicAssigned : [],windowname : "startchatwindow",substatus : '',cookieData : {},cookieDataPers : {},domain : false,isSharing : false,chat_started : false,iswildcard : null,extensionArgs : '',prefillMessage : '',getCookieDomain : function(domain) {if (this.domain !== false) {return this.domain;} else {if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.domain != 'undefined') {this.domain = '.'+LHCChatOptions.opt.domain.replace(/(https:\/\/|http:\/\/)/g,'');} else {this.domain = '.'+document.location.hostname.replace(/^(?:[a-z0-9\-\.]+\.)??([a-z0-9\-]+)?(\.com|\.net|\.org|\.biz|\.ws|\.in|\.me|\.co\.uk|\.co|\.org\.uk|\.ltd\.uk|\.plc\.uk|\.me\.uk|\.edu|\.mil|\.br\.com|\.cn\.com|\.eu\.com|\.hu\.com|\.no\.com|\.qc\.com|\.sa\.com|\.se\.com|\.se\.net|\.us\.com|\.uy\.com|\.ac|\.co\.ac|\.gv\.ac|\.or\.ac|\.ac\.ac|\.af|\.am|\.as|\.at|\.ac\.at|\.co\.at|\.gv\.at|\.or\.at|\.asn\.au|\.com\.au|\.edu\.au|\.org\.au|\.net\.au|\.id\.au|\.be|\.ac\.be|\.adm\.br|\.adv\.br|\.am\.br|\.arq\.br|\.art\.br|\.bio\.br|\.cng\.br|\.cnt\.br|\.com\.br|\.ecn\.br|\.eng\.br|\.esp\.br|\.etc\.br|\.eti\.br|\.fm\.br|\.fot\.br|\.fst\.br|\.g12\.br|\.gov\.br|\.ind\.br|\.inf\.br|\.jor\.br|\.lel\.br|\.med\.br|\.mil\.br|\.net\.br|\.nom\.br|\.ntr\.br|\.odo\.br|\.org\.br|\.ppg\.br|\.pro\.br|\.psc\.br|\.psi\.br|\.rec\.br|\.slg\.br|\.tmp\.br|\.tur\.br|\.tv\.br|\.vet\.br|\.zlg\.br|\.br|\.ab\.ca|\.bc\.ca|\.mb\.ca|\.nb\.ca|\.nf\.ca|\.ns\.ca|\.nt\.ca|\.on\.ca|\.pe\.ca|\.qc\.ca|\.sk\.ca|\.yk\.ca|\.ca|\.cc|\.ac\.cn|\.com\.cn|\.edu\.cn|\.gov\.cn|\.org\.cn|\.bj\.cn|\.sh\.cn|\.tj\.cn|\.cq\.cn|\.he\.cn|\.nm\.cn|\.ln\.cn|\.jl\.cn|\.hl\.cn|\.js\.cn|\.zj\.cn|\.ah\.cn|\.gd\.cn|\.gx\.cn|\.hi\.cn|\.sc\.cn|\.gz\.cn|\.yn\.cn|\.xz\.cn|\.sn\.cn|\.gs\.cn|\.qh\.cn|\.nx\.cn|\.xj\.cn|\.tw\.cn|\.hk\.cn|\.mo\.cn|\.cn|\.cx|\.cz|\.de|\.dk|\.fo|\.com\.ec|\.tm\.fr|\.com\.fr|\.asso\.fr|\.presse\.fr|\.fr|\.gf|\.gs|\.co\.il|\.net\.il|\.ac\.il|\.k12\.il|\.gov\.il|\.muni\.il|\.ac\.in|\.co\.in|\.org\.in|\.ernet\.in|\.gov\.in|\.net\.in|\.res\.in|\.is|\.it|\.ac\.jp|\.co\.jp|\.go\.jp|\.or\.jp|\.ne\.jp|\.ac\.kr|\.co\.kr|\.go\.kr|\.ne\.kr|\.nm\.kr|\.or\.kr|\.li|\.lt|\.lu|\.asso\.mc|\.tm\.mc|\.com\.mm|\.org\.mm|\.net\.mm|\.edu\.mm|\.gov\.mm|\.ms|\.nl|\.no|\.nu|\.pl|\.ro|\.org\.ro|\.store\.ro|\.tm\.ro|\.firm\.ro|\.www\.ro|\.arts\.ro|\.rec\.ro|\.info\.ro|\.nom\.ro|\.nt\.ro|\.se|\.si|\.com\.sg|\.org\.sg|\.net\.sg|\.gov\.sg|\.sk|\.st|\.tf|\.ac\.th|\.co\.th|\.go\.th|\.mi\.th|\.net\.th|\.or\.th|\.tm|\.to|\.com\.tr|\.edu\.tr|\.gov\.tr|\.k12\.tr|\.net\.tr|\.org\.tr|\.com\.tw|\.org\.tw|\.net\.tw|\.ac\.uk|\.uk\.com|\.uk\.net|\.gb\.com|\.gb\.net|\.vg|\.sh|\.kz|\.ch|\.info|\.ua|\.gov|\.name|\.pro|\.ie|\.hk|\.com\.hk|\.org\.hk|\.net\.hk|\.edu\.hk|\.us|\.tk|\.cd|\.by|\.ad|\.lv|\.eu\.lv|\.bz|\.es|\.jp|\.cl|\.ag|\.mobi|\.eu|\.co\.nz|\.org\.nz|\.net\.nz|\.maori\.nz|\.iwi\.nz|\.io|\.la|\.md|\.sc|\.sg|\.vc|\.tw|\.travel|\.my|\.se|\.tv|\.pt|\.com\.pt|\.edu\.pt|\.asia|\.fi|\.com\.ve|\.net\.ve|\.fi|\.org\.ve|\.web\.ve|\.info\.ve|\.co\.ve|\.tel|\.im|\.gr|\.ru|\.net\.ru|\.org\.ru|\.hr|\.com\.hr)$/, '$1$2');}};return this.domain;},isWildcardCookie : function() {if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.subdomain != 'undefined') {this.iswildcard = LHCChatOptions.opt.subdomain;}return this.iswildcard;},updateVarsTimeout : null,appendArg : function(args) {var tt = args.length/2;for (i = 0; i < tt; i++) {var argument = args[i*2];var value = args[(i*2)+1];if (argument == 'survey_id') {this.survey_id = '/(survey)/'+value;this.hasSurvey = true;}}},addCss : function(css_content) {var head = document.getElementsByTagName('head')[0];var style = document.createElement('style');style.type = 'text/css';if(style.styleSheet) {style.styleSheet.cssText = css_content;} else {rules = document.createTextNode(css_content);style.appendChild(rules);};head.appendChild(style);},appendHTML : function (htmlStr) {var frag = document.createDocumentFragment(),temp = document.createElement('div');temp.innerHTML = htmlStr;while (temp.firstChild) {frag.appendChild(temp.firstChild);};return frag;},removeById : function(EId){return(EObj=document.getElementById(EId))?EObj.parentNode.removeChild(EObj):false;},hasClass : function(el, name) {return new RegExp('(\\s|^)'+name+'(\\s|$)').test(el.className);},addClass : function(el, name) {if (!this.hasClass(el, name)) { el.className += (el.className ? ' ' : '') +name; }},removeClass : function(el, name) {if (this.hasClass(el, name)) {el.className=el.className.replace(new RegExp('(\\s|^)'+name+'(\\s|$)'),' ').replace(/^\s+|\s+$/g, '');}},storePos : function(dm, height) {var cookiePos = '';cookiePos += dm.style.right;cookiePos += ","+dm.style.bottom;if (height > 0) {cookiePos += ","+height;}this.addCookieAttribute('pos',cookiePos);},min : function(initial) {// If it's proactive invitation hide instead to avoid reopening.
if (this.isProactivePending == 1) {this.hide();return;}var dm = document.getElementById('lhc_container');var msgNum = document.getElementById('lhc-msg-number');msgNum.innerHTML = '';msgNum.msg_number = 0;this.removeClass(dm, 'lhc-has-unread-message');if (!dm.attrIsMin || dm.attrIsMin == false) {dm.attrHeight = dm.style.height;dm.attrIsMin = true;this.isMinimized = true;if(dm.style.bottom!='' && dm.attrHeight!=''){dm.style.bottom = (parseInt(dm.style.bottom)+parseInt(dm.attrHeight)-35)+'px';} else {if (initial == undefined) {dm.style.bottom = (parseInt(dm.style.bottom) + parseInt(document.getElementById('lhc_iframe_container').offsetHeight)-10)+'px';}}var heightIframe = 0;if (initial == undefined) {heightIframe = parseInt(document.getElementById('lhc_iframe_container').offsetHeight)-1;} else if (typeof lh_inst.pendingHeight !== 'undefined') {heightIframe = lh_inst.pendingHeight;}this.addCookieAttribute('m',1);this.storePos(dm, heightIframe);dm.attrBottomOrigin = dm.style.bottom;dm.style.bottom = '';dm.attrRightOrigin = dm.style.right;dm.style.right = '0px';this.addClass(dm,'lhc-min');this.removeClass(document.body,'lhc-opened');} else {if (this.cookieData.pos) {var posContainer = this.cookieData.pos.split(',');if (typeof posContainer[2] !== 'undefined' && posContainer[2] > 0){document.getElementById('lhc_iframe').style.height = posContainer[2] + 'px';}};this.removeClass(dm,'lhc-min');dm.attrIsMin = false;this.isMinimized = false;if (dm.attrBottomOrigin) {dm.style.bottom = (parseInt(dm.attrBottomOrigin)-parseInt(document.getElementById('lhc_iframe').style.height)+9)+'px';dm.style.right = dm.attrRightOrigin;} else if (dm.style.bottom!='') {dm.style.bottom = (parseInt(dm.style.bottom)-parseInt(document.getElementById('lhc_iframe').style.height)+9)+'px';}this.removeCookieAttr('m');var inst = this;this.storePos(dm);this.addClass(document.body,'lhc-opened');};},hide : function() {this.isProactivePending = 0;if (!lh_inst.cookieData.hash || lh_inst.hasSurvey == false || lh_inst.surveyShown == true) {var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/index.php'+this.lang+'/chat/chatwidgetclosed'+this.getAppendCookieArguments()+'?ts='+Date.now());
th.appendChild(s);this.toggleStatusWidget(false);this.removeCookieAttr('pos');this.removeCookieAttr('m');if (lh_inst.cookieData.hash) {this.removeById('lhc_container');this.removeCookieAttr('hash');this.iframe_html = null;this.iframePreloaded = false;// Give time for cookie to be removed
setTimeout(function(){lh_inst.preloadWidget();},300);} else {if (this.iframeCustomUrl === true) {this.removeById('lhc_container');lh_inst.preloadWidget();} else {this.addClass(document.getElementById('lhc_container'),'lhc-delayed');}}this.removeClass(document.body,'lhc-opened');this.startNewMessageCheck();this.timeoutStatusWidgetOpen = 0;this.surveyShown = true;} else {this.showSurvey();}},hideHTMLInvitation : function() {lh_inst.hide();lh_inst.removeById('lhc-inv-container');return false;},showHTMLInvitation : function(invitationURL) {this.showStartWindow(invitationURL,true);lh_inst.removeById('lhc-inv-container');return false;},showSurvey : function() {if (lh_inst.cookieData.hash && lh_inst.hasSurvey == true && lh_inst.surveyShown == false){var locationCurrent = encodeURIComponent(window.location.href.substring(window.location.protocol.length));this.surveyShown = true;document.getElementById('lhc_iframe').contentWindow.location.replace("//msuschatsupport.com/index.php"+this.lang+"/survey/fillwidget/(leaveamessage)/true/(theme)/1"+this.getAppendCookieArguments()+'?URLReferer='+locationCurrent+this.parseOptions()+this.parseStorageArguments()+'&dt='+encodeURIComponent(document.title));
}},getAppendCookieArguments : function() {var hashAppend = this.cookieData.hash && this.reset == false  ? '/(hash)/'+this.cookieData.hash : '';var vidAppend = this.cookieDataPers.vid ? '/(vid)/'+this.cookieDataPers.vid : '';var hashResume = this.cookieData.hash_resume && this.reset == false  ? '/(hash_resume)/'+this.cookieData.hash_resume : '';var soundOption = this.cookieData.s ? '/(sound)/'+this.cookieData.s : '';var explicitClose = this.explicitClose ? '/(eclose)/t' : '';if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.attr_paid != 'undefined') {explicitClose = explicitClose + '/(phash)/'+ LHCChatOptions.attr_paid.phash;explicitClose = explicitClose + '/(pvhash)/'+ LHCChatOptions.attr_paid.pvhash;};return hashAppend+vidAppend+hashResume+soundOption+explicitClose+this.survey_id;},openRemoteWindow : function() {this.removeById('lhc_container');var popupHeight = (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.popup_height != 'undefined') ? parseInt(LHCChatOptions.opt.popup_height) : 520;var popupWidth = (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.popup_width != 'undefined') ? parseInt(LHCChatOptions.opt.popup_width) : 500;var locationCurrent = encodeURIComponent(window.location.href.substring(window.location.protocol.length));window.open(this.urlopen()+this.getAppendCookieArguments()+'/(er)/1'+'?URLReferer='+locationCurrent+this.parseOptions()+this.parseStorageArguments(),this.windowname,"scrollbars=yes,menubar=1,resizable=1,width="+popupWidth+",height="+popupHeight);this.removeCookieAttr('hash');this.removeCookieAttr('hash_resume');this.toggleStatusWidget(false);this.iframe_html = null;this.iframePreloaded = false;// Give time for cookie to be removed
setTimeout(function(){lh_inst.preloadWidget();},300);},getTimeZone : function() {var today = new Date();stdTimezoneOffset = function() {var jan = new Date(today.getFullYear(), 0, 1);var jul = new Date(today.getFullYear(), 6, 1);return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());};var dst = function() {return today.getTimezoneOffset() < stdTimezoneOffset();};var timeZoneOffset = 0;if (dst()) {timeZoneOffset = today.getTimezoneOffset();} else {timeZoneOffset = today.getTimezoneOffset()-60;};return (((timeZoneOffset)/60) * -1);},parseOptions : function() {argumentsQuery = new Array();var paramsReturn = '';if (typeof LHCChatOptions != 'undefined') {if (typeof LHCChatOptions.attr != 'undefined') {if (LHCChatOptions.attr.length > 0){for (var index in LHCChatOptions.attr) {if (typeof LHCChatOptions.attr[index] != 'undefined' && typeof LHCChatOptions.attr[index].type != 'undefined') {argumentsQuery.push('name[]='+encodeURIComponent(LHCChatOptions.attr[index].name)+'&encattr[]='+(typeof LHCChatOptions.attr[index].encrypted != 'undefined' && LHCChatOptions.attr[index].encrypted == true ? 't' : 'f')+'&value[]='+encodeURIComponent(LHCChatOptions.attr[index].value)+'&type[]='+encodeURIComponent(LHCChatOptions.attr[index].type)+'&size[]='+encodeURIComponent(LHCChatOptions.attr[index].size)+'&req[]='+(typeof LHCChatOptions.attr[index].req != 'undefined' && LHCChatOptions.attr[index].req == true ? 't' : 'f')+'&sh[]='+((typeof LHCChatOptions.attr[index].show != 'undefined' && (LHCChatOptions.attr[index].show == 'on' || LHCChatOptions.attr[index].show == 'off')) ? LHCChatOptions.attr[index].show : 'b'));};};};};if (typeof LHCChatOptions.attr_prefill != 'undefined') {if (LHCChatOptions.attr_prefill.length > 0){for (var index in LHCChatOptions.attr_prefill) {if (typeof LHCChatOptions.attr_prefill[index] != 'undefined' && typeof LHCChatOptions.attr_prefill[index].name != 'undefined') {argumentsQuery.push('prefill['+LHCChatOptions.attr_prefill[index].name+']='+encodeURIComponent(LHCChatOptions.attr_prefill[index].value));if (typeof LHCChatOptions.attr_prefill[index].hidden != 'undefined') {argumentsQuery.push('hattr[]='+encodeURIComponent(LHCChatOptions.attr_prefill[index].name));};};};};};if (typeof LHCChatOptions.attr_prefill_admin != 'undefined') {if (LHCChatOptions.attr_prefill_admin.length > 0){for (var index in LHCChatOptions.attr_prefill_admin) {if (typeof LHCChatOptions.attr_prefill_admin[index] != 'undefined') {argumentsQuery.push('value_items_admin['+LHCChatOptions.attr_prefill_admin[index].index+']='+encodeURIComponent(LHCChatOptions.attr_prefill_admin[index].value));if (typeof LHCChatOptions.attr_prefill_admin[index].hidden != 'undefined') {argumentsQuery.push('via_hidden['+LHCChatOptions.attr_prefill_admin[index].index+']='+encodeURIComponent(LHCChatOptions.attr_prefill_admin[index].hidden == true ? 't' : 'f'));};if (typeof LHCChatOptions.attr_prefill_admin[index].encrypted != 'undefined') {argumentsQuery.push('via_encrypted['+LHCChatOptions.attr_prefill_admin[index].index+']='+encodeURIComponent(LHCChatOptions.attr_prefill_admin[index].encrypted == true ? 't' : 'f'));};};};};};if (argumentsQuery.length > 0) {paramsReturn = '&'+argumentsQuery.join('&');};};if (this.extensionArgs != '') {paramsReturn = paramsReturn + this.extensionArgs;}var js_args = [];var currentVar = null;for (var index in this.js_variables) {try {currentVar = eval(this.js_variables[index].var);if (typeof currentVar !== 'undefined' && currentVar !== null && currentVar !== '') {js_args.push('jsvar['+this.js_variables[index].id+']='+encodeURIComponent(currentVar));}} catch(err) {}}if (js_args.length > 0) {paramsReturn = paramsReturn + '&' + js_args.join('&');}if (this.prefillMessage != '') {paramsReturn = paramsReturn + '&' + 'prefillMsg=' + encodeURIComponent(this.prefillMessage);}if (this.tag != '') {paramsReturn = paramsReturn + this.tag;}paramsReturn = paramsReturn + '&' + 'tzuser=' + encodeURIComponent(this.getTimeZone());return paramsReturn;},setDefaultMessage : function(msg) {this.prefillMessage = msg;},parseOptionsOnline : function(){argumentsQuery = new Array();if (typeof LHCChatOptions != 'undefined') {if (typeof LHCChatOptions.attr_online != 'undefined') {if (LHCChatOptions.attr_online.length > 0){for (var index in LHCChatOptions.attr_online) {if (typeof LHCChatOptions.attr_online[index] != 'undefined' && typeof LHCChatOptions.attr_online[index].name != 'undefined') {argumentsQuery.push('onattr['+LHCChatOptions.attr_online[index].name+']='+encodeURIComponent(LHCChatOptions.attr_online[index].value));};};};};};if (argumentsQuery.length > 0) {return '&'+argumentsQuery.join('&');};return '';},parseStorageArguments : function() {if (sessionStorage && sessionStorage.getItem('lhc_ref') && sessionStorage.getItem('lhc_ref') != '') {return '&r='+encodeURIComponent(sessionStorage.getItem('lhc_ref'));}return '';},addEvent : (function () {if (document.addEventListener) {return function (el, type, fn) {if (el && el.nodeName || el === window) {el.addEventListener(type, fn, false);} else if (el && el.length) {for (var i = 0; i < el.length; i++) {lh_inst.addEvent(el[i], type, fn);}}};} else {return function (el, type, fn) {if (el && el.nodeName || el === window) {el.attachEvent('on' + type, function () { return fn.call(el, window.event); });} else if (el && el.length) {for (var i = 0; i < el.length; i++) {lh_inst.addEvent(el[i], type, fn);}}};}})(),removeEvent : function(target, type, callback) {if (target.removeEventListener){target.removeEventListener(type,callback);} else {target.detachEvent('on'+type,callback);}},iframePreloaded : false,iframeCustomUrl : false,preloadWidget : function() {},showStartWindow : function(url_to_open,delayShow) {if (this.isOnline == false && typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.offline_redirect != 'undefined'){window.open(LHCChatOptions.opt.offline_redirect,"_blank");return;};this.lhc_need_help_hide();// Do not check for new messages
this.stopCheckNewMessage();var locationCurrent = encodeURIComponent(window.location.href.substring(window.location.protocol.length));if (this.isProactivePending == 1 && this.invitationUrl != ''){url_to_open = this.invitationUrl;this.invitationUrl = '';var elm = document.getElementById('lhc_status_container');if (elm !== null) {this.removeClass(document.getElementById('lhc_status_container'),'lhc_invitation-mode');}};if ( url_to_open != undefined ) {this.chatOpenedCallback('internal_invitation');this.initial_iframe_url = url_to_open+this.getAppendCookieArguments()+'?URLReferer='+locationCurrent+this.parseOptions()+this.parseStorageArguments()+'&dt='+encodeURIComponent(document.title);this.iframeCustomUrl = true;} else {this.chatOpenedCallback(this.isOnline == false ? 'internal_offline' : 'internal');this.initial_iframe_url = "//msuschatsupport.com/index.php"+this.lang+"/chat/chatwidget/(leaveamessage)/true/(fullheight)/false/(theme)/1"+this.getAppendCookieArguments()+'?URLReferer='+locationCurrent+this.parseOptions()+this.parseStorageArguments()+'&dt='+encodeURIComponent(document.title);
};this.addClass(document.body,'lhc-opened');lh_inst.surveyShown = false;lh_inst.timeoutStatusWidgetOpen = 1;var widgetWidth = (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.widget_width != 'undefined') ? parseInt(LHCChatOptions.opt.widget_width) : 300;var widgetHeight = (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.opt != 'undefined' && typeof LHCChatOptions.opt.widget_height != 'undefined') ? parseInt(LHCChatOptions.opt.widget_height) : 340;var widgetHeightUnit = 'px';if(this.is_full_height === true) {widgetHeight = 100;widgetHeightUnit = '%';}var needLoading = true;var iframe_html_source = this.iframe_html;this.iframe_html = ''+'<div id="lhc_iframe_container" ><iframe id="lhc_iframe" allow="microphone" allowTransparency="true" scrolling="no" class="lhc-loading" frameborder="0" ' +( this.initial_iframe_url != '' ? ' src="'    + this.initial_iframe_url + '"' : '' ) +' width="'+widgetWidth+'"' +' height="'+widgetHeight+'"' +' style="width: '+widgetWidth+'px;height: '+widgetHeight+widgetHeightUnit+';" title="Live Help"></iframe></div>';this.iframe_html = '<div id="lhc_container" >' +'<a class="status-icon ' +(this.isOnline == true ? 'online-status-icon' : 'offline-status-icon') +'" id="lhc_status-icon-restore" href="#" ><i title="New messages" id="lhc-msg-number"></i></a><div id="lhc_header"><ul class="lhc-cf"><li><a href="#">&#9776;</a><ul class="lhc-cf"><li><a href="#" title="Open in a new window" id="lhc_remote_window"><img src="//msuschatsupport.com/design/defaulttheme/images/icons/application_double.png" alt="Open in a new window" title="Open in a new window" /></a></li></ul></li></ul><a href="#" id="lhc_min" title="Minimize/Restore"></a></div>' +
this.iframe_html + '</div>';raw_css = "#lhc_container.lhc-min {overflow:hidden}#lhc_container .status-icon{display:none;}#lhc_container.lhc-min .status-icon{display:inline-block;border:2px solid #0c8fc4;;-webkit-border-radius:47px;-moz-border-radius47px;border-radius:47px;-webkit-box-shadow: 0px 0px 17px rgba(50, 50, 50, 0.5);-moz-box-shadow:0px 0px 17px rgba(50, 50, 50, 0.5);box-shadow: 0px 0px 17px rgba(50, 50, 50, 0.5);text-decoration:none;height:41px;width:41px;font-weight:bold;color:#ffffff;display:block;padding:10px;background:#0c8fc4 url('//msuschatsupport.com/design/defaulttheme/images/getstatus/online.svg') no-repeat center center}#lhc_container.lhc-min .status-icon.offline-status-icon{background:#888888 url('//msuschatsupport.com/design/defaulttheme/images/getstatus/offline.svg') no-repeat center center}ul.lhc-cf {font-size: 0;list-style: none;float:left!important;}ul.lhc-cf li {display: inline-block;position: relative;min-width: 100%;}ul.lhc-cf a {display: block;text-decoration: none;}ul.lhc-cf li ul a{background-color:#0c8fc4;padding:7px!important;}ul.lhc-cf > li > a{font-size:21px!important;color:#a6a6a6;text-align:center!important;}ul.lhc-cf li ul {left: -5px;position: absolute;top: 22px;visibility: hidden;z-index: 1;}ul.lhc-cf li:hover ul {top: 22px;visibility: visible;}ul.lhc-cf li ul a:hover {background: #0c8fc4;} #lhc_remote_window{padding-left:5px;}.lhc-min #lhc_header{min-width:107px} .lhc-min #lhc_iframe_container{display:none} .lhc-no-transition{ -webkit-transition: none !important; -moz-transition: none !important;-o-transition: none !important;-ms-transition: none !important;transition: none !important;}\n#lhc_container.lhc-delayed{visibility:hidden;position: fixed;left: -90000px!important;right: auto!important;}#lhc_container.lhc-delayed .lhc-cf{display:none}\n#lhc_container * {line-height:100%;direction:ltr;text-align:left;;font-family:arial;font-size:12px;line-height:100%;box-sizing: content-box;-moz-box-sizing:content-box;padding:0;margin:0;}\n#lhc_container img {border:0;max-width: none}\n#lhc_header{position:relative;z-index:2147483640;height:17px;text-align:right;clear:both;background-color:#0c8fc4;padding:5px;}#lhc-msg-number{float: left;color: #ffffff;font-size: 12px;font-weight: normal;line-height: 23px;position: absolute;background-color: red;border-radius: 37px;display: inline-block;padding-left: 8px;padding-right: 8px;margin-top: -5px;margin-left: -4px;} \n#lhc_min{float:right;padding:2px;}.lhc-min #lhc_min:before{content:url(//msuschatsupport.com/design/defaulttheme/images/icons/restore.png)}#lhc_min:before{content: url('//msuschatsupport.com/design/defaulttheme/images/icons/min.png'); position: relative;left:0;top;0} #lhc_min{width:14px;height:14px;}\n#lhc_min:hover{opacity:0.4;}\n#lhc_container {background-color:#FFF;-moz-user-select:none; -khtml-user-drag:element;cursor: move;cursor: -moz-grab;cursor: -webkit-grab;max-height: 100%;	overflow: auto;\nz-index:2147483640;\n position: fixed;bottom:0;right:0;;-webkit-box-shadow: -1px -1px 5px rgba(50, 50, 50, 0.17);-moz-box-shadow: -1px -1px 5px rgba(50, 50, 50, 0.17);box-shadow: -1px -1px 5px rgba(50, 50, 50, 0.17);-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px; }\n#lhc_container iframe{position:relative;display:block;}\n#lhc_container #lhc_iframe_container{border:1px solid #0c8fc4;border-top: 0;border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;overflow: hidden;}\n#lhc_container iframe.lhc-loading{\nbackground: #FFF url(//msuschatsupport.com/design/defaulttheme/images/general/loading.gif) no-repeat center center; }\n@media only screen and (max-device-width : 992px) {ul.lhc-cf li ul a{padding:8px 14px!important} ul.lhc-cf li:hover ul, ul.lhc-cf li ul {top: 30px;} .lhc-opened{position: fixed; overflow: hidden; right: 0px; left: 0px; top: 0px; bottom: 0px;} #lhc_header{height:30px;} #lhc_header a{padding:7px;}#lhc_container{position:fixed;left:0!important;right:0!important;bottom:0!important;top:0!important;border:0;border-radius:0}#lhc_container #lhc_iframe_container{border:0;height: calc(100% - 40px)}#lhc_container iframe{width:100% !important;height: 100%!important}} .lhc-min #lhc_header{display:none;}.lhc-min #lhc_header a{padding:2px;} #lhc_container.lhc-min .status-icon{border:2px solid #0c8fc4;;-webkit-border-radius:47px;-moz-border-radius47px;border-radius:47px;-webkit-box-shadow: 0px 0px 17px rgba(50, 50, 50, 0.5);-moz-box-shadow:0px 0px 17px rgba(50, 50, 50, 0.5);box-shadow: 0px 0px 17px rgba(50, 50, 50, 0.5);text-decoration:none;height:41px;width:41px;}#lhc_container.lhc-min{bottom:12px!important;right:15px!important;left:auto !important;top:auto !important;background:none;box-shadow:none;overflow:visible}";
if (iframe_html_source != this.iframe_html) {this.removeById('lhc_container');} else {needLoading = false;}if (!this.cssWasAdded) {this.cssWasAdded = true;this.addCss(raw_css+'.msg-body {    font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;    font-size: 15px;}h2{text-align: center;    }#close-need-help-btn.btn-close {    color: #FFF!important;    background-color: #FFF;}');};if (needLoading === true) {this.iframePreloaded = false;var fragment = this.appendHTML(this.iframe_html);var parentElement = document.body;if (typeof LHCChatOptions != 'undefined' &&typeof LHCChatOptions.opt != 'undefined' &&typeof LHCChatOptions.opt.widget_parent != 'undefined') {if(document.getElementById(LHCChatOptions.opt.widget_parent) != null) {parentElement = document.getElementById(LHCChatOptions.opt.widget_parent);}}parentElement.insertBefore(fragment, parentElement.childNodes[0]);this.addClass(document.getElementById('lhc_container'),'lhc-delayed');} else {lh_inst.removeClass(document.getElementById('lhc_container'),'lhc-delayed');}var lhc_obj = this;var closeHandler = document.getElementById('lhc_close');if (closeHandler !== null){closeHandler.onclick = function() { lhc_obj.hide(); lh_inst.chatClosedCallback('user'); return false; };};document.getElementById('lhc_min').onclick = function() { lhc_obj.min(); return false; };document.getElementById('lhc_status-icon-restore').onclick = function() { lhc_obj.min(); return false; };document.getElementById('lhc_remote_window').onclick = function() { lhc_obj.openRemoteWindow(); return false; };var domContainer = document.getElementById('lhc_container');var domIframe = 'lhc_iframe';var domContainerId = 'lhc_container';domContainer.onmousedown = function(e) {domContainer.setAttribute('draggable','true');};domContainer.onmouseup = function(e) {domContainer.setAttribute('draggable','false');};if (this.cookieData.pos) {var posContainer = this.cookieData.pos.split(',');domContainer.style.right = posContainer[0];domContainer.style.bottom = posContainer[1];if (typeof posContainer[2] !== 'undefined' && posContainer[2] > 0){this.pendingHeight = posContainer[2];}};this.addEvent(domContainer, 'dragstart', function (event) {lhc_obj.removeById('lhc_overlapse');var style = window.getComputedStyle(event.target, null);lhc_obj.offset_data = (parseInt(style.getPropertyValue("right"),10) + (event.clientX)) + ',' + (parseInt(style.getPropertyValue("bottom"),10)+event.clientY);try {event.dataTransfer.setData("text/plain",lhc_obj.offset_data);} catch (e){};lhc_obj.is_dragging = true;domContainer.style.zIndex=2147483647;theKid = document.createElement("div");theKid.innerHTML = '';theKid.setAttribute('id','lhc_overlapse');theKid.style.cssText = "position:absolute;height:" + domContainer.style.height + ";width:100%;";domContainer.insertBefore(theKid, domContainer.firstChild);lhc_obj.removeClass(document.getElementById('lhc_iframe'),'lhc-loading');});this.addEvent(domContainer, 'dragenter', function (e) {lhc_obj.is_dragging = true;return false;});if (!this.dragAttatched) {this.dragAttatched = true;this.addEvent(document.body, 'drop', function (event) {if (lhc_obj.is_dragging == true) {domContainer = document.getElementById(domContainerId);domContainer.style.zIndex=2147483646;lhc_obj.is_dragging = false;lhc_obj.removeById('lhc_overlapse');var offset = lhc_obj.offset_data.split(',');dm = domContainer;var w = window,d = document,e = d.documentElement,g = d.getElementsByTagName('body')[0],x = w.innerWidth || e.clientWidth || g.clientWidth,y = w.innerHeight|| e.clientHeight|| g.clientHeight;var cookiePos = '';var rightpos = (parseInt(offset[0],10)-event.clientX);rightpos = rightpos < 0 ? 0 : rightpos;if (x < (rightpos + parseInt(dm.offsetWidth)+20)){rightpos = x - parseInt(dm.offsetWidth)-10;};dm.style.right = rightpos + 'px';cookiePos += dm.style.right;var botpos = (-event.clientY + parseInt(offset[1],10));botpos = botpos < 0 ? 0 :  botpos;if (y < (botpos + parseInt(dm.offsetHeight))){botpos = y - parseInt(dm.offsetHeight);};dm.style.bottom = botpos + 'px';cookiePos += ","+dm.style.bottom;lhc_obj.addCookieAttribute('pos',cookiePos);event.preventDefault();domContainer.draggable = false;return false;};});this.addEvent(window, 'dragover', function (event) {if (lhc_obj.is_dragging == true) {domContainer = document.getElementById(domContainerId);domContainer.setAttribute('draggable','false');var offset = lhc_obj.offset_data.split(',');var dm = domContainer;window.dmcontainer = dm;var w = window,d = document,e = d.documentElement,g = d.getElementsByTagName('body')[0],x = w.innerWidth || e.clientWidth || g.clientWidth,y = w.innerHeight|| e.clientHeight|| g.clientHeight;var rightpos = (parseInt(offset[0],10)-event.clientX);rightpos = rightpos < 0 ? 0 : rightpos;if (x < (rightpos + parseInt(dm.offsetWidth)+20)){rightpos = x - parseInt(dm.offsetWidth)-10;};if (dm.style.right != rightpos + 'px') {dm.style.right = rightpos + 'px';};var botpos = (-event.clientY + parseInt(offset[1],10));botpos = botpos < 0 ? 0 :  botpos;if (y < (botpos + parseInt(dm.offsetHeight))){botpos = y - parseInt(dm.offsetHeight);};if (dm.style.bottom != botpos + 'px') {dm.style.bottom = botpos + 'px';};event.preventDefault();return false;}});};if (this.cookieData.m) {if (this.cookieData.hash) {this.min(true);}};if (typeof delayShow === 'undefined') {this.toggleStatusWidget(true);}// If proactive invitation is shown. Check for status changes and hide popup if operator goes offline
this.checkStatusChat();},toggleStatusWidget : function(hide){if(document.getElementById('lhc_status_container') != null) {if (hide == true){this.addClass(document.getElementById('lhc_status_container'),'hide-status');} else {this.removeClass(document.getElementById('lhc_status_container'),'hide-status');}}},lh_openchatWindow : function() {this.showStartWindow();return false;},chatOpenedCallback : function(type){if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.callback != 'undefined' && typeof LHCChatOptions.callback.start_chat_cb != 'undefined') {LHCChatOptions.callback.start_chat_cb(type+this.substatus);this.substatus = '';}},chatClosedCallback : function(type){if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.callback != 'undefined' && typeof LHCChatOptions.callback.close_chat_cb != 'undefined') {LHCChatOptions.callback.close_chat_cb(type+this.substatus);this.substatus = '';}},genericCallback : function(name){if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.callback != 'undefined' && typeof LHCChatOptions.callback[name] != 'undefined') {LHCChatOptions.callback[name](this);}},showStatusWidget : function() {this.removeById('lhc_status_container');var statusTEXT = '<i class="lhc-invitation-status" onclick="return lh_inst.lh_openchatWindow()">!</i><a id="'+(this.isOnline == true ? 'online-icon' : 'offline-icon')+'" class="status-icon" href="#" onclick="return lh_inst.lh_openchatWindow()" ></a>';if (!this.cssStatusWasAdded) {this.cssStatusWasAdded = true;var raw_css = "#lhc_status_container.hide-status,#lhc_status_container.hide-status-delay{display:none!important;}#lhc_status_container * {direction:ltr;text-align:left;;font-family:arial;font-size:12px;box-sizing: content-box;zoom:1;margin:0;padding:0}#lhc_status_container .lhc-invitation-status{display:none;position:absolute;}#lhc_status_container.lhc_invitation-mode .lhc-invitation-status{width: 16px;height:16px;padding: 2px;border-radius: 10px;text-align: center;font-weight: bold;color: #FFF;background-color: red;display: inline-block;}\n#lhc_status_container .status-icon{border:2px solid #0c8fc4;;-webkit-border-radius:47px;-moz-border-radius47px;border-radius:47px;-webkit-box-shadow: 0px 0px 17px rgba(50, 50, 50, 0.5);-moz-box-shadow:0px 0px 17px rgba(50, 50, 50, 0.5);box-shadow: 0px 0px 17px rgba(50, 50, 50, 0.5);text-decoration:none;height:41px;width:41px;font-weight:bold;color:#ffffff;display:block;padding:10px;background:#0c8fc4 url('//msuschatsupport.com/design/defaulttheme/images/getstatus/online.svg') no-repeat center center}\n#lhc_status_container:hover{}\n#lhc_status_container #offline-icon{background:#888888 url('//msuschatsupport.com/design/defaulttheme/images/getstatus/offline.svg') no-repeat center}\n#lhc_status_container{box-sizing: content-box;padding:5px 0px 0px 5px;font-family:arial;font-size:12px;transition: 1s;position:fixed;bottom:15px;right:15px;;z-index:2147483647;}@media only screen and (max-width : 640px) {#lhc_need_help_container{display:none;}#lhc_status_container .status-icon{background-position:center center;}#lhc_status_container .lhc-text-status{display:none} #lhc_status_container{}}\n";
this.addCss(raw_css+'');};var subStatus = '';var statusInitial = '';statusInitial = ' class="hide-status-delay" ';setTimeout( function() {var dm = document.getElementById('lhc_status_container');that.removeClass(dm,'hide-status-delay');},10000);var htmlStatus = '<div id="lhc_status_container"' + statusInitial + '>'+subStatus+statusTEXT+'</div>';var fragment = this.appendHTML(htmlStatus);document.body.insertBefore(fragment, document.body.childNodes[0]);var that = this;if (subStatus != '') {document.getElementById('lhc_need_help_image').onclick = function() { that.lhc_need_help_click(); return false; };document.getElementById('lhc_need_help_main_title').onclick = function() { that.lhc_need_help_click(); return false; };document.getElementById('lhc_need_help_sub_title').onclick = function() { that.lhc_need_help_click(); return false; };document.getElementById('lhc_need_help_close').onclick = function() { that.lhc_need_help_hide(); return false; };}if (typeof LHCChatOptions != 'undefined' && typeof LHCChatOptions.callback != 'undefined' && typeof LHCChatOptions.callback.show_widget_cb != 'undefined') {LHCChatOptions.callback.show_widget_cb(this);};},timeoutInstance : null,stopCheckNewMessage : function() {clearTimeout(this.timeoutInstance);},tag : '',addTag : function(params) {if (typeof params === 'string') {var params = {tag : params};}if (typeof params['child_mode'] !== 'undefined' && params['child_mode'] == true && typeof(parent) !== 'undefined') {if (typeof window.parent.lh_inst !== 'undefined') {window.parent.lh_inst.addTag({'tag':params['tag']});} else {parent.postMessage('lhc_add_tag:'+params['tag'], '*');}} else {this.tag = this.tag != '' ? this.tag + ',' + params['tag'] : '&tag='+params['tag'];if (this.timeoutStatusWidgetOpen == 0) {this.startNewMessageCheckSingle();}}},updateAttribute : function(attributes) {var xhr = new XMLHttpRequest();xhr.open( "POST", '//msuschatsupport.com/index.php'+this.lang+'/chat/updateattribute'+this.getAppendCookieArguments(), true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send( "data=" + encodeURIComponent( this.JSON.stringify(attributes) ) );},startNewMessageCheck : function() {},getTzOffset : function(){Date.prototype.stdTimezoneOffset = function() {var jan = new Date(this.getFullYear(), 0, 1);var jul = new Date(this.getFullYear(), 6, 1);return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());};Date.prototype.dst = function() {return this.getTimezoneOffset() < this.stdTimezoneOffset();};var today = new Date();var timeZoneOffset = 0;if (today.dst()) {timeZoneOffset = today.getTimezoneOffset();} else {timeZoneOffset = today.getTimezoneOffset()-60;};return (timeZoneOffset/60)*-1;},startNewMessageCheckSingle : function() {if (!lh_inst.cookieData.hash) {var vid = this.cookieDataPers.vid;lh_inst.removeById('lhc_operator_message');var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');var locationCurrent = encodeURIComponent(window.location.href.substring(window.location.protocol.length));var tzOffset = this.getTzOffset();var dynamic = this.dynamicAssigned.length > 0 ? '/(dyn)/' +  this.dynamicAssigned.join('/'): '';s.setAttribute('id','lhc_operator_message');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/index.php'+this.lang+'/chat/chatcheckoperatormessage/(theme)/1/(fullheight)/false/(tz)/' + tzOffset + this.survey_id + '/(count_page)/1/(vid)/'+vid+'/(uactiv)/'+lh_inst.userActive+'/(wopen)/'+lh_inst.timeoutStatusWidgetOpen+dynamic+'?l='+locationCurrent+this.tag+this.parseStorageArguments()+this.parseOptionsOnline()+this.parseOptions()+'&dt='+encodeURIComponent(document.title)+'&ts='+Date.now());
th.appendChild(s);}},logPageView : function() {var vid = this.cookieDataPers.vid;var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');var locationCurrent = encodeURIComponent(window.location.href.substring(window.location.protocol.length));var tzOffset = this.getTzOffset();s.setAttribute('id','lhc_log_pageview');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/index.php'+this.lang+'/chat/logpageview/(tz)/'+tzOffset+'/(vid)/' + vid + this.survey_id + '/(uactiv)/'+lh_inst.userActive+'/(wopen)/'+lh_inst.timeoutStatusWidgetOpen+'?l='+locationCurrent+this.parseStorageArguments()+this.parseOptionsOnline()+'&dt='+encodeURIComponent(document.title)+'&ts='+Date.now());
th.appendChild(s);},updateJSVars : function(vars){var xhr = new XMLHttpRequest();xhr.open( "POST", '//msuschatsupport.com/index.php'+this.lang+'/chat/updatejsvars'+this.getAppendCookieArguments(), true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send( "data=" + encodeURIComponent( this.JSON.stringify(vars) ) );},storeEvents : function() {if (typeof LHCChatOptions.events != 'undefined') {if (LHCChatOptions.events.length > 0) {var xhr = new XMLHttpRequest();xhr.open( "POST", '//msuschatsupport.com/index.php'+this.lang+'/chat/logevent'+this.getAppendCookieArguments(), true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send( "data=" + encodeURIComponent( this.JSON.stringify(LHCChatOptions.events) ) );LHCChatOptions.events = new Array();}}},logEvent : function(events) {LHCChatOptions.events = events;this.storeEvents();},removeCookieAttr : function(attr){if (this.cookieData[attr]) {delete this.cookieData[attr];this.storeSesCookie();}},addCookieAttribute : function(attr, value){if (!this.cookieData[attr] || this.cookieData[attr] != value){this.cookieData[attr] = value;this.storeSesCookie();}},storePersistenCookie : function() {try {var cookieParams = {expires:16070400};if ((this.isWildcardCookie() === null && 0 == 0) || (this.isWildcardCookie() === true)) {cookieParams.domain = this.getCookieDomain();}lhc_Cookies('lhc_per',this.JSON.stringify(this.cookieDataPers),cookieParams);} catch(err) { };},checkCookieTime : function() {if (!this.cookieDataPers['ex'] || this.cookieDataPers['ex'] < Math.round(Date.now()/100000000)) {this.cookieDataPers['ex'] = Math.round(Date.now()/100000000)+10;this.storePersistenCookie();var xhr = new XMLHttpRequest();xhr.open( "GET", '//msuschatsupport.com/index.php'+this.lang+'/chat/extendcookie/'+this.cookieDataPers.vid, true);
xhr.send();}},setVid : function(vid) {if ((this.cookieDataPers.vid && vid != this.cookieDataPers.vid) || !this.cookieDataPers.vid) {var old = this.cookieDataPers.vid;this.addCookieAttributePersistent('vid',vid);lh_inst.stopCheckNewMessage();lh_inst.logPageView();lh_inst.startNewMessageCheckSingle();if (old && old != this.cookieDataPers.vid) {var inst = this;setTimeout(function(){var xhr = new XMLHttpRequest();xhr.open( "POST", '//msuschatsupport.com/index.php'+inst.lang+'/chat/setnewvid', true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send( "data=" + encodeURIComponent( inst.JSON.stringify({'vid':old,'new':vid}) ) );},1000);}}},storeSesCookie : function(){var cookieParams = {};if ((this.isWildcardCookie() === null && 0 == 0) || (this.isWildcardCookie() === true)) {cookieParams.domain = this.getCookieDomain();}lhc_Cookies('lhc_ses',this.JSON.stringify(this.cookieData),cookieParams);},initSessionStorage : function(){var cookieData = lhc_Cookies('lhc_ses');if ( typeof cookieData === "string" && cookieData ) {this.cookieData = this.JSON.parse(cookieData);}},storeReferrer : function(ref){if (sessionStorage && !sessionStorage.getItem('lhc_ref')) {try {sessionStorage.setItem('lhc_ref',ref);} catch(err) {};}},makeScreenshot : function() {var inst = this;if (typeof html2canvas == "undefined") {var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/design/defaulttheme/js/html2canvas.min.js');
th.appendChild(s);s.onreadystatechange = s.onload = function(){inst.makeScreenshot();};} else {try {html2canvas(document.body, {onrendered: function(canvas) {var xhr = new XMLHttpRequest();xhr.open( "POST", '//msuschatsupport.com/index.php'+lh_inst.lang+'/file/storescreenshot'+inst.getAppendCookieArguments(), true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send( "data=" + encodeURIComponent( canvas.toDataURL() ) );}});} catch(err) {}};},finishScreenSharing : function(){this.removeById('lhc_status_mirror');this.removeCookieAttr('shr');this.removeCookieAttr('shrm');this.isSharing = false;var vid = this.cookieDataPers.vid;var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');var locationCurrent = encodeURIComponent(window.location.href.substring(window.location.protocol.length));var tzOffset = this.getTzOffset();s.setAttribute('id','lhc_finish_shr');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/index.php'+lh_inst.lang+'/cobrowse/finishsession/(sharemode)/'+lh_inst.sharemode+lh_inst.getAppendCookieArguments());
th.appendChild(s);this.cobrowser = null;},cobrowse : null,startCoBrowse : function(chatHash,sharemode){var inst = this;if (this.isSharing == false && (this.cookieData.shr || 0 == 1 || confirm("Allow operator to see your page content?"))){this.sharehash = chatHash || this.cookieData.hash || this.cookieData.shr;this.sharemode = sharemode || this.cookieData.shrm || 'chat';this.addCookieAttribute('shr',this.sharehash);this.addCookieAttribute('shrm',this.sharemode);if (typeof TreeMirror == "undefined") {var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/cache/compiledtemplates/d5509c4a2226704725ca00c47c70cc8c.js');
th.appendChild(s);s.onreadystatechange = s.onload = function(){inst.startCoBrowse(inst.sharehash,this.sharemode);};} else {try {this.isSharing = true;this.addCookieAttribute('shr',this.sharehash);this.addCookieAttribute('shrm',this.sharemode);if(typeof formsEnabled == "undefined") var formsEnabled = false;this.cobrowser = new LHCCoBrowser({'formsenabled':formsEnabled,'chat_hash':this.sharehash,'nodejssettings':{'nodejssocket':"https:\/\/cdn.jsdelivr.net\/npm\/socket.io-client@2\/dist\/socket.io.js",'nodejshost':"msuschatsupport.com",'path':'','secure':false},'nodejsenabled':0,'trans':{'operator_watching':"Screen shared, click to finish"},'url':'//msuschatsupport.com/index.php'+lh_inst.lang+'/cobrowse/storenodemap/(sharemode)/'+inst.sharemode+inst.getAppendCookieArguments()+'/?url='+encodeURIComponent(location.href.match(/^(.*\/)[^\/]*$/)[1])});
this.cobrowser.startMirroring();} catch(err) {console.log(err);}};}},lhc_need_help_hide :function() {this.removeById('lhc_need_help_container');this.addCookieAttributePersistent('lhc_hnh','1722549025');return false;},getPersistentAttribute : function(attr) {if (this.cookieDataPers[attr]){return this.cookieDataPers[attr];}return null;},addCookieAttributePersistent : function(attr, value){if (!this.cookieDataPers[attr] || this.cookieDataPers[attr] != value){this.cookieDataPers[attr] = value;this.storePersistenCookie();}},lhc_need_help_click : function() {this.lhc_need_help_hide();this.lh_openchatWindow();},initLanguage : function() {var langUser = this.getPersistentAttribute('lng');this.lang = (langUser != null && langUser != '' && langUser != undefined && this.langDefault != langUser) ? langUser : this.lang;},resetTimeoutActivity : function() {var wasInactive = this.userActive == 0;this.userActive = 1;if (wasInactive == true) {this.syncUserStatus(1);}clearTimeout(this.timeoutActivity);var _that = this;this.timeoutActivity = setTimeout(function(){_that.userActive = 0;_that.syncUserStatus(1);}, 300*1000);},timeoutActivity : null,userActive : 1,timeoutStatuscheck : null,timeoutStatusWidgetOpen : 0,syncUserStatus : function(sender) {var hashAppend = this.cookieData.hash ? '/(hash)/'+this.cookieData.hash : '';var hashResume = this.cookieData.hash_resume ? '/(hash_resume)/'+this.cookieData.hash_resume : '';this.removeById('lhc_check_status');var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');s.setAttribute('id','lhc_check_status');s.setAttribute('type','text/javascript');s.setAttribute('src','//msuschatsupport.com/index.php'+this.lang+'/chat/chatcheckstatus/(status)/' + this.isOnline + this.survey_id + (this.cookieDataPers.vid ? '/(vid)/'+this.cookieDataPers.vid : '')+ hashAppend + hashResume + '/(uactiv)/'+this.userActive+'/(wopen)/'+this.timeoutStatusWidgetOpen + '/(uaction)/'+sender+'/(isproactive)/'+this.isProactivePending+'/?ts='+Date.now());
th.appendChild(s);},checkStatusChat : function() {if (false || this.isProactivePending === 1) {clearTimeout(this.timeoutStatuscheck);var _that = this;this.timeoutStatuscheck = setTimeout(function() {_that.syncUserStatus(0);_that.checkStatusChat();},10000);}},refreshCustomFields : function() {var xhr = new XMLHttpRequest();xhr.open( "POST", '//msuschatsupport.com/index.php'+lh_inst.lang+'/chat/refreshcustomfields'+this.getAppendCookieArguments() , true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send(this.parseOptions());},invitationUrl  :  '',showBasicInvitation : function(url) {lh_inst.isProactivePending = 1;lh_inst.invitationUrl = url;var elm = document.getElementById('lhc_status_container');if (elm !== null){this.addClass(elm,'lhc_invitation-mode');}},attatchActivityListeners : function() {},sendHTMLSnippet : function(messageId, options) {var hashAppend = this.cookieData.hash ? '/(hash)/'+this.cookieData.hash : '';var hashResume = this.cookieData.hash_resume ? '/(hash_resume)/'+this.cookieData.hash_resume : '';var th = document.getElementsByTagName('head')[0];var s = document.createElement('script');s.setAttribute('type','text/javascript');var optionsParts = options.split('_');s.setAttribute('src','//msuschatsupport.com/index.php'+this.lang+'/chat/htmlsnippet/'+messageId+'/'+optionsParts[0]+"/"+optionsParts[1]+'/(status)/' + this.isOnline + this.survey_id + (this.cookieDataPers.vid ? '/(vid)/'+this.cookieDataPers.vid : '')+ hashAppend + hashResume + '/(uactiv)/'+this.userActive+'/(wopen)/'+this.timeoutStatusWidgetOpen + '/(isproactive)/'+this.isProactivePending+'/?ts='+Date.now());
th.appendChild(s);},isNotificationsSubscribed : false,sendNotification : function() {},readNotification : function(chat_id, hash) {},handleMessage : function(e) {if (typeof e.data !== 'string') { return; }var action = e.data.split(':')[0];if (action == 'lhc_newopmsg') {if ( lh_inst.isMinimized == true) {var msgNum = document.getElementById('lhc-msg-number');msgNum.innerHTML = (parseInt(msgNum.msg_number)+1);msgNum.msg_number++;var dm = document.getElementById('lhc_container');lh_inst.addClass(dm, 'lhc-has-unread-message');}} else if (action == 'lhc_sizing_chat') {var height = e.data.split(':')[1];var elementObject = document.getElementById('lhc_iframe');var iframeContainer = document.getElementById('lhc_container');if (typeof lh_inst.pendingHeight !== 'undefined' && typeof lh_inst.heightSet == 'undefined' && lh_inst.pendingHeight > 0) {height = lh_inst.pendingHeight;lh_inst.heightSet = true;}if (elementObject){elementObject.height = height;elementObject.style.height = height+'px';}iframeContainer.className = iframeContainer.className;} else if (action == 'lhc_ch') {var parts = e.data.split(':');if (parts[1] != '' && parts[2] != '') {lh_inst.addCookieAttribute(parts[1],parts[2]);if (parts[1] == 'hash') {lh_inst.chat_started = true;}}} else if (action == 'lhc_open_restore') {lh_inst.lh_openchatWindow();} else if (action == 'lhc_widget_loaded') {if (lh_inst.iframePreloaded == false) {lh_inst.toggleStatusWidget(true);lh_inst.removeClass(document.getElementById('lhc_container'),'lhc-delayed');}} else if (action == 'lhc_continue_chat') {lh_inst.showStartWindow();} else if (action == 'lhc_html_snippet') {lh_inst.sendHTMLSnippet(e.data.split(':')[1],e.data.split(':')[2]);} else if (action == 'lhc_add_tag') {lh_inst.addTag({tag:e.data.split(':')[1]});} else if (action == 'lhc_cfrefresh') {lh_inst.refreshCustomFields();} else if (action == 'lhc_eval') {eval(e.data.split(':')[1]);} else if (action == 'lhc_screenshot') {lh_inst.makeScreenshot();} else if (action == 'lhc_disable_survey') {lh_inst.surveyShown = true;} else if (action == 'lhc_chat_closed_explicit') {lh_inst.explicitClose = true;lh_inst.hide();} else if (action == 'lhc_chat_closed') {var parts = e.data.split(':');parts.shift();if (parts.length > 0){lh_inst.appendArg(parts);}lh_inst.showSurvey();} else if (action == 'lhc_cobrowse') {lh_inst.startCoBrowse(e.data.split(':')[1],'chat');} else if (action == 'lhc_cobrowse_online') {lh_inst.startCoBrowse(e.data.split(':')[1],'onlineuser');} else if (action == 'lhc_chat_redirect') {document.location = e.data.split(':')[1].replace(new RegExp('__SPLIT__','g'),':');} else if (action == 'lhc_cobrowse_cmd') {if (lh_inst.cobrowser !== null){lh_inst.cobrowser.handleMessage(e.data.split(':'));};} else if (action == 'lhc_lang') {var lang = e.data.split(':')[1];if (lang != undefined) {lh_inst.addCookieAttributePersistent('lng',lang);lh_inst.lang = lang;} else {lh_inst.addCookieAttributePersistent('lng','');lh_inst.lang = '';}} else if (action == 'lhc_notification') {var parts = e.data.split(':');lh_inst.sendNotification(parts);} else if (action == 'lh_callback') {var functionName = e.data.split(':')[1];lh_inst.genericCallback(functionName);} else if (action == 'lhc_close') {lh_inst.hide();lh_inst.chatClosedCallback('message')} }};function preloadDataLHC() {if (lh_inst.rendered == true) {return;}lh_inst.rendered = true;var cookieData = lhc_Cookies('lhc_per');if ( typeof cookieData === "string" && cookieData) {lh_inst.cookieDataPers = lh_inst.JSON.parse(cookieData);if (!lh_inst.cookieDataPers.vid) {lh_inst.cookieDataPers = {vid:'fbb233553296bff2700a'};lh_inst.storePersistenCookie();} else {lh_inst.checkCookieTime();}} else {lh_inst.cookieDataPers = {vid:'fbb233553296bff2700a'};lh_inst.storePersistenCookie();};lh_inst.initSessionStorage();lh_inst.initLanguage();lh_inst.storeReferrer("\/\/www.google.com\/");lh_inst.showStatusWidget();if (lh_inst.cookieData.hash) {lh_inst.stopCheckNewMessage();lh_inst.substatus = '_reopen';lh_inst.toggleStatusWidget(true);lh_inst.showStartWindow(undefined,true);lh_inst.logPageView();lh_inst.online_tracked = true;} else {lh_inst.preloadWidget();}if (!lh_inst.cookieData.hash) {lh_inst.startNewMessageCheckSingle();lh_inst.online_tracked = true;}if (lh_inst.online_tracked == false) {lh_inst.logPageView();};if (lh_inst.cookieData.shr) {lh_inst.startCoBrowse(lh_inst.cookieData.shr);};// Try to monitor variable if it's lhc_var
try {if (typeof lhc_var !== 'undefined'){var validator = {set: function(obj, prop, value) {// The default behavior to store the value
obj[prop] = value;clearTimeout(lh_inst.updateVarsTimeout);lh_inst.updateVarsTimeout = setTimeout(function(){lh_inst.updateJSVars(obj);},1000);// Indicate success
return true;}};lhc_var = new Proxy(lhc_var,validator);}} catch(err) {};lh_inst.checkStatusChat();lh_inst.attatchActivityListeners();lh_inst.storeEvents();lh_inst.genericCallback('loaded');}preloadDataLHC();function resetLHCRender(){lh_inst.rendered = false;}if ( window.addEventListener ){// FF
window.addEventListener("message", lh_inst.handleMessage, false);window.addEventListener("pageshow", preloadDataLHC, false);window.addEventListener("beforeunload", resetLHCRender, false);} else if ( window.attachEvent ) {// IE
window.attachEvent("onmessage", lh_inst.handleMessage);window.attachEvent("onpageshow", preloadDataLHC);window.attachEvent("beforeunload", resetLHCRender);} else if ( document.attachEvent ) {// IE
document.attachEvent("onmessage", lh_inst.handleMessage);document.attachEvent("onpageshow", preloadDataLHC);document.attachEvent("beforeunload", resetLHCRender);};if ('serviceWorker' in navigator) {navigator.serviceWorker.addEventListener('message', function(event) {if (typeof event.data.lhc_ch !== 'undefined' && typeof event.data.lhc_cid !== 'undefined') {lh_inst.readNotification(event.data.lhc_cid, event.data.lhc_ch);}});}