//=============================== // Kayako LiveResponse // Copyright (c) 2001-2017 // http://www.kayako.com // License: http://www.kayako.com/license.txt //=============================== var sessionid_a7kxo53e = "zosmavs2iiixwvtrjbr23vvd9qtzkvwy"; var geoip_a7kxo53e = new Array(); var hasnotes_a7kxo53e = "0"; var isnewsession_a7kxo53e = "1"; var repeatvisit_a7kxo53e = "1"; var lastvisittimeline_a7kxo53e = "0"; var lastchattimeline_a7kxo53e = "0"; var isfirsttime_a7kxo53e = 1; var timer_a7kxo53e = 0; var imagefetch_a7kxo53e = 19; var updateurl_a7kxo53e = ""; var screenHeight_a7kxo53e = window.screen.availHeight; var screenWidth_a7kxo53e = window.screen.availWidth; var colorDepth_a7kxo53e = window.screen.colorDepth; var timeNow = new Date(); var referrer = escape(document.referrer); var windows_a7kxo53e, mac_a7kxo53e, linux_a7kxo53e; var ie_a7kxo53e, op_a7kxo53e, moz_a7kxo53e, misc_a7kxo53e, browsercode_a7kxo53e, browsername_a7kxo53e, browserversion_a7kxo53e, operatingsys_a7kxo53e; var dom_a7kxo53e, ienew, ie4_a7kxo53e, ie5_a7kxo53e, ie6_a7kxo53e, ie7_a7kxo53e, ie8_a7kxo53e, moz_rv_a7kxo53e, moz_rv_sub_a7kxo53e, ie5mac, ie5xwin, opnu_a7kxo53e, op4, op5_a7kxo53e, op6_a7kxo53e, op7_a7kxo53e, op8_a7kxo53e, op9_a7kxo53e, op10_a7kxo53e, saf_a7kxo53e, konq_a7kxo53e, chrome_a7kxo53e, ch1_a7kxo53e, ch2_a7kxo53e, ch3_a7kxo53e; var appName_a7kxo53e, appVersion_a7kxo53e, userAgent_a7kxo53e; var appName_a7kxo53e = navigator.appName; var appVersion_a7kxo53e = navigator.appVersion; var userAgent_a7kxo53e = navigator.userAgent; var dombrowser = "default"; var isChatRunning_a7kxo53e = 0; var title = document.title; var proactiveImageUse_a7kxo53e = new Image(); windows_a7kxo53e = (appVersion_a7kxo53e.indexOf('Win') != -1); mac_a7kxo53e = (appVersion_a7kxo53e.indexOf('Mac') != -1); linux_a7kxo53e = (appVersion_a7kxo53e.indexOf('Linux') != -1); if (!document.layers) { dom_a7kxo53e = (document.getElementById ) ? document.getElementById : false; } else { dom_a7kxo53e = false; } var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } winH = myHeight; winW = myWidth; misc_a7kxo53e = (appVersion_a7kxo53e.substring(0,1) 19) { imagefetch_a7kxo53e = 0; doStatusLoop_a7kxo53e(); } setTimeout("elapsedTime_a7kxo53e();", 1000); } } var Base64_a7kxo53e = { _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", encode : function (input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; input = Base64_a7kxo53e._utf8_encode(input); while (i > 2; enc2 = ((chr1 & 3) > 4); enc3 = ((chr2 & 15) > 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); } return output; }, _utf8_encode : function (string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n 127) && (c > 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; } } function doStatusLoop_a7kxo53e() { date1 = new Date(); var _finalPageTitle=Base64_a7kxo53e.encode(title); var _finalWindowLocation = encodeURIComponent(decodeURIComponent(window.location)); var _referrerURL = encodeURIComponent(decodeURIComponent(document.referrer)); updateurl_a7kxo53e = "http://affibank.com/support/visitor/index.php?/LiveChat/VisitorUpdate/UpdateFootprint/_time="+date1.getTime()+"/_randomNumber="+doRand_a7kxo53e()+"/_url="+_finalWindowLocation+"/_isFirstTime="+encodeURIComponent(isfirsttime_a7kxo53e)+"/_sessionID="+encodeURIComponent(sessionid_a7kxo53e)+"/_referrer="+_referrerURL+"/_resolution="+encodeURIComponent(screenWidth_a7kxo53e+"x"+screenHeight_a7kxo53e)+"/_colorDepth="+encodeURIComponent(colorDepth_a7kxo53e)+"/_platform="+encodeURIComponent(navigator.platform)+"/_appVersion="+encodeURIComponent(navigator.appVersion)+"/_appName="+encodeURIComponent(navigator.appName)+"/_browserCode="+encodeURIComponent(browsercode_a7kxo53e)+"/_browserVersion="+encodeURIComponent(browserversion_a7kxo53e)+"/_browserName="+encodeURIComponent(browsername_a7kxo53e)+"/_operatingSys="+encodeURIComponent(operatingsys_a7kxo53e)+"/_pageTitle="+encodeURIComponent(_finalPageTitle)+"/_hasNotes="+encodeURIComponent(hasnotes_a7kxo53e)+"/_repeatVisit="+encodeURIComponent(repeatvisit_a7kxo53e)+"/_lastVisitTimeline="+encodeURIComponent(lastvisittimeline_a7kxo53e)+"/_lastChatTimeline="+encodeURIComponent(lastchattimeline_a7kxo53e)+"/_isNewSession="+encodeURIComponent(isnewsession_a7kxo53e); proactiveImageUse_a7kxo53e = new Image(); proactiveImageUse_a7kxo53e.onload = imageLoaded_a7kxo53e; proactiveImageUse_a7kxo53e.src = updateurl_a7kxo53e; isfirsttime_a7kxo53e = 0; } function startChat_a7kxo53e(proactive) { isChatRunning_a7kxo53e = 1; docWidth = (winW-599)/2; docHeight = (winH-679)/2; _chatWindowURL = 'http://affibank.com/support/visitor/index.php?/LiveChat/Chat/Request/_sessionID=' + sessionid_a7kxo53e + '/_proactive=' + proactive + '/_filterDepartmentID=/_randomNumber=' + doRand_a7kxo53e() + '/_fullName=/_email=/_promptType=chat'; chatwindow = window.open(_chatWindowURL,"customerchat"+doRand_a7kxo53e(), "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=1,width=599,height=679,left="+docWidth+",top="+docHeight); hideProactiveChatData_a7kxo53e(); } function imageLoaded_a7kxo53e() { if (!proactiveImageUse_a7kxo53e) { return; } proactiveAction = proactiveImageUse_a7kxo53e.width; if (proactiveAction == 3) { doProactiveInline_a7kxo53e(); } else if (proactiveAction == 4) { displayProactiveChatData_a7kxo53e(); } } function writeInlineRequestData_a7kxo53e() { docWidth = (winW-600)/2; docHeight = (winH-680)/2; var divData = ''; divData += "

