drawControl_efc6d1ba446e229536dd1f7f51923d87(); dragElement_efc6d1ba446e229536dd1f7f51923d87(document.getElementById('gsoftWebAssist_efc6d1ba446e229536dd1f7f51923d87')); dragElement_efc6d1ba446e229536dd1f7f51923d87(document.getElementById('gsoftWebCtrl_efc6d1ba446e229536dd1f7f51923d87')); var isOpen_efc6d1ba446e229536dd1f7f51923d87 = null; function drawControl_efc6d1ba446e229536dd1f7f51923d87(){ var gsoftA = document.getElementById('gsoftWebCtrl_efc6d1ba446e229536dd1f7f51923d87'); if (gsoftA){ var htm = "\%3Cdiv\%20class\%3D'mkyHUTs_efc6d1ba446e229536dd1f7f51923d87'\%20align\%3D'right'\%20style\%3D'float\%3Aright\%3Bmax-width\%3A25%\%3Bmin-width\%3A330px\%3Bmargin-right\%3A0em\%3B'>\%3CA\%20alt\%3D'Open\%20Guerrilla\%20Community\%20Builder\%20...'\%20style\%3D'font-size\%3A1.18em\%3Btext-decoration\%3Anone\%3Bcolor\%3Awhite\%3B'href\%3D'javascript\%3A\%20showAssist_efc6d1ba446e229536dd1f7f51923d87(_REPMODE)\%3B'>\%3Cdiv\%20style\%3D'width\%3Acalc(100%\%20-\%202em)\%3Btext-align\%3Aleft\%3Bborder-radius\%3A.5em\%3Bmargin\%3A0px\%3Bpadding\%3A.5em\%20.5em\%20.5em\%201.5em\%3Bbackground\%3AdimGray\%3Bmin-height\%3A3.4em\%3B'>\%3Cimg\%20style\%3D'margin-left\%3A1.5em\%3Bheight\%3A4.5em\%3Bwidth\%3A4.5em\%3Bfloat\%3Aright\%3Bborder-radius\%3A50%\%3Bbackground\%3AdimGray\%3Bfilter\%3Abrightness(85%)\%3B'\%20src\%3D'https\%3A//image.bitmonky.com/getMbrImg.php?mid\%3Ddc14fd698646636277d080a6a8854e9a&hut\%3Defc6d1ba446e229536dd1f7f51923d87'/>\%3Cimg\%20title\%3D'Start\%20Chat\%20With\%20Agent\%20SiteMonkey\%20AI'\%20style\%3D'float\%3Aleft\%3Bmargin-right\%3A0.5em\%3Bborder-radius\%3A50%\%3B'\%20src\%3D'https\%3A//image.bitmonky.com/img/onlineIcon.png'>Agent\%20SiteMonkey\%20AI\%3Cbr/>\%3Cspan\%20style\%3D'display\%3Anone\%3Bfont-size\%3Asmaller'>\%20At\%20Your\%20Service\%3C/span>\%20\%3C/div>\%3C/a>\%3C/div>"; htm = htm.replace(/%20/g,' '); htm = htm.replace(/%3B/g,';'); htm = htm.replace(/%3A/g,':'); htm = htm.replace(/%3C/g,'<'); htm = htm.replace(/%3D/g,'='); htm = htm.replace(/_REPMODE/g,'"virtualG"'); if (document.referrer && document.referrer != ""){ rfi = document.referrer; console.log('rfi',rfi); htm = htm.replace('mid=','rfi='+encodeURIComponent(rfi)+'&mid='); } const d = new Date(); let zone = d.getTimezoneOffset(); htm = htm.replace('mid=','rpg='+encodeURIComponent(document.location.href)+'&zone='+ zone +'&mid='); gsoftA.style.position = 'fixed';gsoftA.style.zIndex = 9998;gsoftA.style.bottom = '0.5em';gsoftA.style.right = '0.5em'; gsoftA.innerHTML = ''+htm+''; } } function doShellReady_efc6d1ba446e229536dd1f7f51923d87(shell){ var gvh = window.innerHeight * 0.01; console.log('shellReady',gvh); shell.style.height = (95 * gvh)+'px'; } function doResizeShell_efc6d1ba446e229536dd1f7f51923d87(){ var gvh = window.innerHeight * 0.01; console.log('resizingShell',gvh); shell = document.getElementById('ShellFrame_efc6d1ba446e229536dd1f7f51923d87'); if (shell){ shell.style.height = (95 * gvh)+'px'; } } function showAssist_efc6d1ba446e229536dd1f7f51923d87(join=false,what=null){ window.scrollTo(0,11800); window.scrollTo(0,1); var gvh = window.innerHeight * 0.01; console.log(gvh); var gsoftC = document.getElementById('gsoftWebCtrl_efc6d1ba446e229536dd1f7f51923d87'); if (join) isOpen_efc6d1ba446e229536dd1f7f51923d87 = false; if (!isOpen_efc6d1ba446e229536dd1f7f51923d87){ isOpen_efc6d1ba446e229536dd1f7f51923d87 = true; gsoftC.style.display = 'none'; drawMkyBBX_efc6d1ba446e229536dd1f7f51923d87(join,what); return; } var gsoftA = document.getElementById('gsoftWebAssist_efc6d1ba446e229536dd1f7f51923d87'); if (gsoftA){ gsoftA.style.display = 'block'; gsoftC.style.display = 'none'; } } function hideAssist_efc6d1ba446e229536dd1f7f51923d87(){ var gsoftC = document.getElementById('gsoftWebCtrl_efc6d1ba446e229536dd1f7f51923d87'); var gsoftA = document.getElementById('gsoftWebAssist_efc6d1ba446e229536dd1f7f51923d87'); if (gsoftA){ gsoftA.style.display = 'none'; gsoftC.style.display = 'block'; } } function drawMkyBBX_efc6d1ba446e229536dd1f7f51923d87(join,what){ var mkyRad = document.getElementById('gsoftWebAssist_efc6d1ba446e229536dd1f7f51923d87'); var pgURL = 'pgURL=' + document.location.href; if (!mkyRad){ mkyRad = document.getElementById('mkyRAD_efc6d1ba446e229536dd1f7f51923d87'); } if (mkyRad){ var htm = "\%3Cstyle>\%3Aroot\%20{\%20--h\%20\%3A\%20100vw\%3B}\%20.mkyHUTs_efc6d1ba446e229536dd1f7f51923d87{color\%3Awhite\%3Bfont-family\%3Asans-serif\%3Bfont-size\%3A14px\%3B}.mkyHUTs_efc6d1ba446e229536dd1f7f51923d87\%20A\%20{color\%3Awhite\%3BTEXT-DECORATION\%3Anone\%3B}.mkyHUTs_efc6d1ba446e229536dd1f7f51923d87\%20DIV\%20{background-color\%3Anone\%3B}.mkyHUTs_efc6d1ba446e229536dd1f7f51923d87\%20IMG\%20{background-color\%3Anone\%3Bbackground\%3Anone\%3Bborder\%3A0px\%3Bbox-shadow\%3A0px\%200px\%200px\%200px\%3B}\%3A\%3A-webkit-scrollbar\%20{\%20width\%3A\%204px\%3B}\%3A\%3A-webkit-scrollbar-track\%20{\%20\%20background\%3A\%20none\%3B}\%3A\%3A-webkit-scrollbar-thumb\%20{\%20\%20background\%3A\%20#888\%3B\%20}\%3A\%3A-webkit-scrollbar-thumb\%3Ahover\%20{\%20\%20background\%3A\%20none\%3B\%20}\%3C/style>\%3Cdiv\%20style\%3D'padding\%3A.25em\%3Bbackground\%3Anone\%3B'>\%3Ca\%20href\%3D'javascript\%3AhideAssist_efc6d1ba446e229536dd1f7f51923d87()'>Close[x]\%3C/a>\%3C/div>\%3Cdiv\%20class\%3D'mkyHUTs_efc6d1ba446e229536dd1f7f51923d87'\%20style\%3D'margin-top\%3A0em\%3Bbackground\%3AdimGray\%3Bcolor\%3Awhite\%3Bborder-radius\%3A\%20.5em\%3Bfont-weight\%3Abold\%3Bpadding\%3A5px\%2015px\%2015px\%2015px\%3B'>\%3Ciframe\%20ID\%3D'ShellFrame_efc6d1ba446e229536dd1f7f51923d87'\%20scrolling\%3D'no'\%20style\%3D'background\%3AdimGray\%3Bwidth\%3A100%\%3Bborder\%3A0px\%3Bheight\%3A90vh\%3B'\%20src\%3D'https\%3A//gsoft.bitmonky.com/whzon/adMgr/srvWebAssistShell.php?bbxID\%3D1&radMUID\%3Defc6d1ba446e229536dd1f7f51923d87&rep\%3Ddc14fd698646636277d080a6a8854e9a&uc\%3DmkyHUTs_efc6d1ba446e229536dd1f7f51923d87&nu\%3D1&rrefID\%3D&theme\%3Ddark&bColor\%3DdimGray&adfram\%3Dbackground%3AdimGray%3Bcolor%3Awhite%3B&pgURL&sh\%3D500'>\%3C/iframe>\%3C/div>\%3C/div>"; htm = htm.replace(/pgURL/,pgURL); htm = htm.replace(/%20/g,' '); htm = htm.replace(/%3B/g,';'); htm = htm.replace(/%3A/g,':'); htm = htm.replace(/%3C/g,'<'); htm = htm.replace(/%3D/g,'='); if (join === 'virtualP'){ htm = htm.replace(/\?bbxID/,'?join=on&virt=on&bbxID'); } else if (join === 'virtualGRP'){ htm = htm.replace(/\?bbxID/,'?join=on&virtGRP='+what+'&bbxID'); } else if (join === 'virtualSTF'){ htm = htm.replace(/\?bbxID/,'?join=on&virtSTF='+what+'&bbxID'); } else if (join === 'virtualAIP'){ htm = htm.replace(/\?bbxID/,'?join=on&virtAIP='+what+'&bbxID'); } else if (join === 'virtualB'){ htm = htm.replace(/\?bbxID/,'?join=on&virtB=on&bbxID'); } else if (join === 'virtualG'){ htm = htm.replace(/\?bbxID/,'?join=on&virtG=on&bbxID'); } else if (join === 'virtualHT'){ htm = htm.replace(/\?bbxID/,'?join=on&virtHT=on&bbxID'); } else if (join===true){ htm = htm.replace(/\?bbxID/,'?join=on&bbxID'); } const d = new Date(); let zone = d.getTimezoneOffset(); htm = htm.replace(/\&radMUID/,'&rep=dc14fd698646636277d080a6a8854e9a&zone='+zone+'&radMUID'); mkyRad.innerHTML = ''+htm+''; mkyRad.style.display = "block"; mkyRad.style.visibility = "visible"; mkyRad.style.width = '100%'; mkyRad.style.height = ''; mkyRad.style.position = 'fixed'; mkyRad.style.top = '3vh'; mkyRad.style.right = '1em'; mkyRad.style.zIndex = 9999; mkyRad.style.maxWidth = '32%'; mkyRad.style.minWidth = '300px'; mkyRad.style.maxHeight = '94vh'; } } function dragElement_efc6d1ba446e229536dd1f7f51923d87(elmnt) { var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; elmnt.onmousedown = dragMouseDown; elmnt.style.cursor = 'move'; function dragMouseDown(e) { e = e || window.event; e.preventDefault(); // get the mouse cursor position at startup: pos3 = e.clientX; pos4 = e.clientY; document.onmouseup = closeDragElement; // call a function whenever the cursor moves: document.onmousemove = elementDrag; } function elementDrag(e) { e = e || window.event; e.preventDefault(); // calculate the new cursor position: pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY; pos3 = e.clientX; pos4 = e.clientY; // set the element's new position: elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; } function closeDragElement() { // stop moving when mouse button is released: document.onmouseup = null; document.onmousemove = null; } }