//=============================== // Kayako LiveResponse // Copyright (c) 2001-2011 // http://www.kayako.com // License: http://www.kayako.com/license.txt //=============================== var sessionid_1se8megf = "o5x5cd0wj9kbed3ezbpxgd5oi309nd7r"; var geoip_1se8megf = new Array(); geoip_1se8megf[3] = "AMAZON.COM"; geoip_1se8megf[4] = "AMAZON.COM"; geoip_1se8megf[5] = "US"; geoip_1se8megf[12] = "United States"; geoip_1se8megf[6] = "Washington"; geoip_1se8megf[1] = "Seattle"; geoip_1se8megf[7] = "98144"; geoip_1se8megf[8] = "47.5839"; geoip_1se8megf[9] = "-122.2995"; geoip_1se8megf[10] = "819"; geoip_1se8megf[11] = "206"; geoip_1se8megf[13] = ""; var hasnotes_1se8megf = "0"; var isnewsession_1se8megf = "1"; var repeatvisit_1se8megf = "1"; var lastvisittimeline_1se8megf = "0"; var lastchattimeline_1se8megf = "0"; var isfirsttime_1se8megf = 1; var timer_1se8megf = 0; var imagefetch_1se8megf = 19; var updateurl_1se8megf = ""; var screenHeight = window.screen.availHeight; var screenWidth = window.screen.availWidth; var colorDepth = window.screen.colorDepth; var timeNow = new Date(); var referrer = escape(document.referrer); var windows, mac, linux; var ie, op, moz, misc, browsercode, browsername, browserversion, operatingsys; var dom, ienew, ie4, ie5, ie6, ie7, ie8, moz_rv, moz_rv_sub, ie5mac, ie5xwin, opnu, op4, op5, op6, op7, op8, op9, op10, saf, konq, chrome, ch1, ch2, ch3; var appName, appVersion, userAgent; var appname = navigator.appName; var appVersion = navigator.appVersion; var userAgent = navigator.userAgent; var dombrowser = "default"; var isChatRunning_1se8megf = 0; var title = document.title; var proactiveImageUse_1se8megf = new Image(); windows = (appVersion.indexOf('Win') != -1); mac = (appVersion.indexOf('Mac') != -1); linux = (appVersion.indexOf('Linux') != -1); if (!document.layers) { dom = (document.getElementById ) ? document.getElementById : false; } else { dom = 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=(appVersion.substring(0,1) 19) { imagefetch_1se8megf = 0; doStatusLoop_1se8megf(); } setTimeout("elapsedTime_1se8megf();", 1000); } } function doStatusLoop_1se8megf() { date1 = new Date(); var _newPageTitleReg=/[^0-9,a-z,A-Z]/gi; var _finalPageTitle=title.replace(_newPageTitleReg, " "); updateurl_1se8megf = "http://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/VisitorUpdate/UpdateFootprint/_time="+date1.getTime()+"/_randomNumber="+doRand_1se8megf()+"/_url="+encodeURIComponent(window.location)+"/_isFirstTime="+encodeURIComponent(isfirsttime_1se8megf)+"/_sessionID="+encodeURIComponent(sessionid_1se8megf)+"/_referrer="+encodeURIComponent(document.referrer)+"/_resolution="+encodeURIComponent(screenWidth+"x"+screenHeight)+"/_colorDepth="+encodeURIComponent(colorDepth)+"/_platform="+encodeURIComponent(navigator.platform)+"/_appVersion="+encodeURIComponent(navigator.appVersion)+"/_appName="+encodeURIComponent(navigator.appName)+"/_browserCode="+encodeURIComponent(browsercode)+"/_browserVersion="+encodeURIComponent(browserversion)+"/_browserName="+encodeURIComponent(browsername)+"/_operatingSys="+encodeURIComponent(operatingsys)+"/_pageTitle="+encodeURIComponent(_finalPageTitle)+"/_hasNotes="+encodeURIComponent(hasnotes_1se8megf)+"/_repeatVisit="+encodeURIComponent(repeatvisit_1se8megf)+"/_lastVisitTimeline="+encodeURIComponent(lastvisittimeline_1se8megf)+"/_lastChatTimeline="+encodeURIComponent(lastchattimeline_1se8megf)+"/_isNewSession="+encodeURIComponent(isnewsession_1se8megf)+"/_geoIP_3="+encodeURIComponent(geoip_1se8megf[3])+"/_geoIP_4="+encodeURIComponent(geoip_1se8megf[4])+"/_geoIP_5="+encodeURIComponent(geoip_1se8megf[5])+"/_geoIP_12="+encodeURIComponent(geoip_1se8megf[12])+"/_geoIP_6="+encodeURIComponent(geoip_1se8megf[6])+"/_geoIP_1="+encodeURIComponent(geoip_1se8megf[1])+"/_geoIP_7="+encodeURIComponent(geoip_1se8megf[7])+"/_geoIP_8="+encodeURIComponent(geoip_1se8megf[8])+"/_geoIP_9="+encodeURIComponent(geoip_1se8megf[9])+"/_geoIP_10="+encodeURIComponent(geoip_1se8megf[10])+"/_geoIP_11="+encodeURIComponent(geoip_1se8megf[11])+"/_geoIP_13="+encodeURIComponent(geoip_1se8megf[13]); proactiveImageUse_1se8megf = new Image(); proactiveImageUse_1se8megf.onload = imageLoaded_1se8megf; proactiveImageUse_1se8megf.src = updateurl_1se8megf; isfirsttime_1se8megf = 0; } function startChat_1se8megf(proactive) { isChatRunning_1se8megf = 1; docWidth = (winW-599)/2; docHeight = (winH-679)/2; _chatWindowURL = 'http://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/Chat/Request/_sessionID=' + sessionid_1se8megf + '/_proactive=' + proactive + '/_filterDepartmentID=/_randomNumber=' + doRand_1se8megf() + '/_fullName=/_email=/_promptType=chat'; chatwindow = window.open(_chatWindowURL,"customerchat"+doRand_1se8megf(), "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=1,width=599,height=679,left="+docWidth+",top="+docHeight); hideProactiveChatData_1se8megf(); } function imageLoaded_1se8megf() { if (!proactiveImageUse_1se8megf) { return; } proactiveAction = proactiveImageUse_1se8megf.width; if (proactiveAction == 3) { doProactiveInline_1se8megf(); } else if (proactiveAction == 4) { displayProactiveChatData_1se8megf(); } } function writeInlineRequestData_1se8megf() { 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_1se8megf() { docWidth = (winW-450)/2; docHeight = (winH-400)/2; var divData = ''; divData += "
"; 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_1se8megf() { if (proactiveAnimate == true) { return false; } writeObj = browserObject_1se8megf("proactivechatdiv"); if (writeObj) { docWidth = (winW-450)/2; docHeight = (winH-400)/2; proactiveY = docHeight; writeObj.top = docWidth; writeObj.left = docHeight; proactiveAnimate = true; } showDisplay_1se8megf("proactivechatdiv"); animateProactiveDiv_1se8megf(); } function displayInlineChatData_1se8megf() { writeObj = browserObject_1se8megf("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://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/VisitorUpdate/AcceptProactive/_randomNumber="+doRand_1se8megf()+"/_sessionID="+sessionid_1se8megf; inlineChatFrameObj = browserObject_1se8megf("inlinechatframe"); _iframeURL = 'http://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/Chat/StartInline/_sessionID=o5x5cd0wj9kbed3ezbpxgd5oi309nd7r/_proactive=1/_filterDepartmentID=/_fullName=/_email=/_inline=1/'; if (inlineChatFrameObj && inlineChatFrameObj.src != _iframeURL && writeObj.style.display == 'none') { inlineChatFrameObj.src = _iframeURL; } } showDisplay_1se8megf("inlinechatdiv"); } function hideProactiveChatData_1se8megf() { hideDisplay_1se8megf("proactivechatdiv"); hideDisplay_1se8megf("inlinechatdiv"); } function doProactiveInline_1se8megf() { displayInlineChatData_1se8megf(); } function doProactiveRequest_1se8megf() { acceptProactive = new Image(); acceptProactive.src = "http://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/VisitorUpdate/AcceptProactive/_randomNumber="+doRand_1se8megf()+"/_sessionID="+sessionid_1se8megf; startChat_1se8megf("4"); } function closeProactiveRequest_1se8megf() { rejectProactive = new Image(); date1 = new Date(); proactiveAnimate = false; rejectProactive.src = "http://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/VisitorUpdate/ResetProactive/_time="+date1.getTime()+"/_randomNumber="+doRand_1se8megf()+"/_sessionID="+sessionid_1se8megf; hideProactiveChatData_1se8megf(); } function closeInlineProactiveRequest_1se8megf() { rejectProactive = new Image(); date1 = new Date(); rejectProactive.src = "http://www.blockmastersecurity.com/support4/visitor/index.php?/LiveChat/VisitorUpdate/ResetProactive/_time="+date1.getTime()+"/_randomNumber="+doRand_1se8megf()+"/_sessionID="+sessionid_1se8megf; var bodyElement = document.getElementsByTagName('body'); document.getElementById('inlinechatframe').contentWindow.CloseProactiveChat(); // window.frames.inlinechatframe.CloseProactiveChat(); if (bodyElement[0]) { var inlineDivElement = browserObject_1se8megf('inlinechatdiv'); if (inlineDivElement) { var _parentNode = inlineDivElement.parentNode; _parentNode.removeChild(inlineDivElement); } } } function switchDisplay_1se8megf(objid) { result = browserObject_1se8megf(objid); if (!result) { return; } if (result.style.display == "none") { result.style.display = "block"; } else { result.style.display = "none"; } } function hideDisplay_1se8megf(objid) { result = browserObject_1se8megf(objid); if (!result) { return; } result.style.display = "none"; } function showDisplay_1se8megf(objid) { result = browserObject_1se8megf(objid); if (!result) { return; } result.style.display = "block"; } function updateProactivePosition_1se8megf() { writeObj = browserObject_1se8megf("proactivechatdiv"); writeObjInline = browserObject_1se8megf("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);