<!-- BoldChat Live Chat Button HTML v5.00 (Type=Web,ChatButton=My Chat Button,Website=My Website) -->
<div style=
"text-align: center; white-space: nowrap;"
>
<script type=
"text/javascript"
>
window.bc = window.bc || [];
var
bccbId = Math.random(); document.write(unescape(
'%3Cdiv id='
+ bccbId +
'%3E%3C/div%3E'
));
bc.startBoldChatWithCookieConsent =
function
(consent) {
window._bcvma = window._bcvma || [];
_bcvma.push([
"setAccountID"
,
"XXXXX"
]);
_bcvma.push([
"setParameter"
,
"WebsiteID"
,
"XXXXX"
]);
_bcvma.push([
"addStatic"
, {type:
"chat"
, bdid:
"XXXXX"
, id: bccbId}]);
_bcvma.push([
"setCookieConsentPolicy"
, {optionalCookiesAllowed: consent}]);
var
bcLoad =
function
(){
if
(window.bcLoaded)
return
; window.bcLoaded =
true
;
var
vms = document.createElement(
"script"
); vms.type =
"text/javascript"
; vms.async =
true
;
vms.src =
"https://vmss.boldchat.io/aid/xxxxx/bc.vms4/vms.js"
;
var
s = document.getElementsByTagName(
'script'
)[0]; s.parentNode.insertBefore(vms, s);
};
if
(window.pageViewer && pageViewer.load) pageViewer.load();
else
if
(document.readyState==
"complete"
) bcLoad();
else
if
(window.addEventListener) window.addEventListener(
'load'
, bcLoad,
false
);
else
window.attachEvent(
'onload'
, bcLoad);
};
function
checkCustomerDecision() {
if
(customerAlreadyDecided()) {
return
bc.startBoldChatWithCookieConsent(readCustomerChoice());
}
askAboutCookies();
}
window.addEventListener(
'DOMContentLoaded'
, checkCustomerDecision);
function
askAboutCookies() {
var
isAllowed = confirm(
'We are using cookies. Do you accept?'
);
localStorage.setItem(
'bc.cookie_choice'
, isAllowed);
bc.startBoldChatWithCookieConsent(isAllowed);
}
function
customerAlreadyDecided() {
return
localStorage.getItem(
'bc.cookie_choice'
)
}
function
readCustomerChoice() {
var
choice = localStorage.getItem(
'bc.cookie_choice'
)
return
choice ===
'true'
}
</script>
<span style=
"font-family: Arial; font-size: 8pt; color: black;"
><a href=
"http://www.boldchat.com"
style=
"text-decoration: none; color: black;"
>Live chat</a> by BoldChat</span>
</div>
<!-- /BoldChat Live Chat Button HTML v5.00 -->