function getCookieValue(a) {
var b = document.cookie.match('(^|[^;]+)\\s*' + a + '\\s*=\\s*([^;]+)');
return b ? b.pop() : '';
}
if ((top != self || top.location.href != location.href) ) {
if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Mac') != -1 && navigator.userAgent.indexOf('Chrome') == -1 && getCookieValue('por_iframe_fixed') !== 'is_fixed') {
// safari cannot create iframed cookie, so cannot login/order, redirect
// also now chrome can't either so redirect them too.
var reUrl = "https://www.aactionrents.com/"+'iframe?redirectUrl='+encodeURIComponent(btoa('aaction-rents')+'~:~');
window.parent.postMessage({'event':'por_redirect_event','redirectUrl':reUrl},"*");
}
document.getElementsByTagName('html')[0].classList.add('embedded-in-an-iframe');
console.log('we are in an iframe and have set the appropriate properties');
}