//=============================== // 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) < 4); op_a7kxo53e = (userAgent_a7kxo53e.indexOf('Opera') != -1); moz_a7kxo53e = (userAgent_a7kxo53e.indexOf('Gecko') != -1); chrome_a7kxo53e=(userAgent_a7kxo53e.indexOf('Chrome') != -1); if (document.all) { ie_a7kxo53e = (document.all && !op_a7kxo53e); } saf_a7kxo53e=(userAgent_a7kxo53e.indexOf('Safari') != -1); konq_a7kxo53e=(userAgent_a7kxo53e.indexOf('Konqueror') != -1); if (op_a7kxo53e) { op_pos = userAgent_a7kxo53e.indexOf('Opera'); opnu_a7kxo53e = userAgent_a7kxo53e.substr((op_pos+6),4); op5_a7kxo53e = (opnu_a7kxo53e.substring(0,1) == 5); op6_a7kxo53e = (opnu_a7kxo53e.substring(0,1) == 6); op7_a7kxo53e = (opnu_a7kxo53e.substring(0,1) == 7); op8_a7kxo53e = (opnu_a7kxo53e.substring(0,1) == 8); op9_a7kxo53e = (opnu_a7kxo53e.substring(0,1) == 9); op10_a7kxo53e = (opnu_a7kxo53e.substring(0,2) == 10); } else if (chrome_a7kxo53e) { chrome_pos = userAgent_a7kxo53e.indexOf('Chrome'); chnu = userAgent_a7kxo53e.substr((chrome_pos+7),4); ch1_a7kxo53e = (chnu.substring(0,1) == 1); ch2_a7kxo53e = (chnu.substring(0,1) == 2); ch3_a7kxo53e = (chnu.substring(0,1) == 3); } else if (moz_a7kxo53e){ rv_pos = userAgent_a7kxo53e.indexOf('rv'); moz_rv_a7kxo53e = userAgent_a7kxo53e.substr((rv_pos+3),3); moz_rv_sub_a7kxo53e = userAgent_a7kxo53e.substr((rv_pos+7),1); if (moz_rv_sub_a7kxo53e == ' ' || isNaN(moz_rv_sub_a7kxo53e)) { moz_rv_sub_a7kxo53e=''; } moz_rv_a7kxo53e = moz_rv_a7kxo53e + moz_rv_sub_a7kxo53e; } else if (ie_a7kxo53e){ ie_pos = userAgent_a7kxo53e.indexOf('MSIE'); ienu = userAgent_a7kxo53e.substr((ie_pos+5),3); ie4_a7kxo53e = (!dom_a7kxo53e); ie5_a7kxo53e = (ienu.substring(0,1) == 5); ie6_a7kxo53e = (ienu.substring(0,1) == 6); ie7_a7kxo53e = (ienu.substring(0,1) == 7); ie8_a7kxo53e = (ienu.substring(0,1) == 8); } if (konq_a7kxo53e) { browsercode_a7kxo53e = "KO"; browserversion_a7kxo53e = appVersion_a7kxo53e; browsername_a7kxo53e = "Konqueror"; } else if (chrome_a7kxo53e) { browsercode_a7kxo53e = "CH"; if (ch1_a7kxo53e) { browserversion_a7kxo53e = "1"; } else if (ch2_a7kxo53e) { browserversion_a7kxo53e = "2"; } else if (ch3_a7kxo53e) { browserversion_a7kxo53e = "3"; } browsername_a7kxo53e = "Google Chrome"; } else if (saf_a7kxo53e) { browsercode_a7kxo53e = "SF"; browserversion_a7kxo53e = appVersion_a7kxo53e; browsername_a7kxo53e = "Safari"; } else if (op_a7kxo53e) { browsercode_a7kxo53e = "OP"; if (op5_a7kxo53e) { browserversion_a7kxo53e = "5"; } else if (op6_a7kxo53e) { browserversion_a7kxo53e = "6"; } else if (op7_a7kxo53e) { browserversion_a7kxo53e = "7"; } else if (op8_a7kxo53e) { browserversion_a7kxo53e = "8"; } else if (op9_a7kxo53e) { browserversion_a7kxo53e = "9"; } else if (op10_a7kxo53e) { browserversion_a7kxo53e = "10"; } else { browserversion_a7kxo53e = appVersion_a7kxo53e; } browsername_a7kxo53e = "Opera"; } else if (moz_a7kxo53e) { browsercode_a7kxo53e = "MO"; browserversion_a7kxo53e = appVersion_a7kxo53e; browsername_a7kxo53e = "Firefox"; } else if (ie_a7kxo53e) { browsercode_a7kxo53e = "IE"; if (ie4_a7kxo53e) { browserversion_a7kxo53e = "4"; } else if (ie5_a7kxo53e) { browserversion_a7kxo53e = "5"; } else if (ie6_a7kxo53e) { browserversion_a7kxo53e = "6"; } else if (ie7_a7kxo53e) { browserversion_a7kxo53e = "7"; } else if (ie8_a7kxo53e) { browserversion_a7kxo53e = "8"; } else { browserversion_a7kxo53e = appVersion_a7kxo53e; } browsername_a7kxo53e = "Internet Explorer"; } if (windows_a7kxo53e) { operatingsys_a7kxo53e = "Windows"; } else if (linux_a7kxo53e) { operatingsys_a7kxo53e = "Linux"; } else if (mac_a7kxo53e) { operatingsys_a7kxo53e = "Mac"; } else { operatingsys_a7kxo53e = "Unkown"; } if (document.getElementById) { dombrowser = "default"; } else if (document.layers) { dombrowser = "NS4"; } else if (document.all) { dombrowser = "IE4"; } var proactiveX = 20; var proactiveXStep = 1; var proactiveDelayTime = 100; var proactiveY = 0; var proactiveOffsetHeight=0; var proactiveYStep = 0; var proactiveAnimate = false; function browserObject_a7kxo53e(objid) { if (dombrowser == "default") { return document.getElementById(objid); } else if (dombrowser == "NS4") { return document.layers[objid]; } else if (dombrowser == "IE4") { return document.all[objid]; } } function doRand_a7kxo53e() { var num; now=new Date(); num=(now.getSeconds()); num=num+1; return num; } function getCookie_a7kxo53e(name) { var crumb = document.cookie; var index = crumb.indexOf(name + "="); if (index == -1) return null; index = crumb.indexOf("=", index) + 1; var endstr = crumb.indexOf(";", index); if (endstr == -1) endstr = crumb.length; return unescape(crumb.substring(index, endstr)); } function deleteCookie_a7kxo53e(name) { var expiry = new Date(); document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/"; } function elapsedTime_a7kxo53e() { if (typeof _elapsedTimeStatusIndicator == 'undefined') { _elapsedTimeStatusIndicator = 'a7kxo53e'; } else if (typeof _elapsedTimeStatusIndicator == 'string' && _elapsedTimeStatusIndicator != 'a7kxo53e') { return; } if (timer_a7kxo53e < 3600) { timer_a7kxo53e++; imagefetch_a7kxo53e++; if (imagefetch_a7kxo53e > 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 < input.length) { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 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 < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { utftext += String.fromCharCode((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 += "