"; var inlineChatElement = document.createElement("div"); inlineChatElement.style.position = 'absolute'; inlineChatElement.style.display = 'none'; inlineChatElement.style.float = 'left'; inlineChatElement.style.top = docHeight+'px'; inlineChatElement.style.left = docWidth+'px'; inlineChatElement.style.zIndex = 500; if (inlineChatElement.style.overflow) { inlineChatElement.style.overflow = 'none'; } inlineChatElement.id = 'inlinechatdiv'; inlineChatElement.innerHTML = divData; var proactiveChatContainer = document.getElementById('proactivechatcontainer' + swiftuniqueid); proactiveChatContainer.appendChild(inlineChatElement); } function writeProactiveRequestData_a7kxo53e() { docWidth = (winW-450)/2; docHeight = (winH-400)/2; var divData = ''; divData += "


Our team is ready to assist you. Click "Chat Now" to be connected to one instantly.
Chat Now

"; var proactiveElement = document.createElement("div"); proactiveElement.style.position = 'absolute'; proactiveElement.style.display = 'none'; proactiveElement.style.float = 'left'; proactiveElement.style.top = docHeight+'px'; proactiveElement.style.left = docWidth+'px'; proactiveElement.style.zIndex = 500; if (proactiveElement.style.overflow) { proactiveElement.style.overflow = 'none'; } proactiveElement.id = 'proactivechatdiv'; proactiveElement.innerHTML = divData; var proactiveChatContainer = document.getElementById('proactivechatcontainer' + swiftuniqueid); proactiveChatContainer.appendChild(proactiveElement); } function displayProactiveChatData_a7kxo53e() { if (proactiveAnimate == true) { return false; } writeObj = browserObject_a7kxo53e("proactivechatdiv"); if (writeObj) { docWidth = (winW-450)/2; docHeight = (winH-400)/2; proactiveY = docHeight; writeObj.top = docWidth; writeObj.left = docHeight; proactiveAnimate = true; } showDisplay_a7kxo53e("proactivechatdiv"); animateProactiveDiv_a7kxo53e(); } function displayInlineChatData_a7kxo53e() { writeObj = browserObject_a7kxo53e("inlinechatdiv"); if (writeObj) { docWidth = (winW-600)/2; docHeight = (winH-680)/2; proactiveY = docHeight; writeObj.top = docHeight; writeObj.left = docWidth; acceptProactive = new Image(); acceptProactive.src = "http://affibank.com/support/visitor/index.php?/LiveChat/VisitorUpdate/AcceptProactive/_randomNumber="+doRand_a7kxo53e()+"/_sessionID="+sessionid_a7kxo53e; inlineChatFrameObj = browserObject_a7kxo53e("inlinechatframe"); _iframeURL = 'http://affibank.com/support/visitor/index.php?/LiveChat/Chat/StartInline/_sessionID=zosmavs2iiixwvtrjbr23vvd9qtzkvwy/_proactive=1/_filterDepartmentID=/_fullName=/_email=/_inline=1/'; if (inlineChatFrameObj && inlineChatFrameObj.src != _iframeURL && writeObj.style.display == 'none') { inlineChatFrameObj.src = _iframeURL; } } showDisplay_a7kxo53e("inlinechatdiv"); } function hideProactiveChatData_a7kxo53e() { hideDisplay_a7kxo53e("proactivechatdiv"); hideDisplay_a7kxo53e("inlinechatdiv"); } function doProactiveInline_a7kxo53e() { displayInlineChatData_a7kxo53e(); } function doProactiveRequest_a7kxo53e() { acceptProactive = new Image(); acceptProactive.src = "http://affibank.com/support/visitor/index.php?/LiveChat/VisitorUpdate/AcceptProactive/_randomNumber="+doRand_a7kxo53e()+"/_sessionID="+sessionid_a7kxo53e; startChat_a7kxo53e("4"); } function closeProactiveRequest_a7kxo53e() { rejectProactive = new Image(); date1 = new Date(); proactiveAnimate = false; rejectProactive.src = "http://affibank.com/support/visitor/index.php?/LiveChat/VisitorUpdate/ResetProactive/_time="+date1.getTime()+"/_randomNumber="+doRand_a7kxo53e()+"/_sessionID="+sessionid_a7kxo53e; hideProactiveChatData_a7kxo53e(); } function closeInlineProactiveRequest_a7kxo53e() { rejectProactive = new Image(); date1 = new Date(); rejectProactive.src = "http://affibank.com/support/visitor/index.php?/LiveChat/VisitorUpdate/ResetProactive/_time="+date1.getTime()+"/_randomNumber="+doRand_a7kxo53e()+"/_sessionID="+sessionid_a7kxo53e; var bodyElement = document.getElementsByTagName('body'); document.getElementById('inlinechatframe').contentWindow.CloseProactiveChat(); // window.frames.inlinechatframe.CloseProactiveChat(); if (bodyElement[0]) { var inlineDivElement = browserObject_a7kxo53e('inlinechatdiv'); if (inlineDivElement) { var _parentNode = inlineDivElement.parentNode; _parentNode.removeChild(inlineDivElement); } } } function switchDisplay_a7kxo53e(objid) { result = browserObject_a7kxo53e(objid); if (!result) { return; } if (result.style.display == "none") { result.style.display = "block"; } else { result.style.display = "none"; } } function hideDisplay_a7kxo53e(objid) { result = browserObject_a7kxo53e(objid); if (!result) { return; } result.style.display = "none"; } function showDisplay_a7kxo53e(objid) { result = browserObject_a7kxo53e(objid); if (!result) { return; } result.style.display = "block"; } function updateProactivePosition_a7kxo53e() { writeObj = browserObject_a7kxo53e("proactivechatdiv"); writeObjInline = browserObject_a7kxo53e("inlinechatdiv"); docHeight = (winH-412)/2; docHeightInline = (winH-680)/2; finalTopValue = docHeight + document.body.scrollTop; if (finalTopValue = (myHeight - proactiveOffsetHeight)){proactiveYStep=0; proactiveY=(myHeight-proactiveOffsetHeight);} finalTopValue = proactiveY+document.body.scrollTop; if (finalTopValue ";document.getElementById("swifttagdatacontainer").appendChild(swifttagdiv);