// #closeButton{float:right;color:#fff; cursor:pointer;font-weight:bold; } #boostMGBadgeButton{ color: #FFFFFF; cursor: pointer; margin-left: 0px; margin-right: 0px; position: fixed; z-index: 99999; bottom: 45%; right: 0px; height:220px; width:58px; background-color:#000; -webkit-border-radius: 3px; border-radius: 3px; } #boostMGBadgeContainer { position: fixed; top: 15%; display: none; margin: auto auto auto -250px; left: 50%; background: #8F8F8F; color: #fff; width: 500px; height: 430px; padding: 5px; overflow: hidden; -webkit-border-radius: 5px; border-radius: 5px; z-index: 99999; } ';
var varCSS = '';
document.write(varCSS);
//var badge = '
';
var badge = ' ';
document.write(badge);
document.write('');
document.write('
Close X
');
document.write('
');
document.write('
');
togglePanel(1);
}
function mobileRedirect() {
var userAgent = navigator.userAgent;
var redirect = 'true';
if ( (redirect == "true") && ((userAgent.toLowerCase().indexOf("iphone") != -1) || (userAgent.toLowerCase().indexOf("blackberry") != -1) || (userAgent.toLowerCase().indexOf("android") != -1) || (userAgent.toLowerCase().indexOf("windows phone") != -1) || (userAgent.toLowerCase().indexOf("nokia") != -1)) )
{
window.location = "https://m.boostmg.com/apps/West%20York%20Sales%20and%20Leasing%20Inc";
}
}
function togglePanel(status){
var badge = document.getElementById("badge").value;
if(badge == 0)
{ document.getElementById("boostMGBadgeContainer").style.display = "block"; document.getElementById("badge").value = 1; }
else if(badge == 1)
{ document.getElementById("boostMGBadgeContainer").style.display = "none"; document.getElementById("badge").value = 0; }
}
// show();
CreateBadge(); mobileRedirect(); //]]>