var POWERREVIEWS = POWERREVIEWS || (function () {
    var BE = {
        common: {},
        display: {}
    };
    var AY = false;
    var Aa = false;
    var d = null;
    var AU = {};
    var AB = {};
    var As = {};
    var Ad = {};
    BE.common.gResult = Ad;
    var Az = {};
    var G = 0;
    var x = encodeURIComponent || escape;
    var AL = "prBaseStylesheet";
    var Ar = "prMerchantOverrideStylesheet";
    var z = {
        "0": {
            large: "pr-stars-0",
            small: "pr-stars-0-sm"
        },
        "1": {
            large: "pr-stars-1",
            small: "pr-stars-1-sm"
        },
        "1.5": {
            large: "pr-stars-1_5",
            small: "pr-stars-1_5-sm"
        },
        "2": {
            large: "pr-stars-2",
            small: "pr-stars-2-sm"
        },
        "2.5": {
            large: "pr-stars-2_5",
            small: "pr-stars-2_5-sm"
        },
        "3": {
            large: "pr-stars-3",
            small: "pr-stars-3-sm"
        },
        "3.5": {
            large: "pr-stars-3_5",
            small: "pr-stars-3_5-sm"
        },
        "4": {
            large: "pr-stars-4",
            small: "pr-stars-4-sm"
        },
        "4.5": {
            large: "pr-stars-4_5",
            small: "pr-stars-4_5-sm"
        },
        "5": {
            large: "pr-stars-5",
            small: "pr-stars-5-sm"
        }
    };
    var AN = {
        pr_merchant_table: {
            "m409859": {
                "name": "apartstyle",
                "cobranded": "true"
            }
        },
        pr_merchant_id: 409859,
        pr_locale: "en_US",
        pr_read_review: "#ReviewHeader",
        pr_read_qa: "#QAHeader",
        pr_write_review: "http://apartstyle.uat.venda.com/page/reviewpopup?pr_page_id=~~~PAGE_ID~~~",
        pr_ask_question: "",
        pr_answer_question: "",
        pr_js_controller_url: "http://services.powerreviews.com/JSController.do",
        pr_reviews_per_page: 5,
        pr_zip_location: "http://cdn.powerreviews.com/repos/13179/pr",
        pr_powerreviews_root: "pwr",
        pr_review_display_usage_tracker_path: "http://cdn.powerreviews.com/aux/",
        pr_allow_engine_css_override: true,
        pr_style_sheet: "",
        pr_analytics_script_src: "",
        pr_analytics_account: "",
        pr_badge_definitions_url: "javascript:POWERREVIEWS.common.showSmallPopup('http://www.powerreviews.com/legal/badge_definitions_~~~LOCALE~~~.html', 580, 460)",
        pr_expert_badge_definitions_url: "javascript:POWERREVIEWS.common.showSmallPopup('http://www.powerreviews.com/legal/expert_badge_definitions_~~~LOCALE~~~.html', 580, 460)",
        pr_frame_height: 3000,
        pr_submit_review_url: "http://services.powerreviews.com/SubmitReview.do",
        pr_ask_question_url: "http://services.powerreviews.com/SubmitQuestion.dox",
        pr_answer_question_url: "http://services.powerreviews.com/SubmitAnswer.dox",
        pr_base_services_url: "http://services.powerreviews.com/",
        pr_resize_url: "http://apartstyle.uat.venda.com/content/ebiz/apartstyle/templates/invt/reviews/resize.html",
        pr_snippet_min_reviews: 0,
        pr_suppress_google_plus_one: false,
        pr_source: "web",
        pr_image_snippet_show_image: W,
        pr_image_snippet_max: 7,
        pr_snippet_star_click: "",
        pr_back_to_top_link: "#",
        pr_see_all_reviews_url: "",
        pr_nbr_displayed_profile_reviews: -1,
        pr_overwrite_inline_content: false,
        pr_badge_table: {
            "11024": {
                "locales": {
                    "en_GB": {
                        "hovertext": "Staff Reviewer",
                        "description": "A Staff Expert is a merchant or brand employee with recognized expertise within the company who contributes a review based on in-depth knowledge of the product as well as related products.",
                        "filename": "badge_se_en_GB.gif"
                    },
                    "pt_BR": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_se_pt_BR.gif"
                    },
                    "en_US": {
                        "hovertext": "Staff Reviewer",
                        "description": "A Staff Expert is a merchant or brand employee with recognized expertise within the company who contributes a review based on in-depth knowledge of the product as well as related products.",
                        "filename": "badge_se_en_US.gif"
                    },
                    "de_DE": {
                        "hovertext": "Mitarbeiter-Bewerter",
                        "description": "",
                        "filename": "badge_se_de_DE.gif"
                    },
                    "it_IT": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_se_it_IT.gif"
                    },
                    "fr_CA": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_se_fr_CA.gif"
                    },
                    "jp_JP": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_se_jp_JP.gif"
                    },
                    "fr_FR": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_se_fr_FR.gif"
                    }
                },
                "label": "staff-expert",
                "isStaff": true
            },
            "11023": {
                "locales": {
                    "en_CA": {
                        "hovertext": "Staff Reviewer",
                        "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
                        "filename": "badge_sr_en_CA.gif"
                    },
                    "en_GB": {
                        "hovertext": "Staff Reviewer",
                        "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
                        "filename": "badge_sr_en_GB.gif"
                    },
                    "en_US": {
                        "hovertext": "Staff Reviewer",
                        "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
                        "filename": "badge_sr_en_US.gif"
                    },
                    "de_DE": {
                        "hovertext": "Mitarbeiter-Bewerter",
                        "description": "",
                        "filename": "badge_sr_de_DE.gif"
                    },
                    "fr_CA": {
                        "hovertext": "Critique de personnel",
                        "description": "",
                        "filename": "badge_sr_fr_CA.gif"
                    },
                    "jp_JP": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_sr_jp_JP.gif"
                    },
                    "fr_FR": {
                        "hovertext": "",
                        "description": "",
                        "filename": "badge_sr_fr_FR.gif"
                    },
                    "en_AU": {
                        "hovertext": "Staff Reviewer",
                        "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
                        "filename": "badge_sr_en_AU.gif"
                    },
                    "nl_NL": {
                        "hovertext": "Staff Beoordeler",
                        "description": "A Staff Beoordeler is een handelaar of merk werknemer die beoordelingen inzend op basis van eigendom of gebruik van het product.",
                        "filename": "badge_sr_nl_NL.gif"
                    }
                },
                "label": "staff",
                "isStaff": true
            }
        },
        pr_attribution_table: {}
    };
    var A3 = {};
    if (window && window.location && window.location.search) {
        var AJ = window.location.search.substring(1).split("&");
        for (var AG = 0, Al = AJ.length; AG < Al; ++AG) {
            var AE = AJ[AG].split("=");
            A3[AE[0]] = AE[1];
        }
    }
    function BA(BO) {
        for (var BP = 1, BN = arguments.length; BP < BN; ++BP) {
            var BQ = arguments[BP];
            if (BQ) {
                var BM = BQ[BO];
                if (typeof BM != "undefined") {
                    return BM;
                }
            }
        }
        return null;
    }
    function Ay(BM, i) {
        return BA(BM, i, A3, window, AN);
    }
    BE.common.get = Ay;

    function Y(BQ) {
        var BP = 0;
        var BO;
        for (BO = 0; BO < BQ.length; BO++) {
            var BN = BQ.charCodeAt(BO);
            BN = BN * Math.abs(255 - BN);
            BP += BN;
        }
        BP = BP % 1023;
        BP = BP + "";
        var BR = 4;
        var BM = BP.split("");
        for (BO = 0; BO < BR - BP.length; BO++) {
            BM.unshift("0");
        }
        BP = BM.join("");
        BP = BP.substring(0, BR / 2) + "/" + BP.substring(BR / 2, BR);
        return BP;
    }
    function BJ(i, BN) {
        if (AY) {
            return true;
        } else {
            if (!Au(BN)) {
                return false;
            }
        }
        AY = true;
        if (!document.getElementById(AL)) {
            i.write('<link rel="stylesheet" href="' + AM(BN) + '/engine/pr_styles_review.css" type="text/css" id="' + AL + '">\n');
        }
        var BO = AM(BN) + "/engine/merchant_styles2.css";
        var BM = A4(Ay("pr_style_sheet", BN));
        if (Ay("pr_allow_engine_css_override", BN) && BM) {
            BO = BM;
        }
        if (!document.getElementById(Ar)) {
            i.write('<link rel="stylesheet" href="' + BO + '" type="text/css" id="' + Ar + '">\n');
        }
        AT(AM(BN) + "/engine/images/ph.gif?r=" + Math.floor(Math.random() * 10000));
        Af({
            "type": "init"
        }, BN);
        setTimeout(function () {
            Af({
                "type": "objects",
                "count": G
            }, BN);
        }, 5000);
        return true;
    }
    function Au(i) {
        if (Aa) {
            return true;
        } else {
            if (!Ay("pr_page_id", i) && !Ay("pr_merchant_user_id", i)) {
                return false;
            }
        }
        Aa = true;
        return true;
    }
    function Ag(i, BM, BN) {
        if (!document.getElementById(i)) {
            setTimeout(function () {
                Ag(i, BM, BN);
            }, 1000);
        } else {
            A(i, BM, BN);
        }
    }
    function A(i, BN, BO) {
        try {
            if (!BN) {
                BN = "";
            }
            AQ(function () {
                AF(document.getElementById(i), BN);
                if (BO) {
                    BO();
                }
            });
        } catch (BM) {}
    }
    function AF(BN, BM) {
        if (BN.parentNode) {
            var i = document.createElement("div");
            i.id = BN.id;
            i.className = BN.className;
            i.innerHTML = BM;
            BN.parentNode.replaceChild(i, BN);
            return i;
        } else {
            BN.innerHTML = BM;
            return BN;
        }
    }
    function AQ(i) {
        if (typeof i == "function") {
            (function () {
                if (BF()) {
                    try {
                        document.documentElement.doScroll("left");
                    } catch (BM) {
                        setTimeout(arguments.callee, 50);
                        return;
                    }
                }
                i();
                i = null;
            })();
        }
    }
    function BF() {
        return typeof document.all != "undefined" && typeof window.opera == "undefined" && !(navigator.vendor == "KDE");
    }
    function AT(i) {
        new Image().src = i;
    }
    function AM(BM) {
        var i = Ay("pr_zip_location", BM);
        if (i.charAt(i.length - 1) != "/") {
            i += "/";
        }
        i += Ay("pr_powerreviews_root", BM);
        return i;
    }
    BE.common.getDocRoot = AM;

    function Ao(i) {
        return i.replace(/\W/g, "__");
    }
    function l(BM, BO, BN, i) {
        this.pageId = BM;
        this.fullReviewCount = BO;
        this.quickReviewCount = BN;
        this.averageRating = i;
        this.getFullReviewCount = function () {
            return this.fullReviewCount;
        };
        this.getQuickReviewCount = function () {
            return this.quickReviewCount;
        };
        this.getAverageRating = function () {
            return this.averageRating;
        };
        this.getPageId = function () {
            return this.pageId;
        };
    }
    function Ab(BM, i, BN) {
        return BN && BN["locales"] && BN["locales"][i] && BN["locales"][i]["p" + BM];
    }
    function J(BN) {
        var BO = document.getElementsByName(BN);
        for (var BM = 0; BM < BO.length; BM++) {
            if (BO[BM].checked) {
                return BO[BM].value;
            }
        }
        return null;
    }
    function Ac(i, BN, BM) {
        return i.replace(new RegExp(BN, "g"), BM);
    }
    function A4(i) {
        return i && i.replace(/^\s+|\s+$/g, "");
    }
    function BD(i) {
        if (typeof i == "string") {
            return i.replace(/\n/g, "<br />");
        } else {
            return i;
        }
    }
    function AA(BN, BO, BR, BM) {
        var BP = AM(BM);
        var BO = BO || BN.substring(BN.indexOf(BP) + BP.length + 1);
        if (Ad[BO]) {
            BR(Ad[BO]);
        } else {
            var i = document.createElement("script");
            var BQ = function () {
                    if (Ad[BO]) {
                        if (i.parentNode) {
                            i.parentNode.removeChild(i);
                            delete i;
                        }
                        BR(Ad[BO]);
                    }
                };
            if (BF()) {
                i.onreadystatechange = BQ;
            } else {
                i.onload = BQ;
            }
            i.type = "text/javascript";
            i.charset = "utf-8";
            i.src = BN;
            document.getElementsByTagName("head")[0].appendChild(i);
            G++;
        }
    }
    function M(BQ, BR, BM) {
        if (BQ.className) {
            var BN = BQ.className.split(" ");
            if (BM) {
                var BP = BR.toUpperCase();
                for (var BO = 0; BO < BN.length; BO++) {
                    if (BN[BO].toUpperCase() == BP) {
                        BN.splice(BO, 1);
                        BO--;
                    }
                }
            }
            BN[BN.length] = BR;
            BQ.className = BN.join(" ");
        } else {
            BQ.className = BR;
        }
    }
    function AX(BP, BQ) {
        if (BP.className) {
            var BM = BP.className.split(" ");
            var BO = BQ.toUpperCase();
            for (var BN = 0; BN < BM.length; BN++) {
                if (BM[BN].toUpperCase() == BO) {
                    BM.splice(BN, 1);
                    BN--;
                }
            }
            BP.className = BM.join(" ");
        }
    }
    function U(BT, BU, BV) {
        var BR = (BU == "*" && BT.all) ? BT.all : BT.getElementsByTagName(BU);
        var BQ = new Array();
        var BW = new Array();
        if (typeof BV == "object") {
            for (var BP = 0; BP < BV.length; BP++) {
                BW.push(new RegExp("(^|\\s)" + BV[BP].replace(/\-/g, "\\-") + "(\\s|$)"));
            }
        } else {
            BW.push(new RegExp("(^|\\s)" + BV.replace(/\-/g, "\\-") + "(\\s|$)"));
        }
        var BM;
        var BS;
        for (var BO = 0; BO < BR.length; BO++) {
            BM = BR[BO];
            BS = true;
            for (var BN = 0; BN < BW.length; BN++) {
                if (!BW[BN].test(BM.className)) {
                    BS = false;
                    break;
                }
            }
            if (BS) {
                BQ.push(BM);
            }
        }
        return BQ;
    }
    function An(BM, i) {
        if (i(BM) == true) {
            return BM;
        } else {
            if (BM.parentNode) {
                return arguments.callee(BM.parentNode, i);
            } else {
                return false;
            }
        }
    }
    function Am(BM, i) {
        Az[BM] = i;
    }
    function j(i) {
        return Az[i];
    }
    BE.common.getOptions = j;

    function r(BM, i, BP, BN) {
        var BO = AU[BM];
        if (!BO) {
            AA(AM(BN) + "/content/" + Y(BM) + "/contents.js", null, function (BQ) {
                BO = Ab(BM, i, BQ);
                AU[BM] = BO ? BO : "none";
                BP(BO);
            }, BN);
        } else {
            if (BO == "none") {
                BP(null);
            } else {
                BP(BO);
            }
        }
    }
    function A6(BM, i, BO, BN) {
        if (!d) {
            AA(AM(BN) + "/content/" + Y(BM) + "/" + BM + "-" + i + "-meta.js", null, function (BP) {
                d = BP ? BP.metadata : null;
                BO();
            }, BN);
        } else {
            BO();
        }
    }
    function f(BM, i, BP, BQ, BO) {
        if (!AB[BM + "-" + BP]) {
            var BN = AM(BO) + "/content/" + Y(BM) + "/" + BM + "-" + i + "-" + BP + "-reviews.js";
            AA(BN, null, function (BU) {
                var BS = [];
                for (var BT = 0; BT < BU.length; BT++) {
                    var BR = BU[BT].r;
                    As[BR.id] = BR;
                    BS.push(BR);
                }
                AB[BM + "-" + BP] = BS;
                BQ();
            }, BO);
        } else {
            BQ();
        }
    }
    function B(BN, BM, BR, BS, BO) {
        var BQ = BR.length;
        for (var BP = 0; BP < BR.length; BP++) {
            f(BN, BM, BR[BP], function () {
                if (--BQ <= 0) {
                    BS();
                }
            }, BO);
        }
    }
    function BG(i) {
        return Math.round(i * 2) / 2;
    }
    function Af(BM, i) {}
    function u(BP, BM) {
        var BO = Ay("pr_base_services_url", BM);
        var i = BO + "FacebookDisplayProfileController.dox";
        var BN = AV(BP);
        if (BN.length) {
            i += "?" + BN;
        }
        return i;
    }
    function s(BP, BM) {
        var BO = Ay("pr_base_services_url", BM);
        var i = BO + "FacebookReviewStatementController.dox?context=STATEMENT";
        var BN = AV(BP);
        if (BN.length) {
            i += "&" + BN;
        }
        return i;
    }
    function AV(BM) {
        var i = [];
        for (var BN in BM) {
            i.push(BN + "=" + x(BM[BN]));
        }
        return i.join("&");
    }
    function W(BN, BO, i, BM) {
        window.open("http://images2.powerreviews.com/media_popup.html?type=image&url=" + x(BN), "sizedWindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=" + BO + ",height=" + i + ",top=100,left=100");
    }
    BE.common.showImagePopup = W;

    function Av(i, BT, BM, BQ) {
        var BO = {
            "toolbar": "no",
            "directories": "no",
            "status": "no",
            "menubar": "no",
            "scrollbars": "yes",
            "resizable": "yes",
            "location": "yes",
            "top": "200",
            "left": "200"
        };
        var BR = [];
        for (var BN in BO) {
            BR.push(BN + "=" + ((BQ && BQ[BN]) || BO[BN]));
        }
        var BP = BR.join(",");
        var BS = window.open(i, "smallWindow", "width=" + BM + ",height=" + BT + "," + BP);
        if (window.focus) {
            BS.focus();
        }
    }
    BE.common.showSmallPopup = Av;

    function Ai(BM, i) {
        window.open("http://images2.powerreviews.com/media_popup.html?type=video&url=" + x(BM), "sizedWindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=435,height=350,top=100,left=100");
    }
    BE.common.showVideoPopup = Ai;

    function L(BP, BN, BM, BO) {
        var i = function () {
                AX(document.getElementById(BP.target), "pr-open");
                M(document.getElementById(BP.target), "pr-closed");
            };
        var BQ = function () {
                AX(document.getElementById(BP.target), "pr-closed");
                M(document.getElementById(BP.target), "pr-open");
            };
        if (window.event) {
            BO = window.event;
            BO.cancelBubble = true;
            target = window.event.srcElement;
            currentTarget = event.srcElement.id;
        } else {
            if (BO) {
                BO.stopPropagation();
                target = BO.target;
                currentTarget = BO.currentTarget.id;
            } else {
                return;
            }
        }
        if (BN == "show") {
            if (document.getElementById(BP.target).className != "pr-open") {
                this.timedShow = setTimeout(BQ, 400);
            } else {
                if (An(target, function (BR) {
                    if (BR.id == BP.target) {
                        return true;
                    }
                })) {
                    if (this.timedHide != null) {
                        window.clearTimeout(this.timedHide);
                    }
                }
            }
        } else {
            if (BN == "hide") {
                if (this.timedHide != null) {
                    window.clearTimeout(this.timedShow);
                }
                if (currentTarget == BP.link || currentTarget == BP.target || An(target, function (BR) {
                    if (BR.id == BP.target) {
                        return true;
                    }
                })) {
                    this.timedHide = setTimeout(i, 800);
                } else {
                    if (this.timedHide != null) {
                        window.clearTimeout(this.timedHide);
                    }
                }
            }
        }
    }
    BE.common.togglePopOut = L;

    function p(BO, BP, BN, i) {
        var BM = BO.substring(BP, BN);
        if (i) {
            BM += "...";
        }
        return BM;
    }
    function BK(i, BN) {
        var BM = document.getElementById(BN).innerHTML;
        Ag(i, BM);
    }
    var BB = {
        _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
        encode: function (BO) {
            var BM = "";
            var BV, BT, BR, BU, BS, BQ, BP;
            var BN = 0;
            BO = BB._utf8_encode(BO);
            while (BN < BO.length) {
                BV = BO.charCodeAt(BN++);
                BT = BO.charCodeAt(BN++);
                BR = BO.charCodeAt(BN++);
                BU = BV >> 2;
                BS = ((BV & 3) << 4) | (BT >> 4);
                BQ = ((BT & 15) << 2) | (BR >> 6);
                BP = BR & 63;
                if (isNaN(BT)) {
                    BQ = BP = 64;
                } else {
                    if (isNaN(BR)) {
                        BP = 64;
                    }
                }
                BM = BM + this._keyStr.charAt(BU) + this._keyStr.charAt(BS) + this._keyStr.charAt(BQ) + this._keyStr.charAt(BP);
            }
            return BM;
        },
        decode: function (BO) {
            var BM = "";
            var BV, BT, BR;
            var BU, BS, BQ, BP;
            var BN = 0;
            BO = BO.replace(/[^A-Za-z0-9\+\/\=]/g, "");
            while (BN < BO.length) {
                BU = this._keyStr.indexOf(BO.charAt(BN++));
                BS = this._keyStr.indexOf(BO.charAt(BN++));
                BQ = this._keyStr.indexOf(BO.charAt(BN++));
                BP = this._keyStr.indexOf(BO.charAt(BN++));
                BV = (BU << 2) | (BS >> 4);
                BT = ((BS & 15) << 4) | (BQ >> 2);
                BR = ((BQ & 3) << 6) | BP;
                BM = BM + String.fromCharCode(BV);
                if (BQ != 64) {
                    BM = BM + String.fromCharCode(BT);
                }
                if (BP != 64) {
                    BM = BM + String.fromCharCode(BR);
                }
            }
            BM = BB._utf8_decode(BM);
            return BM;
        },
        _utf8_encode: function (BM) {
            BM = BM.replace(/\r\n/g, "\n");
            var i = "";
            for (var BO = 0; BO < BM.length; BO++) {
                var BN = BM.charCodeAt(BO);
                if (BN < 128) {
                    i += String.fromCharCode(BN);
                } else {
                    if ((BN > 127) && (BN < 2048)) {
                        i += String.fromCharCode((BN >> 6) | 192);
                        i += String.fromCharCode((BN & 63) | 128);
                    } else {
                        i += String.fromCharCode((BN >> 12) | 224);
                        i += String.fromCharCode(((BN >> 6) & 63) | 128);
                        i += String.fromCharCode((BN & 63) | 128);
                    }
                }
            }
            return i;
        },
        _utf8_decode: function (BM) {
            var BN = "";
            var BP = 0;
            var BQ = 0;
            var BO = 0;
            while (BP < BM.length) {
                BQ = BM.charCodeAt(BP);
                if (BQ < 128) {
                    BN += String.fromCharCode(BQ);
                    BP++;
                } else {
                    if ((BQ > 191) && (BQ < 224)) {
                        BO = BM.charCodeAt(BP + 1);
                        BN += String.fromCharCode(((BQ & 31) << 6) | (BO & 63));
                        BP += 2;
                    } else {
                        BO = BM.charCodeAt(BP + 1);
                        c3 = BM.charCodeAt(BP + 2);
                        BN += String.fromCharCode(((BQ & 15) << 12) | ((BO & 63) << 6) | (c3 & 63));
                        BP += 3;
                    }
                }
            }
            return BN;
        }
    };
    var X = {};
    var n = 0;
    var c = 1;
    var BL = 2;
    var A2 = 3;
    var v = 4;
    var R = 5;
    var AD = null;
    var AW = new Date();
    var F = {};
    var A5 = {};
    var AI = [];

    function At(i) {
        return Ay("pr_merchant_table", i)["m" + Ay("pr_merchant_id", i)];
    }
    function AH(i, BM) {
        var BN = Ay("pr_analytics_script_src", BM);
        if (BN) {
            i.write('<script src="' + BN + '" type="text/javascript"><\/script>');
        }
    }
    function D(BO, BQ) {
        if (BJ(BO, BQ)) {
            var BP = Ay("pr_page_id", BQ);
            var BN = Ao(BP);
            var BM = Ay("pr_locale", BQ);
            var i = "engine-" + BN + "-" + BM;
            Am(i, BQ);
            var BS = document.getElementById("pr-review-engine-" + BN);
            var BR = function () {
                    var BV = document.getElementById("writeReview") || document.getElementById("write-review-" + BN);
                    if (BV) {
                        var BT = Aq(BP, BQ);
                        if (BT) {
                            BV.href = BT;
                            var BU = document.getElementById("pr-snapshot-footer-" + BN);
                            if (BU) {
                                BU.style.display = "";
                            }
                        }
                    } else {
                        setTimeout(BR, 100);
                    }
                };
            if (!BS) {
                A8(BO, BN);
            }
            AH(BO, BQ);
            if (!BS || Ay("pr_overwrite_inline_content", BQ)) {
                T(BN, BM, i, BQ, function () {
                    S(BN);
                    BR();
                });
            } else {
                BR();
            }
            t(BN, BM, BQ);
        }
    }
    BE.display.engine = D;

    function Aq(i, BM) {
        return Ac(Ay("pr_write_review", BM), "~~~PAGE_ID~~~", i);
    }
    function A8(i, BM) {
        i.write('<div id="pr-review-engine-' + BM + '" class="pr-review-engine"><div id="pr-header-' + BM + '" class="pr-header"></div><div id="pr-contents-' + BM + '" class="pr-contents"></div></div>');
    }
    function S(BM) {
        var BN = document.getElementById("pr-review-engine-screen-" + BM);
        if (BN && BN.parentNode) {
            BN.parentNode.removeChild(BN);
        }
        var i = document.getElementById("pr-review-engine-" + BM);
        if (i) {
            AX(i, "pr-review-engine-screened");
        }
    }
    function w(BO, BM) {
        var BN = A4(Ay("pr_analytics_account", BM));
        if (window.urchinTracker && BN) {
            var i = "";
            var BP = typeof _uacct != "undefined";
            if (BP) {
                i = _uacct;
            }
            _uacct = BN;
            urchinTracker("/product_with_" + BO + "_reviews");
            if (BP) {
                _uacct = i;
            }
        }
    }
    function T(BN, BM, i, BO, BP) {
        r(BN, BM, function (BS) {
            var BR = (BS && BS.reviews && BS.reviews.review_count) || 0;
            var BU = (BS && BS.reviews && BS.reviews.review_ratings) || [0, 0, 0, 0, 0];
            var BQ;
            var BT = function () {
                    if (--BQ <= 0) {
                        BP();
                    }
                };
            if (BR > 0) {
                BQ = 2;
                q(BN, BM, BR, BU, i, BO, BT);
                a(1, BN, BM, i, BO, BT);
            } else {
                BQ = 1;
                q(BN, BM, BR, BU, i, BO, BT);
            }
        }, BO);
    }
    function t(BM, i, BN) {
        r(BM, i, function (BP) {
            var BO = 0;
            var BQ = 0;
            if (BP && BP.reviews) {
                BO = BP.reviews.review_count;
                BQ = BP.reviews.avg;
            }
            AR("main", new l(BM, BO, 0, BG(BQ)));
            window.setTimeout(function () {
                w(BO, BN);
            }, 2000);
        }, BN);
    }
    function P(BQ, BN, BM, i, BO) {
        var BP = new Date();
        if (BP.getTime() - AW.getTime() > 1000) {
            AW = BP;
            A6(BN, BM, function () {
                b(BQ.selectedIndex, BN);
                Ax(1, BN, BM, "sort", i, BO);
            }, BO);
        }
    }
    BE.display.startSort = P;

    function b(BN, i) {
        d.sort(X[BN]);
        AD = BN;
        var BM = document.getElementById("pr-header-" + i);
        if (BM) {
            BM.focus();
        }
    }
    function K(BM, i) {
        if (BM.oid && i.oid) {
            return i.oid - BM.oid;
        }
        return i.rid - BM.rid;
    }
    X[n] = function (BM, i) {
        if (BM.date == i.date) {
            return K(BM, i);
        }
        return i.date - BM.date;
    };
    X[c] = function (BM, i) {
        if (i.date == BM.date) {
            return K(i, BM);
        }
        return BM.date - i.date;
    };
    X[BL] = function (BM, i) {
        if (i.rating == BM.rating) {
            return K(BM, i);
        }
        return i.rating - BM.rating;
    };
    X[A2] = function (BM, i) {
        if (i.rating == BM.rating) {
            return K(i, BM);
        }
        return BM.rating - i.rating;
    };
    X[v] = function (BM, i) {
        if (i.helpfulScore == BM.helpfulScore) {
            return K(BM, i);
        }
        return i.helpfulScore - BM.helpfulScore;
    };
    X[R] = function (BM, i) {
        if (i.helpfulScore == BM.helpfulScore) {
            return K(i, BM);
        }
        return BM.helpfulScore - i.helpfulScore;
    };

    function a(BP, BN, BM, i, BO, BQ) {
        r(BN, BM, function (BR) {
            var BS = [BP];
            B(BN, BM, BS, function () {
                var BT = 0;
                if (BR.reviews) {
                    BT = BR.reviews.review_count;
                }
                Ag("pr-contents-" + BN, k(AB[BN + "-" + BP], BN, BM, BR.name, BT, Ay("pr_reviews_per_page", BO), 1, "#pr-header-" + BN, "#pr-header-" + BN, false, i, BO), BQ);
            }, BO);
        }, BO);
    }
    function BC(BP, BN, BM, i, BO) {
        Ax(BP, BN, BM, "page", i, BO);
    }
    function Ax(BP, BN, BM, BQ, i, BO) {
        A6(BN, BM, function () {
            if (AD == null) {
                b(v, BN);
            }
            r(BN, BM, function (BU) {
                var BS = Ay("pr_reviews_per_page", BO);
                var BY = (BP - 1) * BS;
                var BW = BY + BS - 1;
                if (BW > BU.reviews.review_count - 1) {
                    BW = BU.reviews.review_count - 1;
                }
                var BX = [];
                var BV = {};
                for (var BT = BY; BT <= BW; BT++) {
                    var BR = d[BT].batch;
                    if (!BV[BR]) {
                        BX.push(BR);
                        BV[BR] = true;
                    }
                }
                B(BN, BM, BX, function () {
                    var Ba = [];
                    for (var BZ = BY; BZ <= BW; BZ++) {
                        Ba.push(As[d[BZ].rid]);
                    }
                    Ag("pr-contents-" + Ao(BN), k(Ba, BN, BM, BU.name, BU.reviews.review_count, BS, BP, "#pr-header-" + BN, "#pr-header-" + BN, false, i, BO));
                }, BO);
            }, BO);
        }, BO);
        Af({
            "type": BQ
        }, BO);
    }
    BE.display.getReviewsFromMeta = BC;

    function q(BN, BM, BP, BQ, i, BO, BR) {
        if (BP > 0) {
            AA(AM(BO) + "/content/" + Y(BN) + "/" + BN + "-" + BM + "-rollup.js", null, function (BS) {
                if (BS.rollup) {
                    Ag("pr-header-" + BN, C(BP, BQ, BS.rollup, BN, BM, i, BO), BR);
                }
            }, BO);
        } else {
            Ag("pr-header-" + BN, C(BP, BQ, null, BN, BM, i, BO), BR);
        }
    }
    function m(BM, BO, i, BN) {
        var BP = "Thank you for your feedback.  Please note that only your first vote will be counted.";
        if (!F[BM] || F[BM] == "undefined") {
            AT(Ay("pr_js_controller_url", BN) + "?command=helpfulVote&reviewId=" + BM + "&voteType=" + BO);
            F[BM] = 1;
        } else {
            BP = "You may only submit one vote per review.";
        }
        Ag("review_feedback" + BM, BP);
    }
    BE.display.submitHelpfulVote = m;

    function AC(BN, BM, i, BO) {
        if (!A5[BN] || A5[BN] == "undefined") {
            var BP = document.getElementById("error_div" + BN);
            BP.innerHTML = AP(BN, BM, i, BO);
            document.getElementById("error_div" + BN).style.display = "block";
        } else {
            Ag("review_feedback" + BN, "You have already notified us of an error for this review.");
        }
    }
    BE.display.launchErrorDiv = AC;

    function Aj(i) {
        document.getElementById("error_div" + i).style.display = "none";
    }
    function Q(BM, i, BO) {
        var BQ = J("error_radio" + BM);
        var BS = document.getElementById("error_comments" + BM).value;
        BS = BS.substring(0, 256);
        var BN = A4(document.getElementById("error_contact_email" + BM).value);
        var BR = document.location.href;
        if (BR && typeof BR != "undefined") {
            var BP = BR.split("/", 4)[2];
            BS += "\n[" + BP + "]";
        }
        if (!/.+@.+/.test(BN)) {
            alert("Email Address is required when flagging a review");
        } else {
            if (!BQ) {
                alert("Please select the reason you are flagging this review");
            } else {
                AT(Ay("pr_js_controller_url", BO) + "?command=helpfulVote&reviewId=" + BM + "&merchantId=" + Ay("pr_merchant_id", BO) + "&voteType=" + BQ + "&errorComments=" + x(BS) + "&errorContactEmail=" + x(BN));
                Ag("review_feedback" + BM, "Thank you for notifying us of this error.");
                F[BM] = 1;
                A5[BM] = 1;
                Aj(BM);
            }
        }
    }
    BE.display.submitError = Q;

    function Aw(i) {
        Aj(i);
    }
    BE.display.cancelError = Aw;

    function y(BO, BN) {
        if (typeof BO == "function" && Au(BN)) {
            var BM = Ay("pr_page_id", BN);
            var i = Ao(BM);
            r(i, Ay("pr_locale", BN), function (BP) {
                if (BP && BP.reviews) {
                    BO(new l(BM, BP.reviews.review_count, 0, BG(BP.reviews.avg)));
                } else {
                    BO(new l(BM, 0, 0, 0));
                }
            }, BN);
        }
    }
    BE.display.prData = y;

    function o(i) {
        AI.push(i);
    }
    BE.display.registerCallback = o;

    function H() {
        return {
            "offsetY": document.body.scrollTop || document.documentElement.scrollTop,
            "viewportWidth": document.getElementsByTagName("body")[0].clientWidth
        };
    }
    function Ae(i) {
        e(i);
        var BM = document.getElementById("pr-modal-container-" + i);
        document.getElementsByTagName("body")[0].appendChild(BM);
        var BN = H();
        BM.style.left = ((BN.viewportWidth - BM.offsetWidth) / 2) + "px";
        BM.style.top = (BN.offsetY + 100) + "px";
        AX(BM, "pr-hidden");
    }
    function AZ(i) {
        M(document.getElementById("pr-modal-container-" + i), "pr-hidden");
    }
    BE.display.hideModal = AZ;

    function e(i) {
        var BM = document.getElementById("pr-modal-container-" + i);
        var BN = U(document, "div", "pr-modal-wrapper");
        BM.style.height = "422px";
        BM.style.width = "";
        BN[0].style.height = "380px";
    }
    function A9(BN, BP) {
        BK("pr-modal-" + BN, BP);
        var BM = document.getElementById("pr-modal-container-" + BN);
        var BO = U(document, "div", "pr-modal-wrapper")[0];
        var i = U(document, "div", "pr-review-faceoff-review-wrapper")[0];
        BM.style.width = (i.scrollWidth - 20) + "px";
        BM.style.height = (i.offsetHeight + 47) + "px";
        BO.style.width = "auto";
        BO.style.height = (i.offsetHeight + 5) + "px";
        BM.style.left = (i.offsetLeft + 10) + "px";
        BM.style.top = (i.offsetTop - 40) + "px";
        AX(BM, "pr-hidden");
    }
    BE.display.displayFaceoffModal = A9;

    function AR(BO, BN) {
        for (var BM = 0; BM < AI.length; BM++) {
            AI[BM](BO, BN);
        }
    }
    function O(BO) {
        var BM = {
            canonicalGroupSet: {},
            histogramDisplayGroupList: [],
            subratingsGroupList: [],
            otherGroupList: []
        };
        if (BO) {
            if (BO.g) {
                for (var BN = 0; BN < BO.g.length; BN++) {
                    var BP = BO.g[BN];
                    if (BP.k == "pros" || BP.k == "cons" || BP.k == "bestuses") {
                        BM.canonicalGroupSet[BP.k] = BP;
                    } else {
                        if (BP.a) {
                            BM.histogramDisplayGroupList.push(BP);
                        } else {
                            BM.otherGroupList.push(BP);
                        }
                    }
                }
            }
            BM.subratingGroupList = BO.ar || [];
        }
        return BM;
    }
    function Z(BP, BM) {
        var i = null;
        if (BP) {
            var BN = Ay("pr_badge_table", BM);
            for (var BO = 0; BO < BP.length; BO++) {
                i = BN[BP[BO]];
                if (i) {
                    break;
                }
            }
        }
        return i;
    }
    function C(i, BR, Bd, BW, Bb, Be, BN) {
        var BT = [];
        var Ba = AM(BN);
        var Bc = {
            describeyourself: "Reviewer Profile"
        };
        var BZ = O(Bd);
        var BS = BZ.canonicalGroupSet;
        var BX = BZ.histogramDisplayGroupList;
        var BO = BZ.subratingGroupList;
        var BP = BZ.otherGroupList;
        var BV = 0;
        for (AG = 0; AG < BR.length; AG++) {
            BV = (BR[AG] + BV);
        }
        BT.push('<div class="pr-snapshot"><a name="ReviewHeader"></a><div class="pr-snapshot-head"><div class="pr-snapshot-head-wrapper"><p class="pr-snapshot-title">');
        BT.push("HER REVIEW SUMMARY");
        BT.push('</p><a href="#" class="pr-snapshot-cobrand" onclick="POWERREVIEWS.common.showSmallPopup(\'');
        BT.push("http://www.powerreviews.com/legal/index_prx_en_US.html");
        BT.push("', 480, 430); return false;\">");
        BT.push("by PowerReviews Express");
        BT.push('</a></div></div><div class="pr-clear"></div><div class="pr-snapshot-body"><div class="pr-snapshot-body-wrapper">');
        if (i > 0) {
            BT.push('<div class="pr-snapshot-rating-wrapper">                                        <div class="pr-snapshot-rating"><div class="pr-stars ');
            BT.push(z[Bd.a].large);
            BT.push('" style="background-position: 0px ');
            BT.push(Bd.a * -46);
            BT.push('px;">&nbsp;</div><span class="pr-rating pr-rounded">');
            BT.push((Bd.d * 10) % 10 == 0 ? Bd.d + ".0" : Bd.d);
            BT.push('</span>                         <p class="pr-snapshot-average-based-on-text">');
            if (i == 1) {
                BT.push("(");
                BT.push("based on {0} review".replace("{0}", "1"));
                BT.push(")");
            } else {
                BT.push("(");
                BT.push("based on {0} reviews".replace("{0}", i));
                BT.push(")");
            }
            BT.push("</p>");
            if (BV > 0) {
                BT.push("<div id=\"pr-snapshot-histogram\"><a href=\"#\" id=\"pr-snapshot-histogram-lnk\" onclick=\"return false\" onmouseover=\"POWERREVIEWS.common.togglePopOut({'target':'pr-snapshot-histogram-container'},'show', this, event)\" onmouseout=\"POWERREVIEWS.common.togglePopOut({'link':'pr-snapshot-histogram-lnk','target':'pr-snapshot-histogram-container'},'hide', this, event)\"><img src=\"");
                BT.push(Ba);
                BT.push("/engine/images/icon_popout.gif\"/></a><div id=\"pr-snapshot-histogram-container\" class=\"pr-closed\" onmouseover=\"POWERREVIEWS.common.togglePopOut({'target':'pr-snapshot-histogram-container'},'show', this, event)\" onmouseout=\"POWERREVIEWS.common.togglePopOut({'link':'pr-snapshot-histogram-lnk','target':'pr-snapshot-histogram-container'},'hide', this, event)\"><p id=\"pr-snapshot-histogram-header\"><span>");
                BT.push("Ratings Distribution");
                BT.push("</span></p>");
                BT.push(I(BR, Bb, BN));
                BT.push(" </div></div>");
            }
            BT.push('</div><div class="pr-clear"></div>');
            if (Bd.b || Bd.b == 0) {
                BT.push('<div class="pr-snapshot-consensus"><p class="pr-snapshot-consensus-value pr-rounded">');
                BT.push(Math.round(100 * Bd.b));
                BT.push('%</p> <p class="pr-snapshot-consensus-text">');
                BT.push("of respondents would recommend this to a friend.");
                BT.push("</p></div>");
            }
            BT.push("</div>                ");
            if (BS.pros || BS.cons || BS.bestuses || BX.length || BO.length || BP.length) {
                BT.push('<div class="pr-review-points"><div class="pr-review-points-attr-wrapper"><div class="pr-attribute-group pr-rounded pr-attribute-pros');
                BT.push(BS.pros ? "" : " pr-empty");
                BT.push('"><div class="pr-attribute-key"><p class="pr-attribute-label-pros">');
                BT.push("Pros");
                BT.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list pr-snapshot-attribute-value-list">');
                var BQ = BS.pros;
                if (BQ) {
                    for (var BU = 0; BU < BQ.v.length; BU++) {
                        var BY = BQ.v[BU];
                        BT.push("<li>");
                        BT.push(BY.n);
                        BT.push("&nbsp;(");
                        BT.push(BY.c);
                        BT.push(")</li>");
                    }
                }
                BT.push('</ul></div></div><div class="pr-attribute-group pr-rounded pr-attribute-cons');
                BT.push(BS.cons ? "" : " pr-empty");
                BT.push('"><div class="pr-attribute-key"><p class="pr-attribute-label-cons">');
                BT.push("Cons");
                BT.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list pr-snapshot-attribute-value-list">');
                var BQ = BS.cons;
                if (BQ) {
                    for (var BU = 0; BU < BQ.v.length; BU++) {
                        var BY = BQ.v[BU];
                        BT.push("<li>");
                        BT.push(BY.n);
                        BT.push("&nbsp;(");
                        BT.push(BY.c);
                        BT.push(")</li>");
                    }
                }
                BT.push('</ul></div></div><div class="pr-attribute-group pr-rounded pr-attribute-bestuses');
                BT.push(BS.bestuses ? "" : " pr-empty");
                BT.push(' pr-last"><div class="pr-attribute-key"><p class="pr-attribute-label-bestuses">');
                BT.push("Best Uses");
                BT.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list pr-snapshot-attribute-value-list">');
                var BQ = BS.bestuses;
                if (BQ) {
                    for (var BU = 0; BU < BQ.v.length; BU++) {
                        var BY = BQ.v[BU];
                        BT.push("<li>");
                        BT.push(BY.n);
                        BT.push("&nbsp;(");
                        BT.push(BY.c);
                        BT.push(")</li>");
                    }
                }
                BT.push('</ul></div></div><div class="pr-clear"></div></div></div>');
                if (BX.length) {
                    BT.push(Ap(BX, Bb, BN));
                }
                if (BO.length) {
                    BT.push(Ah(BO, Bb, BN));
                }
                BT.push('<div class="pr-other-attributes"><ul class="pr-other-attributes-list">');
                for (var Bf = 0; Bf < BP.length; Bf++) {
                    var BQ = BP[Bf];
                    var BM = [];
                    for (var BU = 0; BU < BQ.v.length; BU++) {
                        var BY = BQ.v[BU];
                        BM.push(BY.n + "&nbsp;(" + BY.c + ")");
                    }
                    BT.push('<li class="pr-other-attributes-group pr-other-attribute-');
                    BT.push(BQ.k);
                    BT.push('"><ul><li class="pr-other-attribute-label">');
                    BT.push(Bc[BQ.k] || BQ.n);
                    BT.push(':</li><li class="pr-other-attribute-value">');
                    BT.push(BM.join(", "));
                    BT.push("</li></ul></li>");
                }
                BT.push('<li class="pr-clear"></li></ul></div>');
            }
            BT.push('<div id="pr-snapshot-footer-');
            BT.push(BW);
            BT.push('" class="pr-snapshot-footer" style="display:none"><a href="#" id="write-review-');
            BT.push(BW);
            
			/* here modified to show in a popup window */
            BT.push('" class="pr-write-review-link"');
			BT.push(' onclick="POWERREVIEWS.common.showSmallPopup(\'');
			BT.push("http://apartstyle.uat.venda.com/page/reviewpopup?pr_page_id=");
			BT.push(BW);
			BT.push("', 680, 520); return false;\">");
			BT.push('"<div class="pr-snapshot-write-review"><span>');

            BT.push("Write a Review");
            BT.push("</span></div></a></div>");
        } else {
            BT.push('<div id="pr-snapshot-footer-');
            BT.push(BW);
            BT.push('" class="pr-snapshot-footer" style="display:none"><p class="pr-snapshot-no-ratings">');
            BT.push("Not yet rated. Be the first to");
            BT.push(' <a href="#" id="write-review-');
            BT.push(BW);
			
			/* here modified to show in a popup window */
            BT.push('" class="pr-write-review-link"');
			BT.push(' onclick="POWERREVIEWS.common.showSmallPopup(\'');
			BT.push("http://apartstyle.uat.venda.com/page/reviewpopup?pr_page_id=");
			BT.push(BW);
			BT.push("', 680, 520); return false;\">");
            	
			BT.push("Write a Review");
            BT.push("</a></p></div>");
        }
        BT.push("</div></div>");
        if (Bd && Bd.fo && false) {
            BT.push('<div class="pr-review-faceoff"><div class="pr-review-faceoff-review-wrapper"><div id="pr-review-faceoff-positive-');
            BT.push(BW);
            BT.push('" class="pr-review-faceoff-review pr-review-faceoff-review-positive"><div class="pr-review-faceoff-container"><p class="pr-review-faceoff-label">');
            BT.push("Most Liked Positive Review");
            BT.push('</p><div class="pr-review-faceoff-review-content"><div class="pr-stars ');
            BT.push(z[Bd.fo.f2.r.r].large);
            BT.push('" style="background-position: 0px ');
            BT.push(Bd.fo.f2.r.r * -46);
            BT.push('px;">&nbsp;</div><p class="pr-review-faceoff-title">');
            BT.push(Bd.fo.f2.r.h);
            BT.push('</p><p class="pr-review-faceoff-review">');
            if (Bd.fo.f2.cf) {
                BT.push(p(Bd.fo.f2.r.p, 0, Bd.fo.f2.cf, true));
                BT.push('<a class="pr-review-faceoff-readcomplete" href="#" onclick="POWERREVIEWS.display.displayFaceoffModal(\'');
                BT.push(BW);
                BT.push("','pr-review-faceoff-positive-");
                BT.push(BW);
                BT.push("'); return false\">");
                BT.push("Read complete review");
                BT.push("</a>");
            } else {
                BT.push(Bd.fo.f2.r.p);
            }
            BT.push('</p><p class="pr-review-faceoff-review-full">');
            BT.push(Bd.fo.f2.r.p);
            BT.push('</p></div></div></div><div class="pr-review-faceoff-img"><p class="pr-review-faceoff-img-txt">');
            BT.push("VS");
            BT.push('</p></div><div id="pr-review-faceoff-negative-');
            BT.push(BW);
            BT.push('" class="pr-review-faceoff-review pr-review-faceoff-review-negative"><div class="pr-review-faceoff-container"><p class="pr-review-faceoff-label">');
            BT.push("Most Liked Negative Review");
            BT.push('</p><div class="pr-review-faceoff-review-content"><div class="pr-stars ');
            BT.push(z[Bd.fo.f1.r.r].large);
            BT.push('" style="background-position: 0px ');
            BT.push(Bd.fo.f1.r.r * -46);
            BT.push('px;">&nbsp;</div><p class="pr-review-faceoff-title">');
            BT.push(Bd.fo.f1.r.h);
            BT.push('</p><p class="pr-review-faceoff-review">');
            if (Bd.fo.f1.cf) {
                BT.push(p(Bd.fo.f1.r.p, 0, Bd.fo.f1.cf, true));
                BT.push('<a class="pr-review-faceoff-readcomplete" href="#" onclick="POWERREVIEWS.display.displayFaceoffModal(\'');
                BT.push(BW);
                BT.push("','pr-review-faceoff-negative-");
                BT.push(BW);
                BT.push("'); return false\">");
                BT.push("Read complete review");
                BT.push("</a>");
            } else {
                BT.push(Bd.fo.f1.r.p);
            }
            BT.push('</p><p class="pr-review-faceoff-review-full">');
            BT.push(Bd.fo.f1.r.p);
            BT.push('</p></div></div></div><div class="pr-clear"></div></div></div>');
        }
        BT.push('</div><div id="pr-modal-container-');
        BT.push(BW);
        BT.push('" class="pr-modal-container pr-hidden"><div class="pr-modal-toolbar"><a class="pr-modal-container-close" href="#" onclick="POWERREVIEWS.display.hideModal(\'');
        BT.push(BW);
        BT.push('\'); return false;"><span>close</span></a><div class="pr-clear"></div></div><div class="pr-modal-wrapper"><div id="pr-modal-');
        BT.push(BW);
        BT.push('" class="pr-modal-content"></div></div></div>');
        if (i > 0) {
            BT.push('<div class="pr-review-sort"><div class="pr-review-sort-wrapper">');
            if (i == 1) {
                BT.push('<p class="pr-review-count">');
                BT.push("Reviewed by 1 customer");
                BT.push("</p>");
            } else {
                if (i > 1) {
                    BT.push('<p class="pr-review-count">');
                    BT.push("Reviewed by {0} customers".replace("{0}", i));
                    BT.push('</p><div class="pr-review-sort-box"><p class="pr-review-sort-by">');
                    BT.push("Sort by");
                    BT.push("</p><form class='jqTransform'><select onchange=\"POWERREVIEWS.display.startSort(this, '");
                    BT.push(BW);
                    BT.push("', '");
                    BT.push(Bb);
                    BT.push("', '");
                    BT.push(Be);
                    BT.push("', POWERREVIEWS.common.getOptions('");
                    BT.push(Be);
                    BT.push('\'));"><option value="date_new">');
                    BT.push("Newest");
                    BT.push('</option><option value="date_old">');
                    BT.push("Oldest");
                    BT.push('</option><option value="rating_high">');
                    BT.push("Highest rating");
                    BT.push('</option><option value="rating_low">');
                    BT.push("Lowest rating");
                    BT.push('</option><option value="helpful_high" selected="true">');
                    BT.push("Most helpful");
                    BT.push('</option><option value="helpful_low">');
                    BT.push("Least helpful");
                    BT.push("</option></select></form></div>");
                }
            }
            BT.push('<div class="pr-clear"></div></div></div>');
        }
        BT.push("<!-- ilkj -->");
        return BT.join("");
		if($("form.jqTransform").length>0)
			$("form.jqTransform").jqTransform();
    }
    BE.display.processRollupTemplate = C;

    function k(Bi, B7, Bf, Bl, Bk, BP, BS, Bn, BM, B0, Bo, Bj) {
        var Ba = [];
        var Bd = (BS - 1) * BP;
        var BQ = Bd + BP - 1;
        if (BQ > Bk - 1) {
            BQ = Bk - 1;
        }
        var B8 = Ay("pr_back_to_top_link", Bj);
        var Bz = AM(Bj);
        var B6 = Ac(Ay("pr_badge_definitions_url", Bj), "~~~LOCALE~~~", Bf);
        var Bc = ["Got it? Rate it.", "Not good", "Needs that special something", "Average, ordinary", "That's good stuff", "Perfect. It doesn't get any better"];
        var Bm = {
            "Yes": "Yes, I would recommend this to a friend",
            "No": "No, I would not recommend this to a friend"
        };
        Ba.push('<div class="pr-contents-wrapper">');
        if (!B0) {
            Ba.push('<div class="pr-pagination-top"><p class="pr-page-count">');
            if (Bd == BQ) {
                Ba.push("Displaying review");
                Ba.push(" <strong>");
                Ba.push((Bd + 1));
                Ba.push("</strong>");
            } else {
                Ba.push("Displaying reviews");
                Ba.push(" <strong>");
                Ba.push((Bd + 1) + "-" + (BQ + 1));
                Ba.push("</strong>");
            }
            Ba.push('</p><p class="pr-nav-back-to-top"><a href="');
            Ba.push(B8);
            Ba.push('">');
            Ba.push("Back to top");
            Ba.push("</a></p>");
            if (Bk > BP) {
                Ba.push('<p class="pr-page-nav"><span class="pr-page-prev">');
                if (Bd > 0) {
                    Ba.push('<a onclick="POWERREVIEWS.display.getReviewsFromMeta(');
                    Ba.push(BS - 1);
                    Ba.push(", '");
                    Ba.push(B7);
                    Ba.push("', '");
                    Ba.push(Bf);
                    Ba.push("', '");
                    Ba.push(Bo);
                    Ba.push("', POWERREVIEWS.common.getOptions('");
                    Ba.push(Bo);
                    Ba.push('\')); return false;" href="');
                    Ba.push(Bn.replace("~~~REVIEW_PAGE~~~", BS - 1));
                    Ba.push('">&laquo; ');
                    Ba.push("Previous");
                    Ba.push("</a>");
                } else {
                    Ba.push("Previous");
                }
                Ba.push('</span><span class="pr-divider"> | </span><span class="pr-page-next">');
                if (BQ < Bk - 1) {
                    Ba.push('<a onclick="POWERREVIEWS.display.getReviewsFromMeta(');
                    Ba.push(BS + 1);
                    Ba.push(", '");
                    Ba.push(B7);
                    Ba.push("', '");
                    Ba.push(Bf);
                    Ba.push("', '");
                    Ba.push(Bo);
                    Ba.push("', POWERREVIEWS.common.getOptions('");
                    Ba.push(Bo);
                    Ba.push('\')); return false;" href="');
                    Ba.push(BM.replace("~~~REVIEW_PAGE~~~", BS + 1));
                    Ba.push('">');
                    Ba.push("Next");
                    Ba.push(" &raquo;</a>");
                } else {
                    Ba.push("Next");
                }
                Ba.push("</span></p>");
            }
            Ba.push('<div class="pr-clear"></div></div>');
        }
        for (var Bp = 0; Bp < Bi.length; Bp++) {
            var BT = Bi[Bp];
            var B1 = {};
            var Bs = false;
            if (BT.g) {
                for (var B4 = 0; B4 < BT.g.length; B4++) {
                    var BY = BT.g[B4].k;
                    B1[BY] = true;
                    Bs = Bs || (BY != "pros" && BY != "cons" && BY != "bestuses" && BY != "describeyourself");
                }
            }
            Ba.push('<div class="pr-review-wrap"><div class="pr-review-rating-wrapper"><div class="pr-review-author-date pr-rounded">');
            Ba.push(BT.d);
            Ba.push("</div>");
            if (BT.t > 0) {
                Ba.push('<div class="pr-review-most-helpful"><p>(<span>');
                Ba.push("{0} of {1}".replace("{0}", BT.v).replace("{1}", BT.t));
                Ba.push("</span> ");
                Ba.push("customers found this review helpful");
                Ba.push(")</p></div>");
            }
            Ba.push('<div class="pr-review-rating"><div class="pr-stars pr-stars-small ');
            Ba.push(z[BT.r].small);
            Ba.push('" style="background-position: 0px ');
            Ba.push(BT.r * -36);
            Ba.push('px;" title="');
            Ba.push(Bc[BT.r]);
            Ba.push('">&nbsp;</div><span class="pr-rating pr-rounded">');
            Ba.push(BT.r);
            Ba.push('.0</span><p class="pr-review-rating-headline">');
            Ba.push(BT.h);
            Ba.push("</p></div></div>");
            if (!B0) {
                Ba.push('                  <div class="pr-review-author"><div class="pr-review-author-info-wrapper">');
                if (BT.fu && false) {
                    if (BT.pi) {
                        Ba.push("<p>");
                        var Bh = Ay("pr_see_all_reviews_url", Bj).replace("~~~MERCHANT_USER_ID~~~", BT.mu).replace("~~~NICKNAME~~~", BT.n);
                        if (Bh) {
                            Ba.push('<a class="pr-review-author-profile-link" href="');
                            Ba.push(Bh);
                            Ba.push('"><img src="https://graph.facebook.com/');
                            Ba.push(BT.fu);
                            Ba.push('/picture" /></a>');
                        } else {
                            Ba.push('<a class="pr-review-author-profile-link" href="#" onclick="POWERREVIEWS.display.showProfileWithHash(\'');
                            Ba.push(BT.pi);
                            Ba.push("', '");
                            Ba.push(B7);
                            Ba.push("', {'nickname':'");
                            Ba.push(BB.encode("" + BT.n));
                            Ba.push("', 'location':'");
                            Ba.push(BB.encode("" + BT.w));
                            Ba.push("', 'badges':[");
                            Ba.push((BT.cb || []).toString());
                            Ba.push("]}, '");
                            Ba.push(Bf);
                            Ba.push("', POWERREVIEWS.common.getOptions('");
                            Ba.push(Bo);
                            Ba.push('\')); return false;"><img src="https://graph.facebook.com/');
                            Ba.push(BT.fu);
                            Ba.push('/picture" /></a>');
                        }
                        Ba.push("</p>");
                    } else {
                        var BX = u({
                            "locale": Bf,
                            "sharedReviewId": BT.id
                        }, Bj);
                        Ba.push('<a href="#" onclick="POWERREVIEWS.common.showSmallPopup(\'');
                        Ba.push(BX);
                        Ba.push("', 425, 600, {'location':'no'}); return false;\"><img src=\"https://graph.facebook.com/");
                        Ba.push(BT.fu);
                        Ba.push('/picture" /></a>');
                    }
                }
                Ba.push('<p class="pr-review-author-name">');
                Ba.push("By");
                Ba.push("&nbsp;<span>");
                Ba.push(BT.n);
                Ba.push('</span></p><p class="pr-review-author-location">');
                Ba.push("from");
                Ba.push(" <span>");
                Ba.push(BT.w);
                Ba.push("</span></p>");
                if (BT.g) {
                    for (var BN = 0; BN < BT.g.length; BN++) {
                        var Bb = BT.g[BN];
                        if (Bb.k == "describeyourself") {
                            Ba.push('<div class="pr-review-author-affinity-wrapper"><p class="pr-review-author-affinities">');
                            Ba.push("About Me" || Bb.n);
                            Ba.push(" <span>");
                            Ba.push(Bb.v.join(", "));
                            Ba.push("</span></p></div>");
                        }
                    }
                }
                if (BT.pi) {
                    Ba.push("<p>");
                    var Bh = Ay("pr_see_all_reviews_url", Bj).replace("~~~MERCHANT_USER_ID~~~", BT.mu).replace("~~~NICKNAME~~~", BT.n);
                    if (Bh) {
                        Ba.push('<a class="pr-review-author-profile-link" href="');
                        Ba.push(Bh);
                        Ba.push('">');
                        Ba.push("See all my reviews");
                        Ba.push("</a>");
                    } else {
                        Ba.push('<a class="pr-review-author-profile-link" href="#" onclick="POWERREVIEWS.display.showProfileWithHash(\'');
                        Ba.push(BT.pi);
                        Ba.push("', '");
                        Ba.push(B7);
                        Ba.push("', {'nickname':'");
                        Ba.push(BB.encode("" + BT.n));
                        Ba.push("', 'location':'");
                        Ba.push(BB.encode("" + BT.w));
                        Ba.push("', 'badges':[");
                        Ba.push((BT.cb || []).toString());
                        Ba.push("]}, '");
                        Ba.push(Bf);
                        Ba.push("', POWERREVIEWS.common.getOptions('");
                        Ba.push(Bo);
                        Ba.push("')); return false;\">");
                        Ba.push("See all my reviews");
                        Ba.push("</a>");
                    }
                    Ba.push("</p>");
                }
                Ba.push("                        </div>");
                var Bt = Z(BT.cb);
                var B2 = (BT.o && BT.o == "e");
                var BV = BT.m;
                var Bu = (BT.c && BT.c == "v");
                if (B2 || Bt || BV || Bu) {
                    Ba.push('<div class="pr-review-author-badge-wrapper">');
                    if (B2) {
                        Ba.push('<div class="pr-review-author-verified-buyer-wrapper pr-review-author-verified-buyer-');
                        Ba.push(Bf);
                        Ba.push('"><a href="');
                        Ba.push(B6);
                        Ba.push('"><img class="pr-badge pr-verified-buyer" src="');
                        Ba.push(Bz);
                        Ba.push("/engine/images/badge_vp_");
                        Ba.push(Bf);
                        Ba.push(".gif");
                        Ba.push('" alt="');
                        Ba.push("Verified Buyer");
                        Ba.push('" title="');
                        Ba.push("Verified Buyer");
                        Ba.push('" /></a></div>');
                    }
                    if (Bt) {
                        Ba.push(BH(Bt, Bf, Bj));
                    } else {
                        if (BV) {
                            Ba.push('<div class="pr-review-author-member-badge-wrapper pr-review-author-member-badge-wrapper-');
                            Ba.push(Bf);
                            Ba.push('"><img class="pr-badge pr-site-member" src="');
                            Ba.push(Bz);
                            Ba.push('/engine/images/pixel.gif" alt="');
                            Ba.push("Site Member");
                            Ba.push('" title="');
                            Ba.push("Site Member");
                            Ba.push('" /></div>');
                        }
                    }
                    if (Bu && !false && !B2 && !Bt && !BV) {
                        Ba.push('<div class="pr-review-author-verified pr-review-author-verified-');
                        Ba.push(Bf);
                        Ba.push('"><a href="');
                        Ba.push(B6);
                        Ba.push('"><img class="pr-badge pr-verified" src="');
                        Ba.push(Bz);
                        Ba.push("/engine/images/badge_vr_");
                        Ba.push(Bf);
                        Ba.push(".gif");
                        Ba.push('" alt="');
                        Ba.push("Verified Reviewer");
                        Ba.push('" title="');
                        Ba.push("Verified Reviewer");
                        Ba.push('" /></a></div>');
                    }
                    Ba.push("</div>");
                }
                Ba.push("</div>");
            } else {
                if (B0 && BT.pr) {
                    Ba.push('<div class="pr-profile-review-product-info">');
                    if (BT.pr.m && window && window.location && window.location.protocol == "http:") {
                        if (BT.pr.u) {
                            Ba.push('<a href="');
                            Ba.push(BT.pr.u);
                            Ba.push('"><img src="http://images.buzzillions.com');
                            Ba.push(BT.pr.m);
                            Ba.push('" /></a>');
                        } else {
                            Ba.push('<img src="http://images.buzzillions.com');
                            Ba.push(BT.pr.m);
                            Ba.push('" />');
                        }
                    }
                    if (BT.pr.n) {
                        if (BT.pr.u) {
                            Ba.push('<a href="');
                            Ba.push(BT.pr.u);
                            Ba.push('">');
                            Ba.push(BT.pr.n);
                            Ba.push("</a>");
                        } else {
                            Ba.push(BT.pr.n);
                        }
                    }
                    Ba.push("</div>");
                }
            }
            Ba.push('<div class="pr-review-main-wrapper">');
            if (BT.g) {
                Ba.push('<div class="pr-review-points"><div class="pr-review-points-attr-wrapper"><div class="pr-attribute-group pr-rounded pr-attribute-pros');
                Ba.push(B1.pros ? "" : " pr-empty");
                Ba.push('"><div class="pr-attribute-key"><p class="pr-attribute-label-pros">');
                Ba.push("Pros");
                Ba.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list">');
                for (var BN = 0; BN < BT.g.length; BN++) {
                    var Bb = BT.g[BN];
                    if (Bb.k == "pros") {
                        for (var Bx = 0; Bx < Bb.v.length; Bx++) {
                            Ba.push("<li>");
                            Ba.push(Bb.v[Bx]);
                            Ba.push("</li>");
                        }
                        break;
                    }
                }
                Ba.push('</ul></div></div><div class="pr-attribute-group pr-rounded pr-attribute-cons');
                Ba.push(B1.cons ? "" : " pr-empty");
                Ba.push('"><div class="pr-attribute-key"><p class="pr-attribute-label-cons">');
                Ba.push("Cons");
                Ba.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list">');
                for (var BN = 0; BN < BT.g.length; BN++) {
                    var Bb = BT.g[BN];
                    if (Bb.k == "cons") {
                        for (var Bx = 0; Bx < Bb.v.length; Bx++) {
                            Ba.push("<li>");
                            Ba.push(Bb.v[Bx]);
                            Ba.push("</li>");
                        }
                        break;
                    }
                }
                Ba.push('</ul></div></div><div class="pr-attribute-group pr-rounded pr-attribute-bestuses');
                Ba.push(B1.bestuses ? "" : " pr-empty");
                Ba.push(' pr-last"><div class="pr-attribute-key"><p class="pr-attribute-label-bestuses">');
                Ba.push("Best Uses");
                Ba.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list">');
                for (var BN = 0; BN < BT.g.length; BN++) {
                    var Bb = BT.g[BN];
                    if (Bb.k == "bestuses") {
                        for (var Bx = 0; Bx < Bb.v.length; Bx++) {
                            Ba.push("<li>");
                            Ba.push(Bb.v[Bx]);
                            Ba.push("</li>");
                        }
                        break;
                    }
                }
                Ba.push('</ul></div></div><div class="pr-clear"></div></div></div>');
            }
            Ba.push('<div class="pr-review-text">');
            var By = Bl || (B0 && BT.pr && BT.pr.n);
            if (By) {
                Ba.push('<p class="pr-comments-header">');
                Ba.push("Comments about <em>{0}</em>:".replace("{0}", By));
                Ba.push("</p>");
            }
            Ba.push('<p class="pr-comments">');
            Ba.push(BD(BT.p));
            Ba.push("</p></div>");
            if (BT.z) {
                Ba.push('<div class="pr-review-text"><p class="pr-comments-header">');
                Ba.push("Service and delivery comments:");
                Ba.push('</p><p class="pr-comments">');
                Ba.push(BD(BT.z));
                Ba.push("</p></div>");
            }
            if (Bs || BT.rp || BT.sp || BT.tb || BT.ar) {
                Ba.push('<div class="pr-other-attributes">');
                if (BT.g) {
                    Ba.push('<div class="pr-other-attribute-tag-group"><ul class="pr-other-attributes-list">');
                    for (var BN = 0; BN < BT.g.length; BN++) {
                        var Bb = BT.g[BN];
                        if (Bb.k != "pros" && Bb.k != "cons" && Bb.k != "bestuses" && Bb.k != "describeyourself") {
                            Ba.push('<li class="pr-other-attribute-label">');
                            Ba.push(Bb.n);
                            Ba.push(':</li><li class="pr-other-attribute-value">');
                            Ba.push(Bb.v.join(", "));
                            Ba.push("</li>");
                        }
                    }
                    Ba.push("</ul></div>");
                }
                if (BT.tb) {
                    Ba.push('<div class="pr-other-attribute-text-group"><ul class="pr-other-attributes-list">');
                    for (var BN = 0; BN < BT.tb.length; BN++) {
                        var Bb = BT.tb[BN];
                        Ba.push('<li class="pr-other-attribute-label pr-merchant-question-label">');
                        Ba.push(Bb.n);
                        Ba.push(':</li><li class="pr-other-attribute-value pr-merchant-question-value">');
                        Ba.push(Bb.v);
                        Ba.push("</li>");
                    }
                    Ba.push("</ul></div>");
                }
                if (BT.ar) {
                    Ba.push('<div class="pr-other-attribute-additional-ratings"><ul class="pr-other-attributes-list">');
                    for (var BN = 0; BN < BT.ar.length; BN++) {
                        var Bb = BT.ar[BN];
                        Ba.push('<li class="pr-other-attribute-label">');
                        Ba.push(Bb.n);
                        Ba.push(':</li><li class="pr-other-attribute-value"><div class="pr-stars pr-stars-small pr-stars-small-subrating ');
                        Ba.push(z[Bb.v].small);
                        Ba.push('" style="background-position: 0px ');
                        Ba.push(Bb.v * -36);
                        Ba.push('px;" title="');
                        Ba.push(Bc[Bb.v]);
                        Ba.push('">&nbsp;</div></li>');
                    }
                    Ba.push("</ul></div>");
                }
                if (BT.rp) {
                    Ba.push('<div class="pr-other-attribute-recommended-products"><ul class="pr-other-attributes-list">');
                    var Be = [];
                    for (var B3 = 0; B3 < BT.rp.length; B3++) {
                        var Bq = BT.rp[B3];
                        Be.push(Bq.u ? '<a href="' + Bq.u + '">' + Bq.n + "</a>" : Bq.n);
                    }
                    Ba.push('<li class="pr-other-attribute-label">');
                    Ba.push("Recommended");
                    Ba.push(':</li><li class="pr-other-attribute-value">');
                    Ba.push(Be.join(", "));
                    Ba.push("</li></ul></div>");
                }
                if (BT.sp) {
                    Ba.push('<div class="pr-other-attribute-similar-products"><ul class="pr-other-attributes-list">');
                    var Bg = [];
                    for (var B5 = 0; B5 < BT.sp.length; B5++) {
                        var BU = BT.sp[B5];
                        Bg.push(BU.u ? '<a href="' + BU.u + '">' + BU.n + "</a>" : BU.n);
                    }
                    Ba.push('<li class="pr-other-attribute-label">');
                    Ba.push("Similar");
                    Ba.push(':</li><li class="pr-other-attribute-value">');
                    Ba.push(Bg.join(", "));
                    Ba.push("</li></ul></div>");
                }
                Ba.push('<div class="pr-clear"></div></div>');
            }
            Ba.push('<div class="pr-review-footer">');
            if (BT.b) {
                var BO;
                if (BT.b.v) {
                    BO = BT.b.v;
                } else {
                    BO = Bm[BT.b.k];
                }
                Ba.push('<div class="pr-review-bottom-line-wrapper"><p><span class="pr-review-bottom-line">');
                Ba.push("Bottom Line");
                Ba.push("</span> <span></span>");
                Ba.push(BO);
                Ba.push("</p></div>");
            }
            if (BT.i) {
                Ba.push('<div class="pr-customer-media">');
                for (var Bw = 0; Bw < BT.i.r.length; Bw++) {
                    var BZ = BT.i.r[Bw];
                    Ba.push('<div class="pr-customer-media-wrapper"><p class="pr-customer-media-user">');
                    if (BT.i.t == "i") {
                        Ba.push("Images shared by");
                        Ba.push(" <span>");
                        Ba.push(BT.n);
                        Ba.push("</span>");
                    } else {
                        if (BT.i.t == "v") {
                            Ba.push("Images shared by");
                            Ba.push(" <span>");
                            Ba.push(BT.n);
                            Ba.push("</span>");
                        } else {
                            Ba.push("Images shared by");
                            Ba.push(" <span>");
                            Ba.push(BT.n);
                            Ba.push("</span>");
                        }
                    }
                    Ba.push('</p><div class="pr-pic pr-rounded"><p class="pr-caption">');
                    Ba.push(BZ.c);
                    Ba.push('</p><div class="pr-pic-content"><div class="wrap1"><div class="wrap2">');
                    if (!BZ.v) {
                        if (BZ.s) {
                            Ba.push('<a href="#" onclick="POWERREVIEWS.common.showImagePopup(\'');
                            Ba.push(BZ.s.u);
                            Ba.push("', ");
                            Ba.push(BZ.s.w);
                            Ba.push(", ");
                            Ba.push(BZ.s.h);
                            Ba.push(", POWERREVIEWS.common.getOptions('");
                            Ba.push(Bo);
                            Ba.push('\')); return false;"><img src="');
                            Ba.push(Bz);
                            Ba.push("/content");
                            Ba.push(BZ.h.u);
                            Ba.push('" alt="');
                            Ba.push("Image Thumbnail");
                            Ba.push('" width="');
                            Ba.push(BZ.h.w);
                            Ba.push('" height="');
                            Ba.push(BZ.h.h);
                            Ba.push('" /></a>');
                        } else {
                            Ba.push('<img src="');
                            Ba.push(Bz);
                            Ba.push("/content");
                            Ba.push(BZ.h.u);
                            Ba.push('" alt="');
                            Ba.push("Image Thumbnail");
                            Ba.push('" width="');
                            Ba.push(BZ.h.w);
                            Ba.push('" height="');
                            Ba.push(BZ.h.h);
                            Ba.push('" />');
                        }
                    } else {
                        Ba.push('<a href="#" onclick="POWERREVIEWS.common.showVideoPopup(\'');
                        Ba.push(BZ.v);
                        Ba.push("', POWERREVIEWS.common.getOptions('");
                        Ba.push(Bo);
                        Ba.push('\')); return false;"><img src="');
                        Ba.push(BZ.h.u);
                        Ba.push('" alt="');
                        Ba.push("Video Thumbnail");
                        Ba.push('" width="75" height="50" onerror="this.src=\'http://powerreviews.s3.amazonaws.com/videos/youtube_coming_soon.jpg\'"/></a>');
                    }
                    Ba.push("</div></div></div>");
                    if (BZ.g) {
                        Ba.push('<p class="pr-pic-tags"><span class="pr-tag-label">');
                        Ba.push("Tags:");
                        Ba.push("</span> ");
                        Ba.push(BZ.g.join(", "));
                        Ba.push("</p>");
                    }
                    Ba.push("</div></div>");
                }
                Ba.push('<div class="pr-clear"></div></div>');
            }
            if (BT.y) {
                Ba.push('<div class="pr-merchant-comments">');
                for (var Br = 0; Br < BT.y.length; Br++) {
                    Ba.push('<p class="pr-merchant-comments-text"><span>');
                    Ba.push("Merchant response: ".replace("{0}", At(Bj).name));
                    Ba.push("</span>");
                    Ba.push(BD(BT.y[Br]));
                    Ba.push("</p>");
                }
                Ba.push("</div>");
            }
            if (BT.at) {
                var BR = Ay("pr_attribution_table", Bj);
                var Bv = BR[BT.at];
                if (Bv) {
                    if (Bv.originating_merchant_url && Bv.image_uri) {
                        if (Bv.attribution_text) {
                            Ba.push('<div class="pr-review-attribution">');
                            if (Bv.attribution_text) {
                                Ba.push('<div class="pr-review-attribution-text"><p>');
                                Ba.push(Bv.attribution_text);
                                Ba.push("</p></div>");
                            }
                            Ba.push('<div class="pr-review-attribution-img"><p class="pr-review-attribute-imgLabel">');
                            Ba.push("REVIEWED AT");
                            Ba.push('</p><a target="_blank" href="');
                            Ba.push(Bv.originating_merchant_url);
                            Ba.push('"><img src="');
                            Ba.push(Bz);
                            Ba.push("/engine/images/");
                            Ba.push(Bv.image_uri);
                            Ba.push('"/></a></div><div class="pr-clear"></div></div>');
                        } else {
                            Ba.push('<div class="pr-review-attribution-img"><p class="pr-review-attribute-imgLabel">');
                            Ba.push("REVIEWED AT");
                            Ba.push('</p><a target="_blank" href="');
                            Ba.push(Bv.originating_merchant_url);
                            Ba.push('"><img src="');
                            Ba.push(Bz);
                            Ba.push("/engine/images/");
                            Ba.push(Bv.image_uri);
                            Ba.push('"/></a></div>');
                        }
                    }
                }
            }
            if (BT.t > 0) {
                Ba.push('<div class="pr-review-most-helpful-bottom"><p>(<span>');
                Ba.push("{0} of {1}".replace("{0}", BT.v).replace("{1}", BT.t));
                Ba.push("</span> ");
                Ba.push("customers found this review helpful");
                Ba.push(")</p></div>");
            }
            if (!B0) {
                Ba.push('<div class="pr-review-tools"><p class="pr-review-helpful-text">');
                Ba.push("Was this review helpful?");
                Ba.push('&nbsp;<a class="pr-review-helpful-text-link" href="#" onclick="POWERREVIEWS.display.submitHelpfulVote(\'');
                Ba.push(BT.id);
                Ba.push("', 'helpful', '");
                Ba.push(Bf);
                Ba.push("', POWERREVIEWS.common.getOptions('");
                Ba.push(Bo);
                Ba.push("')); return false;\">");
                Ba.push("Yes");
                Ba.push('</a>&nbsp;/&nbsp;<a class="pr-review-helpful-text-link" href="#" onclick="POWERREVIEWS.display.submitHelpfulVote(\'');
                Ba.push(BT.id);
                Ba.push("', 'unhelpful', '");
                Ba.push(Bf);
                Ba.push("', POWERREVIEWS.common.getOptions('");
                Ba.push(Bo);
                Ba.push("')); return false;\">");
                Ba.push("No");
                Ba.push('</a></p><p class="pr-review-report-issue"><span class="pr-review-report-issue-hyphen">&nbsp;-&nbsp;</span>');
                Ba.push("You may also");
                Ba.push(' <a href="#" class="pr-review-helpful-text-link" onclick="POWERREVIEWS.display.launchErrorDiv(\'');
                Ba.push(BT.id);
                Ba.push("', '");
                Ba.push(Bf);
                Ba.push("', '");
                Ba.push(Bo);
                Ba.push("', POWERREVIEWS.common.getOptions('");
                Ba.push(Bo);
                Ba.push("')); return false;\">");
                Ba.push("flag this review");
                Ba.push('</a></p><div class="pr-error" id="error_div');
                Ba.push(BT.id);
                Ba.push('" style=""></div><p class="pr-review-helpful-response" id="review_feedback');
                Ba.push(BT.id);
                Ba.push('"></p></div>');
            }
            Ba.push('</div></div><div class="pr-clear"></div>');
            if (false) {
                var BW = s({
                    "locale": Bf,
                    "sharedReviewId": BT.id
                }, Bj);
                Ba.push('<p class="pr-fb-reviewComment"><span><a href="#" onclick="POWERREVIEWS.common.showSmallPopup(\'');
                Ba.push(BW);
                Ba.push("', 450, 600, {'location':'no'}); return false;\">");
                Ba.push("Comment on this review");
                Ba.push('</a></span><img class="pr-profile-fb-help-icon" src="');
                Ba.push(Bz);
                Ba.push('/engine/images/icon_orange_help.gif" title="');
                Ba.push("Click here to write a comment and share this review with your friends on Facebook. Your comment and this review will show up in your Facebook newsfeed.");
                Ba.push('" /></p><div class="pr-clear"></div>');
            }
            Ba.push("</div>");
        }
        if (!B0) {
            Ba.push('<div class="pr-pagination-bottom"><p class="pr-page-count">');
            if (Bd == BQ) {
                Ba.push("Displaying review");
                Ba.push(" <strong>");
                Ba.push((Bd + 1));
                Ba.push("</strong>");
            } else {
                Ba.push("Displaying reviews");
                Ba.push(" <strong>");
                Ba.push((Bd + 1) + "-" + (BQ + 1));
                Ba.push("</strong>");
            }
            Ba.push('</p><p class="pr-nav-back-to-top"><a href="');
            Ba.push(B8);
            Ba.push('">');
            Ba.push("Back to top");
            Ba.push("</a></p>");
            if (Bk > BP) {
                Ba.push('<p class="pr-page-nav"><span class="pr-page-prev">');
                if (Bd > 0) {
                    Ba.push('<a onclick="POWERREVIEWS.display.getReviewsFromMeta(');
                    Ba.push(BS - 1);
                    Ba.push(", '");
                    Ba.push(B7);
                    Ba.push("', '");
                    Ba.push(Bf);
                    Ba.push("', '");
                    Ba.push(Bo);
                    Ba.push("', POWERREVIEWS.common.getOptions('");
                    Ba.push(Bo);
                    Ba.push("')); location.hash = '#pr-header-");
                    Ba.push(B7);
                    Ba.push('\'; return false;" href="');
                    Ba.push(Bn.replace("~~~REVIEW_PAGE~~~", BS - 1));
                    Ba.push('">&laquo; ');
                    Ba.push("Previous");
                    Ba.push("</a>");
                } else {
                    Ba.push("Previous");
                }
                Ba.push('</span><span class="pr-divider"> | </span><span class="pr-page-next">');
                if (BQ < Bk - 1) {
                    Ba.push('<a onclick="POWERREVIEWS.display.getReviewsFromMeta(');
                    Ba.push(BS + 1);
                    Ba.push(", '");
                    Ba.push(B7);
                    Ba.push("', '");
                    Ba.push(Bf);
                    Ba.push("', '");
                    Ba.push(Bo);
                    Ba.push("', POWERREVIEWS.common.getOptions('");
                    Ba.push(Bo);
                    Ba.push("')); location.hash = '#pr-header-");
                    Ba.push(B7);
                    Ba.push('\'; return false;" href="');
                    Ba.push(BM.replace("~~~REVIEW_PAGE~~~", BS + 1));
                    Ba.push('">');
                    Ba.push("Next");
                    Ba.push(" &raquo;</a>");
                } else {
                    Ba.push("Next");
                }
                Ba.push("</span></p>");
            }
            Ba.push('<div class="pr-clear"></div></div><div class="pr-snapshot-addreviews-wrapper-bot"><a class="pr-btn-slide" href="');
            Ba.push("http://www.powerreviewsexpress.com/expressminisite/powerreviews_express.jsp?referrer={0}".replace("{0}", "" + 13179));
            Ba.push('"><span><p>');
            Ba.push("Add Reviews to your site");
            Ba.push('</p></span></a></div><div class="pr-clear"></div>');
        }
        Ba.push("</div>");
        return Ba.join("");
    }
    BE.display.processReviewsTemplate = k;

    function AP(BO, BN, BM, BP) {
        var i = [];
        i.push('<div class="pr-report-issue-header">');
        i.push("Please let us know what kind of issue this is:");
        i.push('<span class="pr-required">*</span></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="profanity_');
        i.push(BO);
        i.push('" value="profane"><label for="profanity_');
        i.push(BO);
        i.push('">');
        i.push("Profanity");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="wrong_product_');
        i.push(BO);
        i.push('" value="wrong_product"><label for="wrong_product_');
        i.push(BO);
        i.push('">');
        i.push("Wrong product");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="spam_');
        i.push(BO);
        i.push('" value="spam"><label for="spam_');
        i.push(BO);
        i.push('">');
        i.push("Spam");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="duplicate_');
        i.push(BO);
        i.push('" value="duplicate"><label for="duplicate_');
        i.push(BO);
        i.push('">');
        i.push("Duplicate");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="copyright_violation_');
        i.push(BO);
        i.push('" value="copyright"><label for="copyright_violation_');
        i.push(BO);
        i.push('">');
        i.push("Copyright violation");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="not_review_');
        i.push(BO);
        i.push('" value="not_review"><label for="not_review_');
        i.push(BO);
        i.push('">');
        i.push("Not a product review");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="customer_image_');
        i.push(BO);
        i.push('" value="customer_image"><label for="customer_image_');
        i.push(BO);
        i.push('">');
        i.push("Customer image");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="problem_with_image_');
        i.push(BO);
        i.push('" value="customer_image"><label for="problem_with_image_');
        i.push(BO);
        i.push('">');
        i.push("Problem with image");
        i.push('</label></div><div><input type="radio" name="error_radio');
        i.push(BO);
        i.push('" id="other_');
        i.push(BO);
        i.push('" value="other"><label for="other_');
        i.push(BO);
        i.push('">');
        i.push("Other");
        i.push('</label></div><div><label for="error_contact_email');
        i.push(BO);
        i.push('">');
        i.push("Email Address:");
        i.push('<span class="pr-required">*</span></label><input class="pr-error-email" type="text" id="error_contact_email');
        i.push(BO);
        i.push('" cols="20" maxlength="80"></div><div class="pr-issue-subtext">');
        i.push('</div><div><label for="error_comments');
        i.push(BO);
        i.push('">');
        i.push("Comments:");
        i.push('</label><textarea class="pr-error-comments" id="error_comments');
        i.push(BO);
        i.push('" cols="30" rows="3"></textarea></div><button class="pr-submit-button" onclick="POWERREVIEWS.display.submitError(\'');
        i.push(BO);
        i.push("', '");
        i.push(BN);
        i.push("', POWERREVIEWS.common.getOptions('");
        i.push(BM);
        i.push("')); return false;\"><span>");
        i.push("Submit");
        i.push('</span></button><button class="pr-cancel-button" onclick="POWERREVIEWS.display.cancelError(\'');
        i.push(BO);
        i.push("'); return false;\"><span>");
        i.push("Cancel");
        i.push("</span></button>");
        return i.join("");
    }
    BE.display.processErrorDivTemplate = AP;

    function Ap(BP, BT, Ba) {
        var Bb = [];
        Bb.push('<div class="pr-other-attributes-histogram"><ul class="pr-other-attributes-list">');
        for (var BN = 0; BN < BP.length; BN++) {
            var BW = BP[BN];
            var BZ = {};
            var BX = 0;
            var BM = 0;
            var BR = 0;
            for (var i = 0; i < BW.v.length; i++) {
                var BV = BW.v[i];
                BZ[BV.n.toLowerCase()] = BV.c;
            }
            for (var BO = 0; BO < BW.a.length; BO++) {
                var BS = BW.a[BO];
                var BU = BS.toLowerCase();
                BZ[BU] = BZ[BU] || 0;
                BX += BZ[BU];
                if (BZ[BU] > BM) {
                    BM = BZ[BU];
                    BR = BO;
                }
            }
            Bb.push('<li class="pr-other-attributes-group pr-other-attribute-');
            Bb.push(BW.k);
            Bb.push('"><ul><li class="pr-other-attribute-label">');
            Bb.push(BW.n);
            Bb.push(':</li><li class="pr-other-attribute-value"><table>');
            for (var BO = 0; BO < BW.a.length; BO++) {
                var BS = BW.a[BO];
                var BU = BS.toLowerCase();
                var BY = BZ[BU] / BX * 100;
                var BQ = (BR == BO);
                Bb.push('<tr class="pr-other-attribute-value-histogram-element ');
                Bb.push(BQ ? "pr-other-attribute-value-histogram-element-max" : "");
                Bb.push('"><td class="pr-other-attribute-value-histogram-label"><p>');
                Bb.push(BS);
                Bb.push('</p></td><td class="pr-other-attribute-value-histogram-bar"><div class="pr-other-attribute-value-histogram-wrapper">');
                if (BZ[BU] != 0) {
                    Bb.push('<div class="pr-other-attribute-value-histogram-barValue" style="width:');
                    Bb.push(BY);
                    Bb.push('%">&nbsp;</div>');
                } else {
                    Bb.push("&nbsp;");
                }
                Bb.push('</div></td><td class="pr-other-attribute-value-histogram-stats">');
                if (BQ) {
                    Bb.push('<p><span class="pr-other-attribute-value-histogram-stats-pct">');
                    Bb.push(Math.round(BY));
                    Bb.push('%&nbsp;</span><span class="pr-other-attribute-value-histogram-stats-count">');
                    if (BZ[BU] == 1) {
                        Bb.push('<p class="pr-snippet-review-count">');
                        Bb.push("(1 review)");
                        Bb.push("</p>");
                    } else {
                        Bb.push('<p class="pr-snippet-review-count">');
                        Bb.push("({0} reviews)".replace("{0}", BZ[BU]));
                        Bb.push("</p>");
                    }
                    Bb.push("</span></p>");
                }
                Bb.push("</td></tr>");
            }
            Bb.push("</table></li></ul></li>");
        }
        Bb.push('<li class="pr-clear"></li></ul></div>');
        return Bb.join("");
    }
    function Ah(BP, BM, BO) {
        var i = [];
        i.push('<div class="pr-other-attributes-subratings"><ul class="pr-other-attributes-list">');
        for (var BN = 0; BN < BP.length; BN++) {
            var BQ = BP[BN];
            i.push('<li class="pr-other-attributes-group pr-other-attribute-');
            i.push(BQ.k);
            i.push('"><ul><li class="pr-other-attribute-label">');
            i.push(BQ.n);
            i.push(':</li><li class="pr-other-attribute-value"><div class="pr-stars pr-stars-small pr-stars-small-subrating ');
            i.push(z[BQ.a].small);
            i.push('" style="background-position: 0px ');
            i.push(BQ.a * -36);
            i.push('px;">&nbsp;</div></li></ul></li>');
        }
        i.push("</ul></div>");
        return i.join("");
    }
    function I(BO, BN, BQ) {
        var BM = [];
        var BP = ["1 Stars", "2 Stars", "3 Stars", "4 Stars", "5 Stars"];
        var BS = 0;
        for (var BR = 0; BR < 5; BR++) {
            BS += BO[BR];
        }
        BM.push('<div class="pr-ratings-histogram-wrapper"><ul class="pr-ratings-histogram-content">');
        for (BR = 4; BR >= 0; BR--) {
            BM.push('<li class="pr-histogram-');
            BM.push([BR + 1]);
            BM.push('Stars"><p class="pr-histogram-label"><span>');
            BM.push(BP[BR]);
            BM.push('</span></p><div class="pr-ratings-histogram-bar">');
            if (BO[BR] != 0) {
                BM.push('<div class="pr-ratings-histogram-barValue" style="width:');
                BM.push(BO[BR] / BS * (100));
                BM.push('%">&nbsp;</div>');
            } else {
                BM.push("&nbsp;");
            }
            BM.push('</div><p class="pr-histogram-count">');
            if (BO[BR] != 0) {
                BM.push("<span>(");
                BM.push(BO[BR]);
                BM.push(")</span>");
            } else {
                BM.push("<span>(0)</span>");
            }
            BM.push("</p></li>");
        }
        BM.push("</ul></div>");
        return BM.join("");
    }
    function BH(BN, BR, BT) {
        var BU = [];
        if (BN) {
            var BQ = AM(BT);
            var BO = Ac(Ay("pr_expert_badge_definitions_url", BT), "~~~LOCALE~~~", BR);
            var BM = BN.locales[BR];
            var BS = (BN.label == "staff" || BN.label == "staff-expert");
            if (BM) {
                var BP = BN.label.replace(/[^-_a-zA-Z]/g, "_");
                var i = "pr-review-author-" + BP + "-wrapper";
                BU.push('<div class="');
                BU.push(i);
                BU.push(" ");
                BU.push(i);
                BU.push("-");
                BU.push(BR);
                BU.push('">');
                if (BS) {
                    BU.push('<a href="');
                    BU.push(BO);
                    BU.push('">');
                }
                BU.push('<img class="pr-badge pr-');
                BU.push(BP);
                BU.push('" src="');
                BU.push(BQ);
                BU.push("/engine/images/badges/");
                BU.push(BM.filename);
                BU.push('" alt="');
                BU.push(BM.hovertext);
                BU.push('" title="');
                BU.push(BM.hovertext);
                BU.push('" />');
                if (BS) {
                    BU.push("</a>");
                }
                BU.push("</div>");
            }
        }
        BU.push("<!-- woozle -->");
        return BU.join("");
    }
    var A0 = 0;
    var Ak = false;

    function V(BN, BP) {
        if (BJ(BN, BP)) {
            AK(BN, BP);
            var BO = Ao(Ay("pr_page_id", BP));
            var BM = Ay("pr_locale", BP);
            var BR = "pr-snippet-" + BO;
            var i = false;
            A0++;
            if (document.getElementById(BR)) {
                AO(BO, BM, BR, i, BP);
            } else {
                var BQ = "pr-snippet-" + BO + "-" + A0;
                BN.write('<div id="' + BQ + '" class="pr-snippet"></div>');
                AO(BO, BM, BQ, i, BP);
            }
            if (!Ak) {
                setTimeout(function () {
                    BI(BP);
                }, 3000);
                Ak = true;
            }
        }
    }
    BE.display.snippet = V;
    gFlagSnippetInitFinished = false;

    function AK(i, BM) {
        if (gFlagSnippetInitFinished) {
            return;
        }
        gFlagSnippetInitFinished = true;
    }
    function BI(i) {
        Af({
            "type": "snippet",
            "count": A0
        }, i);
    }
    function N(i, BM) {}
    function AS(i) {
        return i + "-google-plus-one";
    }
    function AO(BN, BM, BP, i, BO) {
        r(BN, BM, function (BU) {
            var BQ = Ay("pr_snippet_min_reviews", BO);
            var BT = 0;
            var BR = 0;
            var BS = BP;
            if (BU && BU.reviews) {
                BT = BU.reviews.review_count;
                BR = BU.reviews.avg;
            }
            if (BQ <= BT) {
                Ag(BP, A7(BN, BT, BR, BM, i, BS, BO), function () {
                    N(AS(BS, BO));
                });
            }
        }, BO);
    }
    function A7(BU, i, BT, BW, BZ, BM, BN) {
        var BS = [];
        var BO = Aq(Ay("pr_page_id", BN), BN);
        var BY = Ay("pr_read_review", BN);
        var BV = BG(BT);
        var Bd = Math.round(BT);
        var BP = "";
        var Bb = "";
        var Ba = Ay("pr_snippet_star_click", BN);
        if (Ba) {
            BP = " cursor:pointer;";
            Bb = ' onclick="' + Ba + '"';
        }
        var Bc = ["Got it? Rate it.", "Not good", "Needs that special something", "Average, ordinary", "That's good stuff", "Perfect. It doesn't get any better"];
        var BX = Ay("pr_facebook_like_button_url", BN);
        if (BX == null) {
            BX = document.URL;
        }
        BX = x(BX);
        if (BX == "") {
            BZ = false;
        }
        var BR = window.location.protocol;
        var BQ = false && !Ay("pr_suppress_google_plus_one", BN);
        BS.push('<div class="pr-snippet-wrapper"><p class="her-review">HER REVIEW:</p><div class="pr-snippet-stars"><div title="');
        BS.push(Bc[Bd]);
        BS.push('" style="background-position: 0px ');
        BS.push(BV * -36);
        BS.push("px;");
        BS.push(BP);
        BS.push('" class="pr-stars pr-stars-small ');
        BS.push(z[BV].small);
        BS.push('"');
        BS.push(Bb);
        BS.push('>&nbsp;</div><span class="pr-snippet-rating-decimal pr-rounded">');
        BS.push((BT * 10) % 10 == 0 ? BT + ".0" : BT);
        BS.push("</span></div>");
        if (i == 0) {
            BS.push('<p class="pr-snippet-review-count">');
            BS.push("(No reviews)");
            BS.push("</p>");
        } else {
            if (i == 1) {
                BS.push('<p class="pr-snippet-review-count">');
                BS.push("(1 review)");
                BS.push("</p>");
            } else {
                BS.push('<p class="pr-snippet-review-count">');
                BS.push("({0} reviews)".replace("{0}", i));
                BS.push("</p>");
            }
        }
        BS.push('<div class="pr-snippet-read-write">');
        if (i > 0) {
            if (BY) {
                if (i == 1) {
                    BS.push('<div class="pr-snippet-read-reviews"><a href="');
                    BS.push(BY);
                    BS.push('" class="pr-snippet-link" id="pr-snippet-read-link-');
                    BS.push(BU);
                    BS.push('">');
                    BS.push("Read <span>1</span> Review");
                    BS.push("</a></div>");
                } else {
                    BS.push('<div class="pr-snippet-read-reviews"><a href="');
                    BS.push(BY);
                    BS.push('" class="pr-snippet-link" id="pr-snippet-read-link-');
                    BS.push(BU);
                    BS.push('">');
                    BS.push("Read <span>{0}</span> Reviews".replace("{0}", i));
                    BS.push("</a></div>");
                }
            }
            if (BO) {
                BS.push('<div class="pr-snippet-write-review"><a href="');
                BS.push(BO);
                
				/* here modified to show in a popup window */
            	BS.push('" class="pr-snippet-link"');
                BS.push(' onclick="POWERREVIEWS.common.showSmallPopup(\'');
				BS.push(BO);
				BS.push("', 680, 520); return false;\">");
				
				BS.push("Write a Review");
                BS.push("</a></div>");
            }
        } else {
            if (BO) {
                BS.push('<div class="pr-snippet-write-first-review"><p>');
                BS.push("Be the first to");
                BS.push('</p> <a href="');
                BS.push(BO);
                
				/* here modified to show in a popup window */
            	BS.push('" class="pr-snippet-link"');
                BS.push(' onclick="POWERREVIEWS.common.showSmallPopup(\'');
				BS.push(BO);
				BS.push("', 680, 520); return false;\">");
								
				BS.push("Write a Review");
                BS.push("</a></div>");
            }
        }
        BS.push('<div class="pr-clear"></div></div><div class="pr-clear"></div><div class="pr-snippet-social-bar">');
        if (BQ) {
            BS.push('<div class="pr-google-plus-one"><div id="');
            BS.push(AS(BM));
            BS.push('"></div></div>');
        }
        if (BZ) {
            BS.push('<div class="pr-facebook-like-snippet"><iframe src="');
            BS.push(BR);
            BS.push("//www.facebook.com/plugins/like.php?href=");
            BS.push(BX);
            BS.push('&layout=button_count&show_faces=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:21px;" allowTransparency="true"></iframe></div>');
        }
        BS.push('<div class="pr-clear"></div></div></div>');
        return BS.join("");
    }
    var g = 0;

    function h(BM, BO) {
        if (BJ(BM, BO)) {
            var BN = Ao(Ay("pr_page_id", BO));
            var i = Ay("pr_locale", BO);
            var BQ = "pr-summary-snippet-" + BN;
            if (document.getElementById(BQ)) {
                A1(BN, i, BQ, BO);
            } else {
                var BP = "pr-summary-snippet-" + BN + "-" + (g++);
                BM.write('<div id="' + BP + '" class="pr-summary-snippet"></div>');
                A1(BN, i, BP, BO);
            }
        }
    }
    BE.display.summarySnippet = h;

    function A1(BM, i, BO, BN) {
        r(BM, i, function (BR) {
            var BP = Ay("pr_snippet_min_reviews", BN);
            var BQ = 0;
            if (BR && BR.reviews) {
                BQ = BR.reviews.review_count;
                if (BP <= BQ) {
                    AA(AM(BN) + "/content/" + Y(BM) + "/" + BM + "-" + i + "-rollup.js", null, function (BS) {
                        if (BS.rollup) {
                            Ag(BO, E(BS.rollup, BM, i, BN));
                        }
                    }, BN);
                }
            }
        }, BN);
    }
    function E(BS, BN, BM, BQ) {
        var i = [];
        var BP = O(BS);
        var BO = BP.histogramDisplayGroupList;
        var BR = BP.subratingGroupList;
        i.push('<div class="pr-summary-snippet-body">');
        if (BO.length) {
            i.push(Ap(BO, BM, BQ));
        }
        if (BR.length) {
            i.push(Ah(BR, BM, BQ));
        }
        i.push('</div><div class="pr-clear"></div>');
        return i.join("");
    }
    return BE;

})();
var SHOPZILLAREVIEWS = POWERREVIEWS;
