function bn_isNotEmpty(name) { return (name != null) && (name != "");}
function bn_getOrderInfo() {
if (typeof (bnOrderId) != "undefined" && bn_isNotEmpty(bnOrderId))
baynote_tag.attrs.purchaseId = bnOrderId; if (typeof (bnOrderTotal) != "undefined" && bn_isNotEmpty(bnOrderTotal))
baynote_tag.attrs.totalPurchases = parseFloat(bnOrderTotal); if (typeof (bnOrderDetails) != "undefined" && bn_isNotEmpty(bnOrderDetails))
baynote_tag.attrs.purchaseDetails = bnOrderDetails;}
function bn_showObserver() {
bn_customerId = "musicroom"; bn_code = "www"; var bn_locHref = window.location.href; if (bn_locHref.indexOf("https://") == 0) { baynote_tag.server = "https://" + bn_customerId + "-" + bn_code + ".baynote.net"; } else { baynote_tag.server = "http://" + bn_customerId + "-" + bn_code + ".baynote.net";}
baynote_tag.customerId = bn_customerId; baynote_tag.code = bn_code; baynote_tag.type = "baynoteObserver"; baynote_globals.cookieDomain = "musicroom.com"; bn_getOrderInfo(); baynote_tag.show(); bnResourceManager.waitForResource("Policy", "baynote_policyLoaded()");}
if (typeof (baynote_tag) != "undefined") { bn_showObserver();}
function baynote_policyLoaded() {
for (var x = 0; x < 10; x++) {
if (bnPolicy.get("guide", "ok")) {
if (document.getElementById("BN_REC" + x))
(document.getElementById("BN_REC" + x)).style.display = "block"; if (document.getElementById("OTHER_REC" + x))
(document.getElementById("OTHER_REC" + x)).style.display = "none";
} else {
if (document.getElementById("OTHER_REC" + x))
(document.getElementById("OTHER_REC" + x)).style.display = "block"; if (document.getElementById("BN_REC" + x))
(document.getElementById("BN_REC" + x)).style.display = "none";
}}}