Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var POWERREVIEWS = (function(publicScope) {
- publicScope.ext = publicScope.ext || {};
- publicScope.ext.evaluate = function(arg) {
- return eval(arg);
- }
- ;
- return publicScope;
- }
- )(POWERREVIEWS || {});
- POWERREVIEWS = (function(F) {
- F.common = F.common || {};
- F.display = F.display || {};
- F.config = F.config || {};
- var Bu = false;
- var CO = false;
- var t = null;
- var K = null;
- var s = {};
- var L = {};
- var AI = {};
- var B0 = {};
- F.common.gResult = B0;
- var f = {};
- var Bj = {};
- var V;
- var Ca = 0;
- var BO = [];
- var BI = encodeURIComponent || escape;
- var A2 = "prBaseStylesheet";
- var BD = "prMerchantOverrideStylesheet";
- var BP = {
- "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 a = {};
- function Aj() {
- return {
- "en_US": {
- "en_US": "US English"
- }
- };
- }
- F.common.getLocaleTranslations = Aj;
- var BC = Aj();
- var Ar = {
- pr_merchant_table: {
- "m6406": {
- "cobranded": "true",
- "name": "Ulta"
- },
- "siteId-1": {
- "cobranded": "true",
- "name": "Ulta"
- }
- },
- pr_merchant_id: 6406,
- pr_merchant_name: "Ulta",
- pr_site_id: null,
- pr_merchant_group_id: 11984,
- pr_locale: "en_US",
- pr_all_locales: ["en_US"],
- pr_all_locales_hash: {
- "en_US": true
- },
- pr_locale_transitions: {},
- pr_read_review: "#ReviewHeader",
- pr_read_qa: "#QAHeader",
- pr_write_review: "",
- pr_ask_question: "",
- pr_answer_question: "",
- pr_js_controller_url: "http://services.powerreviews.com/JSController.do",
- pr_reviews_per_page: 10,
- pr_questions_per_page: 10,
- pr_zip_location: "/reviewcenter/",
- 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_base_services_urls: {
- "-": "http://services.powerreviews.com/"
- },
- pr_base_follow_landing_urls: {
- "-": "http://social.powerreviews.com"
- },
- pr_resize_url: "",
- pr_mobile_write_a_review_html_url: "/reviewcenter/pwr/engine/js/writeReview.html",
- pr_snippet_min_reviews: 0,
- pr_suppress_google_plus_one: false,
- pr_source: "web",
- pr_image_snippet_show_image: B7,
- 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: {
- "42104": {
- "locales": {
- "en_US": {
- "filename": "badge_119841435692833819.png",
- "description": "",
- "hovertext": "Staff Expert"
- }
- },
- "isStaff": true,
- "label": "Staff Expert NEW"
- },
- "11023": {
- "locales": {
- "fr_CA": {
- "filename": "badge_sr_fr_CA.gif",
- "description": "",
- "hovertext": "Critique de personnel"
- },
- "en_GB": {
- "filename": "badge_sr_en_GB.gif",
- "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
- "hovertext": "Staff Reviewer"
- },
- "jp_JP": {
- "filename": "badge_sr_jp_JP.gif",
- "description": "",
- "hovertext": ""
- },
- "en_US": {
- "filename": "badge_sr_en_US.gif",
- "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
- "hovertext": "Staff Reviewer"
- },
- "en_CA": {
- "filename": "badge_sr_en_CA.gif",
- "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
- "hovertext": "Staff Reviewer"
- },
- "en_AU": {
- "filename": "badge_sr_en_AU.gif",
- "description": "A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.",
- "hovertext": "Staff Reviewer"
- },
- "fr_FR": {
- "filename": "badge_sr_fr_FR.gif",
- "description": "",
- "hovertext": ""
- },
- "nl_NL": {
- "filename": "badge_sr_nl_NL.gif",
- "description": "A Staff Beoordeler is een handelaar of merk werknemer die beoordelingen inzend op basis van eigendom of gebruik van het product.",
- "hovertext": "Staff Beoordeler"
- },
- "de_DE": {
- "filename": "badge_sr_de_DE.gif",
- "description": "",
- "hovertext": "Mitarbeiter-Bewerter"
- }
- },
- "isStaff": true,
- "label": "staff"
- },
- "11024": {
- "locales": {
- "it_IT": {
- "filename": "badge_se_it_IT.gif",
- "description": "",
- "hovertext": ""
- },
- "fr_CA": {
- "filename": "badge_se_fr_CA.gif",
- "description": "",
- "hovertext": ""
- },
- "en_GB": {
- "filename": "badge_se_en_GB.gif",
- "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.",
- "hovertext": "Staff Reviewer"
- },
- "jp_JP": {
- "filename": "badge_se_jp_JP.gif",
- "description": "",
- "hovertext": ""
- },
- "en_US": {
- "filename": "badge_se_en_US.gif",
- "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.",
- "hovertext": "Staff Reviewer"
- },
- "en_CA": {
- "filename": "badge_se_en_CA.gif",
- "description": "",
- "hovertext": ""
- },
- "pt_BR": {
- "filename": "badge_se_pt_BR.gif",
- "description": "",
- "hovertext": ""
- },
- "fr_FR": {
- "filename": "badge_se_fr_FR.gif",
- "description": "",
- "hovertext": ""
- },
- "de_DE": {
- "filename": "badge_se_de_DE.gif",
- "description": "",
- "hovertext": "Mitarbeiter-Bewerter"
- }
- },
- "isStaff": true,
- "label": "staff-expert"
- },
- "42105": {
- "locales": {
- "en_US": {
- "filename": "badge_119841435692939907.png",
- "description": "",
- "hovertext": "Brand Expert"
- }
- },
- "isStaff": false,
- "label": "Brand Expert NEW"
- }
- },
- pr_attribution_table: {
- "840447": {
- "image_uri": "17837_840447_logo_small.png",
- "originating_merchant_url": "http://www.lancome-usa.com/"
- },
- "947326": {
- "image_uri": "48372_947326_logo_small.png",
- "originating_merchant_url": "http://www.hawaiiantropic.com/"
- },
- "157832": {
- "image_uri": "15790_157832_logo_small.png",
- "originating_merchant_url": "http://www.CrestComplete.com"
- },
- "406823": {
- "image_uri": "49201_406823_logo_small.png",
- "originating_merchant_url": "http://www.peterthomasroth.com/Home"
- },
- "834325": {
- "image_uri": "17748_834325_logo_small.png",
- "originating_merchant_url": "http://https://www.ogxbeauty.com/"
- },
- "849181": {
- "image_uri": "48523_849181_logo_small.png",
- "originating_merchant_url": "http://www.strivectin.com/"
- },
- "22994": {
- "image_uri": "77688_22994_logo_small.png",
- "originating_merchant_url": "http://www.shawnsignature.com/"
- },
- "724678": {
- "image_uri": "15792_logo_small.png",
- "originating_merchant_url": "http://www.CleanClear.com"
- },
- "468752": {
- "image_uri": "48939_468752_logo_small.png",
- "originating_merchant_url": "http://incoco.com/"
- },
- "8803": {
- "image_uri": "11027_8803_logo_small.png",
- "originating_merchant_url": "http://www.perriconemd.com"
- },
- "730427": {
- "image_uri": "15700_logo_small.png",
- "originating_merchant_url": "http://www.Olay.com"
- },
- "993415": {
- "image_uri": "49040_993415_logo_small.png",
- "originating_merchant_url": "http://www.michaeltoddbeauty.com"
- },
- "113582": {
- "image_uri": "17010_113582_logo_small.png",
- "originating_merchant_url": "http://www.gillettevenus.com/"
- },
- "34989": {
- "image_uri": "48488_logo_small.png",
- "originating_merchant_url": "http://www.instyler.com/"
- },
- "844498": {
- "originating_merchant_url": "http://skinandcoroma.com"
- },
- "589963": {
- "image_uri": "15837_logo_small.png",
- "originating_merchant_url": "http://www.BurtsBees.com"
- },
- "590511": {
- "image_uri": "48488_logo_small.png",
- "originating_merchant_url": "http://https://www.instylermax.com/"
- },
- "294357": {
- "image_uri": "48681_294357_logo_small.png",
- "originating_merchant_url": "http://www.elfcosmetics.com/"
- },
- "19275": {
- "image_uri": "15403_logo_small.jpg",
- "originating_merchant_url": "http://www.dyson.com/"
- },
- "12285": {
- "image_uri": "15858_12285_logo_small.png",
- "originating_merchant_url": "http://www.RemingtonProducts.com"
- },
- "419508": {
- "image_uri": "16227_logo_small.png",
- "originating_merchant_url": "http://www.lorealparisusa.com/"
- },
- "309380": {
- "image_uri": "16227_419508_logo_small.png",
- "originating_merchant_url": "http://www.lorealparisusa.com/"
- },
- "707585": {
- "image_uri": "15736_logo_small.png",
- "originating_merchant_url": "http://www.Gillette.com"
- },
- "48817": {
- "image_uri": "48488_logo_small.png",
- "originating_merchant_url": "http://https://www.trytulip.com/"
- },
- "60521": {
- "image_uri": "15637_logo_small.png",
- "originating_merchant_url": "http://www.Aveeno.com"
- },
- "790461": {
- "originating_merchant_url": "http://www.skinfixinc.com/us/"
- },
- "228352": {
- "image_uri": "48617_228352_logo_small.png",
- "originating_merchant_url": "http://sesamestreetbathproducts.com/"
- },
- "763550": {
- "image_uri": "15696_logo_small.png",
- "originating_merchant_url": "http://www.Rogaine.com"
- },
- "938008": {
- "image_uri": "48488_logo_small.png",
- "originating_merchant_url": "http://www.instylerwettodry.com/"
- },
- "922403": {
- "image_uri": "16267_922403_logo_small.png",
- "originating_merchant_url": "http://www.tresemme.com"
- },
- "617592": {
- "image_uri": "48592_617592_logo_small.png",
- "originating_merchant_url": "http://www.nubianheritage.com/"
- },
- "129344": {
- "image_uri": "48435_715206_logo_small.png",
- "originating_merchant_url": "http://www.mauimoisture.com/"
- },
- "49018": {
- "image_uri": "49971_logo_small.png",
- "originating_merchant_url": "http://https://www.beachwaver.com/"
- },
- "293675": {
- "image_uri": "49194_293675_logo_small.png",
- "originating_merchant_url": "http://www.australiangold.com/"
- },
- "293832": {
- "image_uri": "48607_293832_logo_small.png",
- "originating_merchant_url": "http://www.mynuface.com"
- },
- "262135": {
- "image_uri": "47778_262135_logo_small.png",
- "originating_merchant_url": "http://www.proganixbeauty.com/"
- },
- "816278": {
- "image_uri": "48488_logo_small.png",
- "originating_merchant_url": "http://www.instylerblu.com/"
- },
- "352612": {
- "image_uri": "11027_logo_small.png",
- "originating_merchant_url": "http://www.perriconemd.com"
- },
- "786814": {
- "image_uri": "48488_logo_small.png",
- "originating_merchant_url": "http://www.instylerstraightup.com/"
- },
- "766576": {
- "image_uri": "49279_766576_logo_small.png",
- "originating_merchant_url": "http://www.clinique.com/"
- },
- "635744": {
- "image_uri": "15859_logo_small.png",
- "originating_merchant_url": "http://www.SallyHansen.com"
- },
- "522341": {
- "image_uri": "15689_522341_logo_small.png",
- "originating_merchant_url": "http://www.CoverGirl.com"
- },
- "120681": {
- "image_uri": "49136_120681_logo_small.png",
- "originating_merchant_url": "http://www.treehutshea.com/"
- },
- "590193": {
- "image_uri": "16264_590193_logo_small.png",
- "originating_merchant_url": "http://www.stives.com/"
- },
- "615929": {
- "image_uri": "16786_logo_small.png",
- "originating_merchant_url": "http://www.garnierusa.com/\u200e"
- },
- "882458": {
- "image_uri": "47509_882458_logo_small.png",
- "originating_merchant_url": "http://www.triabeauty.com/"
- },
- "143800": {
- "originating_merchant_url": "http://www.skinfixinc.com"
- },
- "250621": {
- "image_uri": "48989_logo_small.png",
- "originating_merchant_url": "http://www.origins.com/"
- },
- "843666": {
- "image_uri": "49657_logo_small.png",
- "originating_merchant_url": "http://www.maccosmetics.com/"
- },
- "175079": {
- "image_uri": "47348_175079_logo_small.png",
- "originating_merchant_url": "http://https://www.silkn.com/"
- },
- "836156": {
- "image_uri": "48016_461665_logo_small.png",
- "originating_merchant_url": "http://atlanticcoastbrands.com/"
- },
- "808382": {
- "image_uri": "48860_808382_logo_small.png",
- "originating_merchant_url": "http://www.esteelauder.com/"
- },
- "153203": {
- "image_uri": "17130_logo_small.png",
- "originating_merchant_url": "http://www.braun.com/us/home.html"
- },
- "570821": {
- "image_uri": "48396_570821_logo_small.png",
- "originating_merchant_url": "http://dermae.com/"
- },
- "522196": {
- "image_uri": "48766_logo_small.png",
- "originating_merchant_url": "http://www.pacificabeauty.com/"
- },
- "310344": {
- "image_uri": "17605_310344_logo_small.png",
- "originating_merchant_url": "http://www.clarinsusa.com/"
- },
- "502644": {
- "image_uri": "16227_419508_logo_small.png",
- "originating_merchant_url": "http://www.lorealparisusa.com/"
- },
- "175307": {
- "image_uri": "49121_175307_logo_small.png",
- "originating_merchant_url": "http://www.carolsdaughter.com/"
- },
- "811668": {
- "image_uri": "48544_811668_logo_small.png",
- "originating_merchant_url": "http://www.julep.com/"
- },
- "360602": {
- "image_uri": "17244_360602_logo_small.png",
- "originating_merchant_url": "http://www.eco-tools.com/"
- },
- "123827": {
- "image_uri": "49320_logo_small.png",
- "originating_merchant_url": "http://www.aquaphorus.com/"
- }
- },
- pr_tracking_domain: "",
- pr_widget_url: "//static.powerreviews.com/widgets/v1/widget.js",
- pr_widget_data_url_override: "",
- pr_mwar_enabled: "false",
- pr_api_write_base_url: "http://services.powerreviews.com/api",
- pr_ui_library_base_url: "//ui.powerreviews.com/stable",
- pr_environment: "prod",
- pr_waq_waa_style: "MODERN",
- pr_war_server_path: "3.0",
- pr_war_fullscreen_enabled: "NONE",
- pr_review_display_split_testing_enabled: "false",
- pr_hosted_display_engine_enabled: false,
- pr_style_sheet_override_url: false,
- pr_force_email_collection: "EMAIL_OPTIONAL",
- pr_integrated_profile_display_enabled: false,
- pr_bv_peekaboo_enabled: false,
- pr_review_display_style: "LEGACY",
- pr_is_self_service: false,
- pr_track_review_display_usage: false,
- pr_base_url_group_key: "-",
- pr_pollute_window: true,
- pr_short_month_names: {
- "en_US": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""]
- },
- pr_long_month_names: {
- "en_US": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""]
- },
- pr_short_day_names: {
- "en_US": ["", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
- },
- pr_long_day_names: {
- "en_US": ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- },
- pr_am_pm_names: {
- "en_US": ["AM", "PM"]
- },
- pr_engine_base_version: "2",
- pr_fb_like_in_snippet_enabled: false,
- pr_google_plus1_in_snippet_enabled: false,
- pr_pinterest_in_snippet_enabled: false,
- pr_social_measurement_enabled: true,
- pr_reviews_enabled: true,
- pr_answers_enabled: true,
- pr_image_snippet_enabled: false,
- pr_teaser_enabled: false,
- pr_omniture_enabled: false,
- pr_beacon_delay_enabled: false,
- pr_tracking_pixel_url: "//t.powerreviews.com/t/v1.gif",
- pr_social_measurement_engine_version: "2",
- pr_non_word_replacement: "__",
- pr_review_display_default_sort_order: "Newest",
- pr_is_master_merchant: false,
- pr_use_https_wrapper: false,
- pr_is_inline_seo: true,
- pr_is_microdata_schemaorg: false,
- pr_is_microdata_schemaorg_product: true,
- pr_responsive_answers_enabled: false,
- pr_follow_channels: "All",
- pr_structured_data_type: "false",
- pr_enable_facebook_get_advice: false,
- pr_enable_facebook_follow_product_category: false,
- pr_enable_facebook_follow_profile: false,
- pr_enable_facebook_follow_product: false,
- pr_face_off_enabled: false,
- pr_enable_ask_a_reviewer: false,
- pr_enable_profiles: false,
- pr_is_attribution_url_disabled: true,
- pr_is_facebook_verify_enabled: false,
- pr_services_hide_verify_box: false,
- pr_social_loyalty_point_value_map: {},
- pr_creation_date: "2017-11-19 21:22:00.382",
- pr_simplified_zip: false,
- pr_snippet_style: "LEGACY"
- };
- var Cn = {
- pr_review_display_date_pattern: "{0,date,M/d/yyyy}",
- pr_gas_snapshot_reviewed_by_with_filters: "Filtered to show {0} of {1} reviews",
- pr_gas_error_thanks_for_feedback: "Thank you for your feedback. Please note that only your first vote will be counted.",
- pr_services_review_display_thanks_for_feedback: "Thank you for your feedback. Please note that only your first vote will be counted.",
- pr_gas_error_only_one_vote_per_review: "You may only submit one vote per review.",
- pr_services_review_display_only_one_vote_per_review: "You may only submit one vote per review.",
- pr_gas_error_already_notified: "You have already notified us of an error for this review.",
- pr_services_review_display_already_notf_err: "You have already notified us of an error for this review.",
- pr_gas_error_required_email: "Email Address is required when flagging a review",
- pr_gas_error_required_flag_issue: "Please select the reason you are flagging this review",
- pr_gas_error_thanks_for_notification: "Thank you for notifying us of this error.",
- pr_services_review_display_thanks_for_notf_err: "Thank you for notifying us of this error.",
- pr_gas_modal_follow_emailaddress_prompt_prepopulate: "Enter email address",
- pr_gas_snippet_no_reviews: "(No reviews)",
- pr_gas_snippet_review_count: "(1 review)",
- pr_gas_snippet_reviews_count: "({0} reviews)",
- pr_gas_snippet_read_review: "Read <span>1</span> Review",
- pr_gas_snippet_read_reviews: "Read <span>{0}</span> Reviews",
- pr_gas_snippet_write_review: "Write a Review",
- pr_gas_snippet_be_the_first: "Be the first to",
- pr_gas_star_message_0: "Got it? Rate it.",
- pr_gas_star_message_1: "Not good",
- pr_gas_star_message_2: "Needs that special something",
- pr_gas_star_message_3: "Average, ordinary",
- pr_gas_star_message_4: "That's good stuff",
- pr_gas_star_message_5: "Perfect. It doesn't get any better",
- pr_gas_snapshot_describeyourself: "Reviewer Profile",
- pr_gas_snapshot_based_on_singular: "based on {0} review",
- pr_gas_snapshot_based_on_plural: "based on {0} reviews",
- pr_social_loyalty_get_advice_prompt_points: "+100",
- pr_gas_social_loyalty_get_advice_prompt_text: "Earn points simply by sharing with your friends!",
- pr_gas_facebook_get_advice_label: "Need more help?",
- pr_gas_facebook_get_advice_link: "Get advice from friends ›",
- pr_gas_facebook_follow_product_category_label: "Like this category?",
- pr_gas_facebook_follow_product_category_link: "Follow trending products",
- pr_gas_snapshot_title: "REVIEW SNAPSHOT®",
- pr_gas_snapshot_by_powerreviews_express_link: "http://www.powerreviews.com/legal/index_prx_en_US.html",
- pr_gas_snapshot_by_powerreviews_express: "by PowerReviews",
- pr_gas_snapshot_by_powerreviews_link: "http://www.powerreviews.com/legal/index_en_US.html",
- pr_gas_snapshot_by_powerreviews: "by PowerReviews",
- pr_gas_snapshot_switch_locale: "Show {0} {1} review",
- pr_gas_snapshot_switch_locale_plural: "Show {0} {1} reviews",
- pr_gas_snapshot_consensus: "of respondents would recommend this to a friend.",
- pr_gas_snapshot_histogram_rating_distribution: "Ratings Distribution",
- pr_gas_snapshot_pros: "Pros",
- pr_gas_snapshot_cons: "Cons",
- pr_gas_no: "No",
- pr_gas_cons: "Cons",
- pr_gas_snapshot_bestuses: "Best Uses",
- pr_gas_snapshot_social_loyalty_review_prompt: "Share your opinion, earn points",
- pr_gas_snapshot_be_the_first: "Not yet rated. Be the first to",
- pr_gas_snapshot_write_a_review: "Write a Review",
- pr_gas_snapshot_social_loyalty_first_review_prompt: "(earn bonus points)",
- pr_gas_facebook_subscribe_to_reviews_label: "Subscribe to Reviews",
- pr_gas_snapshot_face_off_positive: "Most Liked Positive Review",
- pr_gas_snapshot_face_off_read_full_review: "Read complete review",
- pr_gas_snapshot_face_off_versus: "VS",
- pr_gas_snapshot_face_off_negative: "Most Liked Negative Review",
- pr_gas_snapshot_reviews_label: "REVIEWS",
- pr_gas_snapshot_reviewed_by_singular: "Reviewed by 1 customer",
- pr_gas_snapshot_reviewed_by_plural: "Reviewed by {0} customers",
- pr_gas_snapshot_sort_by_label: "Sort by",
- pr_gas_snapshot_sort_by_new: "Newest",
- pr_gas_snapshot_sort_by_old: "Oldest",
- pr_gas_snapshot_sort_by_rate_high: "Highest rating",
- pr_gas_snapshot_sort_by_rate_low: "Lowest rating",
- pr_gas_snapshot_sort_by_helpf_high: "Most helpful",
- pr_gas_snapshot_sort_by_helpf_low: "Least helpful",
- pr_gas_bottomline_Yes: "Yes, I would recommend this to a friend",
- pr_gas_bottomline_No: "No, I would not recommend this to a friend",
- pr_gas_displaying_review: "Displaying review",
- pr_gas_displaying_reviews: "Displaying reviews",
- pr_gas_back_to_top: "Back to top",
- pr_gas_previous: "Previous",
- pr_gas_next: "Next",
- pr_gas_helpful_ratio: "{0} of {1}",
- pr_gas_found_helpful: "customers found this review helpful",
- pr_gas_by: "By",
- pr_gas_from: "from",
- pr_gas_describeyourself: "About Me",
- pr_gas_profile_see_all_my_reviews: "See all my reviews",
- pr_gas_reviews_ask_me_a_question_link: "Ask me a question",
- pr_gas_facebook_follow_me_link: "Follow me",
- pr_gas_verified_buyer: "Verified Buyer",
- pr_gas_site_member: "Site Member",
- pr_gas_verified_reviewer: "Verified Reviewer",
- pr_gas_pros: "Pros",
- pr_gas_bestuses: "Best Uses",
- pr_gas_comments_about: "Comments about <em>{0}</em>:",
- pr_gas_service_comments: "Service and delivery comments:",
- pr_gas_recommended_products: "Recommended",
- pr_gas_similar_products: "Similar",
- pr_gas_bottomline: "Bottom Line",
- pr_gas_images_shared_by: "Images shared by",
- pr_gas_video_shared_by: "Video shared by",
- pr_gas_images_video_shared_by: "Images shared by",
- pr_gas_image_thumbnail: "Image Thumbnail",
- pr_gas_video_thumbnail: "Video Thumbnail",
- pr_gas_media_tags_label: "Tags:",
- pr_gas_merchant_response: "Merchant response: ",
- pr_gas_attributes_reviewed_at: "REVIEWED AT",
- pr_gas_was_helpful: "Was this review helpful?",
- pr_gas_yes: "Yes",
- pr_gas_flag_review_before: "You may also",
- pr_gas_flag_review_after: "flag this review",
- pr_gas_reviews_facebook_comment: "Comment on this review",
- pr_facebook_comment_on_review: false,
- pr_gas_reviews_facebook_comment_instructions: "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 News Feed.",
- pr_gas_social_loyalty_facebook_comment_prompt: "(earn points)",
- pr_gas_footer_privacy_policy_link: "http://www.powerreviews.com/legal/privacy_policy_prx_en_US.html",
- pr_gas_footer_privacy_policy: "Privacy & Cookie Policy",
- pr_gas_snapshot_prx_link: "http://www.powerreviewsexpress.com/expressminisite/powerreviews_express.jsp?referrer={0}",
- pr_gas_snapshot_add_reviews_to_your_site: "Add Reviews to your site",
- pr_gas_snapshot_histogram_1_stars: "1 Stars",
- pr_gas_snapshot_histogram_2_stars: "2 Stars",
- pr_gas_snapshot_histogram_3_stars: "3 Stars",
- pr_gas_snapshot_histogram_4_stars: "4 Stars",
- pr_gas_snapshot_histogram_5_stars: "5 Stars",
- pr_gas_issue_header: "Please let us know what kind of issue this is:",
- pr_gas_issue_profanity: "Profanity",
- pr_gas_issue_wrong_product: "Wrong product",
- pr_gas_issue_spam: "Spam",
- pr_gas_issue_duplicate: "Duplicate",
- pr_gas_issue_copyright_violation: "Copyright violation",
- pr_gas_issue_not_review: "Not a product review",
- pr_gas_issue_customer_image: "Customer image",
- pr_gas_issue_problem_with_image: "Problem with image",
- pr_gas_issue_other: "Other",
- pr_gas_issue_email_address: "Email Address:",
- pr_gas_issue_email_subtext: "",
- pr_gas_issue_comments: "Comments:",
- pr_gas_submit: "Submit",
- pr_gas_cancel: "Cancel",
- pr_gas_facebook_follow_product_label: "Follow this Product",
- pr_gas_facebook_follow_product_instructions: "<b>Click the Like button</b> to follow on Facebook OR enter your email. Get the latest reviews for this product on your Facebook News Feed or by email. You can unsubscribe anytime.",
- pr_gas_facebook_follow_product_email_only_instructions: "Enter your email to get the latest reviews for this product. You can unsubscribe anytime.",
- pr_gas_facebook_follow_me_modal_facebook_messaging: "Follow on <span>Facebook</span>",
- pr_gas_facebook_follow_invalid_email_message: "Please enter a valid email address.",
- pr_gas_facebook_follow_submit_button_label: "SUBMIT",
- pr_gas_facebook_follow_me_modal_thank_you_message: "<span><b>Thank You.</b></span>You have successfully signed up to receive emails.",
- pr_gas_facebook_modal_follow_product_category_label: "",
- pr_gas_facebook_follow_category_instructions: "",
- pr_gas_facebook_follow_category_email_only_instructions: "",
- pr_services_question_display_header_question_prompt_intro: "Do you have questions about this product?",
- pr_gas_social_loyalty_answerbox_header_prompt: "(earn points for answers!)",
- pr_services_question_display_header_question_prompt_cta: "",
- pr_services_question_display_header_question_prompt: "Get answers from in-house experts.",
- pr_services_question_display_question_count_singular: "1 Question",
- pr_services_question_display_question_count_plural: "Questions",
- pr_services_question_display_answer_count_singular: "1 Answer",
- pr_services_question_display_answer_count_plural: "Answers",
- pr_services_question_byline_prefix_ask: "Asked on",
- pr_services_question_by: "by",
- pr_services_question_anonymous: "Anonymous",
- pr_services_question_from: "from",
- pr_services_answer_question_notation: "Q:",
- pr_services_question_answer_prompt: "Know the answer?",
- pr_services_question_answer_link_label: "Answer this question",
- pr_services_question_answer_count_singular: "1 answer",
- pr_services_question_answer_count_plural: "answers",
- pr_gas_social_loyalty_answerbox_first_answer_prompt: "(earn bonus points)",
- pr_services_answer_byline_prefix_answer: "Answered on",
- pr_services_answer_by: "by",
- pr_services_answer_anonymous: "Anonymous",
- pr_services_answer_from: "from",
- pr_services_answer_purchaser_badge: "VERIFIED BUYER",
- pr_services_answer_merchant_badge: "CUSTOMER CARE",
- pr_services_answer_answer_notation: "A:",
- pr_gas_displaying_question: "Displaying question",
- pr_gas_displaying_questions: "Displaying questions",
- pr_services_question_display_ask_question_link_content: "Ask a question",
- pr_services_question_display_footer_question_prompt_intro: "Do you have a question about this product?",
- pr_gas_pa_snippet_title: "Q&A",
- pr_gas_pa_snippet_text: "Ask Questions, share answers",
- pr_gas_pa_snippet_question: "<span>1</span> Question",
- pr_gas_pa_snippet_questions: "<span>{0}</span> Questions",
- pr_gas_pa_snippet_answer: "<span>1</span> Answer",
- pr_gas_pa_snippet_answers: "<span>{0}</span> Answers",
- pr_gas_pa_snippet_ask_question: "Ask a Question",
- pr_gas_facebook_follow_me_modal_submit_error_header: "Sorry",
- pr_gas_facebook_follow_me_modal_submit_error_message: "We are having difficulties submitting your email right now. Please try again later.",
- pr_services_review_display_teaser_headline: "Customer reviews",
- pr_services_review_display_teaser_subheadline: "Showing most recent reviews",
- pr_services_review_display_image_snippet_header: "Customer Images",
- pr_gas_profile_histogram_rating_distribution: "Ratings Distribution",
- pr_gas_profile_facebook_manage_settings: "Is this you? Manage Settings",
- pr_gas_profile_my_reviews: "My Reviews",
- pr_gas_profile_n_most_recent_reviews: "{0} most recent reviews",
- pr_gas_facebook_modal_follow_me_label: "Follow this Reviewer",
- pr_gas_facebook_follow_location_preposition: "from",
- pr_gas_facebook_modal_follow_me_instructions: "<b>Click the Like button</b> to follow on Facebook OR enter your email. See the latest reviews this reviewer writes on your Facebook News Feed or by email. You can unsubscribe anytime.",
- pr_gas_facebook_modal_follow_me_email_only_instructions: "Enter your email to get the latest reviews this reviewer writes. You can unsubscribe anytime.",
- pr_avatar_image_url: "http://images.powerreviews.com/images/avatar-grey.gif",
- pr_gas_sweepstakes_message: "Submitted as part of a sweepstakes entry",
- pr_gas_sampling_message: "Reviewer received a free sample of this product",
- pr_qa_display_author_asked_by: "",
- pr_qa_display_relative_time_days_ago: "",
- pr_qa_display_relative_time_months_ago: "",
- pr_qa_display_relative_time_years_ago: ""
- };
- var CH = {};
- if (window && window.location && window.location.search) {
- var BK = window.location.search.substring(1).split("&");
- for (var CL = 0, BQ = BK.length; CL < BQ; ++CL) {
- var CI = BK[CL].split("=");
- CH[CI[0]] = CI[1];
- }
- }
- function BX(i) {
- var DV = document.getElementsByTagName("head")[0];
- if (DV && DV.firstChild) {
- DV.appendChild(i);
- } else {
- if (DV) {
- DV.appendChild(i);
- } else {
- window.document.children[0].appendChild(i);
- }
- }
- }
- function AN(DX) {
- for (var DY = 1, DW = arguments.length; DY < DW; ++DY) {
- var DZ = arguments[DY];
- if (DZ) {
- var DV = DZ[DX];
- if (typeof DV != "undefined") {
- return DV;
- }
- }
- }
- return null;
- }
- function M(DV, i) {
- return AN(DV, i, CH, window, Ar);
- }
- F.common.get = M;
- function BR() {
- return Ar;
- }
- F.getDefaults = BR;
- function DT() {
- return Cn;
- }
- F.getMessages = DT;
- function C9(DV, i) {
- if (typeof POWERREVIEWS.getMessages()[DV] === "object") {
- return POWERREVIEWS.getMessages()[DV][i];
- } else {
- return POWERREVIEWS.getMessages()[DV];
- }
- }
- F.msg = C9;
- if (typeof document !== "undefined" && !F.isAppLaunch && (CH.pr_enable_hosted_renderer === "1" || !!M("pr_hosted_display_engine_enabled"))) {
- function B7() {}
- function BR() {
- return Ar;
- }
- F.getDefaults = BR;
- function DT() {
- return Cn;
- }
- F.getMessages = DT;
- var Bl = [];
- function Ch() {
- return Bl;
- }
- F.getEventQueue = Ch;
- F.display = {};
- function Ax(DV, i) {
- Bl.push({
- docRoot: DV,
- params: i,
- methodName: "prData",
- methodParent: "display"
- });
- }
- F.display.prData = Ax;
- window.prData = Ax;
- function CF(i) {
- BO.push(i);
- }
- F.display.registerCallback = CF;
- window.registerCallback = CF;
- var B5 = 0;
- function CM(i, DW) {
- var DX = "pr-snippet-holder-" + ++B5;
- i.write('<div id="' + DX + '"></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "snippet",
- methodParent: "display"
- });
- }
- F.display.snippet = CM;
- window.snippet = CM;
- var D = 0;
- function B1(i, DW) {
- var DX = "pr-engine-holder-" + ++D;
- i.write('<div id="' + DX + '" ></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "engine",
- methodParent: "display"
- });
- }
- F.display.engine = B1;
- window.engine = B1;
- var Ci = 0;
- function DQ(i, DW) {
- var DX = "pr-product-answers-holder-" + ++Ci;
- i.write('<div id="' + DX + '"></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "productAnswers",
- methodParent: "display"
- });
- }
- F.display.productAnswers = DQ;
- window.productAnswers = DQ;
- var Ag = 0;
- function CT(i, DW) {
- var DX = "pr-product-answers-snippet-holder-" + ++Ag;
- i.write('<div id="' + DX + '"></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "productAnswersSnippet",
- methodParent: "display"
- });
- }
- F.display.productAnswersSnippet = CT;
- window.productAnswersSnippet = CT;
- var BY = 0;
- function DM(i, DW) {
- var DX = "pr-teaser-review-holder-" + ++BY;
- i.write('<div id="' + DX + '"></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "teaserReview",
- methodParent: "display"
- });
- }
- F.display.teaserReview = DM;
- window.teaserReview = DM;
- var Bg = 0;
- function AB(i, DW) {
- var DX = "pr-image-snippet-holder-" + ++Bg;
- i.write('<div id="' + DX + '"></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "imageSnippet",
- methodParent: "display"
- });
- }
- F.display.imageSnippet = AB;
- window.imageSnippet = AB;
- var G = 0;
- function DS(i, DW) {
- var DX = "pr-profile-holder-" + ++G;
- i.write('<div id="' + DX + '"></div>');
- var DV = document.getElementById(DX);
- DV.write = function(DY) {
- DV.innerHTML += DY;
- }
- ;
- Bl.push({
- docRoot: DV,
- params: DW,
- methodName: "profile",
- methodParent: "display"
- });
- }
- F.display.profile = DS;
- window.profile = DS;
- var BA = document.createElement("script");
- BA.setAttribute("src", Al() + "/fulljs/full.js");
- BA.setAttribute("type", "text/javascript");
- BX(BA);
- return F;
- }
- function Z(DW, DV) {
- var i = AN(DW, DV, CH, window, Ar);
- if (Ar.pr_all_locales_hash.hasOwnProperty(i)) {
- return i;
- } else {
- return Ar.pr_locale;
- }
- }
- function Ac(i) {
- var DW = {};
- for (var DV in i) {
- DW[DV] = i[DV];
- }
- return DW;
- }
- F.cloneObject = Ac;
- function C6(i) {
- if ("https:" == document.location.protocol) {
- return i.replace(/^http:\/\//i, "https://");
- } else {
- return i;
- }
- }
- function Cs(i) {
- var DW = "res.cloudinary.com";
- var DV = (i.toLowerCase().indexOf(DW) > -1);
- if (DV) {
- return true;
- }
- return false;
- }
- function AM(i) {
- if (i) {
- if (!Cs(i)) {
- i = "//images.powerreviews.com" + i;
- }
- }
- return i;
- }
- function p(Db) {
- if (M("pr_simplified_zip")) {
- var DX = new jsSHA("SHA-256","TEXT");
- DX.update(Db);
- var DY = DX.getHash("HEX").toUpperCase();
- var DV = "/";
- var Dc = DY.substr(0, 2) + DV + DY.substr(2, 2) + DV + DY.substr(4, 2) + DV + DY;
- return Dc;
- }
- var Da = 0;
- var DZ;
- for (DZ = 0; DZ < Db.length; DZ++) {
- var De = Db.charCodeAt(DZ);
- De = De * Math.abs(255 - De);
- Da += De;
- }
- Da = Da % 1023;
- Da = Da + "";
- var DW = 4;
- var Dd = Da.split("");
- for (DZ = 0; DZ < DW - Da.length; DZ++) {
- Dd.unshift("0");
- }
- Da = Dd.join("");
- Da = Da.substring(0, DW / 2) + "/" + Da.substring(DW / 2, DW);
- return Da;
- }
- function CU(i) {
- return ["1 Stars", "2 Stars", "3 Stars", "4 Stars", "5 Stars"];
- }
- function Bc(i, DW) {
- if (Bu) {
- return true;
- } else {
- if (!R(DW)) {
- return false;
- }
- }
- Bu = true;
- if (!document.getElementById(A2) && !M("pr_style_sheet_override_url")) {
- var DZ = document.createElement("script");
- DZ.setAttribute("type", "text/javascript");
- i.write('<link rel="stylesheet" href="' + b(DW) + '/engine/pr_styles_review.css" type="text/css" id="' + A2 + '">\n');
- J(DW);
- }
- var Da = b(DW) + "/engine/merchant_styles2.css";
- var DV = AR(M("pr_style_sheet", DW));
- if (M("pr_allow_engine_css_override", DW) && DV) {
- Da = DV;
- }
- if (!document.getElementById(BD)) {
- i.write('<link rel="stylesheet" href="' + Da + '" type="text/css" id="' + BD + '">\n');
- }
- if (window.document && window.location) {
- if (Bp(DW) && !M("pr_style_sheet_override_url")) {
- AF(DW);
- } else {
- if (!!M("pr_style_sheet_override_url")) {
- var DX = document.head || document.getElementsByTagName("head")[0];
- var DY = document.createElement("link");
- DY.href = M("pr_style_sheet_override_url", DW);
- DY.type = "text/css";
- DY.rel = "stylesheet";
- DY.id = A2;
- DX.appendChild(DY);
- }
- }
- }
- r({
- "type": "init"
- }, DW);
- setTimeout(function() {
- r({
- "type": "objects",
- "count": Ca
- }, DW);
- }, 5000);
- return true;
- }
- function Bp(i) {
- if (parseInt(DG("pr_review_display_split_testing_enabled")) === 1) {
- return true;
- }
- return AN("pr_review_display_split_testing_enabled", CH, i, window, Ar) === "true";
- }
- function AF(DV) {
- var DW = document.head || document.getElementsByTagName("head")[0];
- var DY = document.createElement("link");
- DY.href = b(DV) + "/engine/pr_styles_review.css";
- DY.type = "text/css";
- DY.rel = "stylesheet";
- DY.id = A2;
- DW.appendChild(DY);
- var DX = Al(DV);
- var i = DX + "/review-display/config.js";
- var DZ = i.replace(/^(http[s]?:\/\/)|(\/\/)/, "");
- Ce(i, DZ, function(Da) {
- DU(DV, Da, DY);
- }, DV);
- }
- function DU(Dj, DW, Da) {
- var i = M("pr_merchant_group_id");
- var Dd = M("pr_merchant_id");
- var Di = M("pr_site_id");
- var DZ = (DW["mid" + Dd] || DW["mgid" + i + "sid" + Di] || DW["mgid" + i]);
- if (DZ) {
- var DV = DZ;
- var Db;
- var DY = parseInt(DG("pr_review_display_split_test_override"));
- if (DY !== NaN && DV[DY]) {
- Db = DV[DY];
- } else {
- var DX = Math.abs(B(F.tracker.getUID()));
- var Dc = 100;
- var Dh = DX % Dc;
- for (var Dg = 0; Dg < DV.length; Dg++) {
- var Df = DV[Dg];
- if (Dh >= Df.min && Dh < Df.max) {
- Db = Df;
- break;
- }
- }
- var De = "LEGACY";
- if (!!Db) {
- De = Db.group_id;
- }
- C4.trackPageview("rd", {
- locale: M("pr_locale", Dj),
- pageId: M("pr_page_id", Dj),
- merchantId: M("pr_merchant_id", Dj),
- siteId: M("pr_site_id", Dj),
- engineVersion: "2",
- eventType: "test",
- tg: De
- });
- }
- if (!Db) {
- return;
- }
- Da.href = Db.path + "/styles.css";
- Ce(Db.path + "/js/rd-styles.js", null, null, null);
- J(Dj);
- }
- }
- function J(i) {
- var DW = ".pr-stars { background-image: url(" + b(i) + "/engine/images/stars.gif); } .pr-stars-small { background-image: url(" + b(i) + "/engine/images/stars_small.gif); }";
- var DV = document.head || document.getElementsByTagName("head")[0];
- var DX = document.createElement("style");
- DX.type = "text/css";
- if (DX.styleSheet) {
- DX.styleSheet.cssText = DW;
- } else {
- DX.appendChild(document.createTextNode(DW));
- }
- if (!!DV.firstChild) {
- DV.insertBefore(DX, DV.firstChild);
- } else {
- DV.appendChild(DX);
- }
- }
- function B(DZ) {
- var DY = 0, DW, DX, DV;
- if (DZ.length == 0) {
- return DY;
- }
- for (DW = 0,
- DV = DZ.length; DW < DV; DW++) {
- DX = DZ.charCodeAt(DW);
- DY = ((DY << 5) - DY) + DX;
- DY |= 0;
- }
- return DY;
- }
- function DG(DW) {
- if (!V) {
- V = {};
- for (var DV = document.cookie.split(/;\s*/), DY = DV.length - 1; DY >= 0; DY--) {
- var DZ = DV[DY].split("=");
- var DX = DZ[0];
- var Da = DZ[1];
- V[DX] = Da;
- }
- }
- return V[DW];
- }
- function R(i) {
- if (CO) {
- return true;
- } else {
- if (!M("pr_page_id", i) && !M("pr_merchant_user_id", i)) {
- return false;
- }
- }
- CO = true;
- return true;
- }
- function BG(i, DV, DW) {
- if (!document.getElementById(i)) {
- setTimeout(function() {
- BG(i, DV, DW);
- }, 1000);
- } else {
- B9(i, DV, DW);
- }
- }
- function B9(i, DW, DX) {
- try {
- if (!DW) {
- DW = "";
- }
- C2(function() {
- Cj(document.getElementById(i), DW);
- if (DX) {
- DX();
- }
- });
- } catch (DV) {}
- }
- F.common.writeContentToDivNested = B9;
- function Cj(DW, DV) {
- if (DW.parentNode) {
- var i = document.createElement("div");
- i.id = DW.id;
- i.className = DW.className;
- i.innerHTML = DV;
- DW.parentNode.replaceChild(i, DW);
- return i;
- } else {
- DW.innerHTML = DV;
- return DW;
- }
- }
- function C2(i) {
- if (typeof i == "function") {
- (function() {
- if (X()) {
- try {
- document.documentElement.doScroll("left");
- } catch (DV) {
- setTimeout(arguments.callee, 50);
- return;
- }
- }
- i();
- i = null;
- }
- )();
- }
- }
- function X() {
- return typeof document.all != "undefined" && typeof window.opera == "undefined" && !(navigator.vendor == "KDE");
- }
- function w(i) {
- new Image().src = i;
- }
- function b(DV) {
- var i = M("pr_zip_location", DV);
- if (i.charAt(i.length - 1) != "/") {
- i += "/";
- }
- i += M("pr_powerreviews_root", DV);
- return i;
- }
- F.common.getDocRoot = b;
- function C8(i) {
- return (i + "").replace(/\W/g, "__");
- }
- function A9(DV, DX, DW, i) {
- this.pageId = DV;
- this.fullReviewCount = DX;
- this.quickReviewCount = DW;
- 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 CY(DV, i, DW) {
- return DW && DW["locales"] && DW["locales"][i] && DW["locales"][i]["p" + DV];
- }
- function BM(DW) {
- var DX = document.getElementsByName(DW);
- for (var DV = 0; DV < DX.length; DV++) {
- if (DX[DV].checked) {
- return DX[DV].value;
- }
- }
- return null;
- }
- function AS(i, DW, DV) {
- return i.replace(new RegExp(DW,"g"), DV);
- }
- function AR(i) {
- return i && i.replace(/^\s+|\s+$/g, "");
- }
- function AE(i) {
- if (typeof i == "string") {
- return i.replace(/\n/g, "<br />");
- } else {
- return i;
- }
- }
- function Ce(DW, DX, Da, DV) {
- var DY = b(DV);
- var DX = DX || DW.substring(DW.indexOf(DY) + DY.length + 1);
- if (B0[DX]) {
- Da(B0[DX]);
- } else {
- var i = document.createElement("script");
- var DZ = function() {
- if (B0[DX]) {
- if (i.parentNode) {
- i.parentNode.removeChild(i);
- delete i;
- }
- Da(B0[DX]);
- }
- };
- if (X()) {
- i.onreadystatechange = DZ;
- } else {
- i.onload = DZ;
- }
- i.type = "text/javascript";
- i.charset = "utf-8";
- i.src = DW;
- document.getElementsByTagName("head")[0].appendChild(i);
- Ca++;
- }
- }
- function x(i, DV, DW) {
- Bj[DV] = DW;
- Cl(i);
- }
- function Bq() {
- return Bj;
- }
- F.common.getCallbacks = Bq;
- function Cl(DV) {
- var i = document.createElement("script");
- i.type = "text/javascript";
- i.charset = "utf-8";
- i.src = DV;
- document.getElementsByTagName("head")[0].appendChild(i);
- }
- function h(DW) {
- var i = DW.key;
- if (i) {
- var DV = Bj[i];
- if (DV) {
- DV(DW);
- }
- }
- }
- F.common.generalCallback = h;
- function DN(DZ, Da, DV) {
- if (DZ.className) {
- var DW = DZ.className.split(" ");
- if (DV) {
- var DY = Da.toUpperCase();
- for (var DX = 0; DX < DW.length; DX++) {
- if (DW[DX].toUpperCase() == DY) {
- DW.splice(DX, 1);
- DX--;
- }
- }
- }
- DW[DW.length] = Da;
- DZ.className = DW.join(" ");
- } else {
- DZ.className = Da;
- }
- }
- function DP(DY, DZ) {
- if (DY.className) {
- var DV = DY.className.split(" ");
- var DX = DZ.toUpperCase();
- for (var DW = 0; DW < DV.length; DW++) {
- if (DV[DW].toUpperCase() == DX) {
- DV.splice(DW, 1);
- DW--;
- }
- }
- DY.className = DV.join(" ");
- }
- }
- function q(i, DW) {
- var DV = new RegExp("\\b" + DW + "\\b");
- return DV.test(i.className);
- }
- function C0(Dc, Dd, De) {
- if (!Dc) {
- return [];
- }
- var Da = (Dd == "*" && Dc.all) ? Dc.all : Dc.getElementsByTagName(Dd);
- var DZ = new Array();
- var Df = new Array();
- if (typeof De == "object") {
- for (var DY = 0; DY < De.length; DY++) {
- Df.push(new RegExp("(^|\\s)" + De[DY].replace(/\-/g, "\\-") + "(\\s|$)"));
- }
- } else {
- Df.push(new RegExp("(^|\\s)" + De.replace(/\-/g, "\\-") + "(\\s|$)"));
- }
- var DV;
- var Db;
- for (var DX = 0; DX < Da.length; DX++) {
- DV = Da[DX];
- Db = true;
- for (var DW = 0; DW < Df.length; DW++) {
- if (!Df[DW].test(DV.className)) {
- Db = false;
- break;
- }
- }
- if (Db) {
- DZ.push(DV);
- }
- }
- return DZ;
- }
- function Aw(DV, i) {
- if (i(DV) == true) {
- return DV;
- } else {
- if (DV.parentNode) {
- return arguments.callee(DV.parentNode, i);
- } else {
- return false;
- }
- }
- }
- function BB(i, DV) {
- i.parentNode.insertBefore(DV, i.nextSibling);
- }
- function Cd(DV, i) {
- f[DV] = i;
- if (i) {
- i._key = DV;
- }
- }
- function Ah(i) {
- if (i) {
- return i["_key"];
- } else {
- return "";
- }
- }
- function A7(i) {
- return f[i] || {};
- }
- F.common.getOptions = A7;
- function CJ(DV, i, DZ, DX) {
- var DY = s[DV + i];
- if (!DY) {
- var DW = b(DX) + "/content/" + p(DV) + "/contents.js";
- if (M("pr_simplified_zip")) {
- DW = b(DX) + "/content/" + i + "/" + p(DV) + "/contents.js";
- }
- Ce(DW, null, function(Da) {
- DY = CY(DV, i, Da);
- s[DV + i] = DY ? DY : "none";
- DZ(DY);
- }, DX);
- } else {
- if (DY == "none") {
- DZ(null);
- } else {
- DZ(DY);
- }
- }
- }
- function Cv(DV, i, DY, DX) {
- var DW = b(DX) + "/content/" + p(DV) + "/" + DV + "-" + i + "-rollup.js";
- if (M("pr_simplified_zip")) {
- DW = b(DX) + "/content/" + i + "/" + p(DV) + "/" + i + "-rollup.js";
- }
- Ce(DW, null, function(DZ) {
- if (DZ) {
- DY(DZ.rollup);
- }
- }, DX);
- }
- function Af(DV, i, DY, DX) {
- if (!t) {
- var DW = b(DX) + "/content/" + p(DV) + "/" + DV + "-" + i + "-meta.js";
- if (M("pr_simplified_zip")) {
- DW = b(DX) + "/content/" + i + "/" + p(DV) + "/" + i + "-meta.js";
- }
- Ce(DW, null, function(DZ) {
- t = DZ ? DZ.metadata : null;
- DY();
- }, DX);
- } else {
- DY();
- }
- }
- function DO(DV, i, DY, DZ, DX) {
- if (!L[DV + "-" + i + "-" + DY]) {
- var DW = b(DX) + "/content/" + p(DV) + "/" + DV + "-" + i + "-" + DY + "-reviews.js";
- if (M("pr_simplified_zip")) {
- DW = b(DX) + "/content/" + i + "/" + p(DV) + "/" + i + "-" + DY + "-reviews.js";
- }
- Ce(DW, null, function(Dd) {
- var Db = [];
- for (var Dc = 0; Dc < Dd.length; Dc++) {
- var Da = Dd[Dc].r;
- AI[Da.id] = Da;
- Db.push(Da);
- }
- L[DV + "-" + i + "-" + DY] = Db;
- DZ();
- }, DX);
- } else {
- DZ();
- }
- }
- function y(DW, DV, Da, Db, DX) {
- var DZ = Da.length;
- for (var DY = 0; DY < Da.length; DY++) {
- DO(DW, DV, Da[DY], function() {
- if (--DZ <= 0) {
- Db();
- }
- }, DX);
- }
- }
- function U(i) {
- return Math.round(i * 2) / 2;
- }
- function r(DV, i) {}
- function DA(DY, DV) {
- var i = null;
- if (DY) {
- var DW = M("pr_badge_table", DV);
- for (var DX = 0; DX < DY.length; DX++) {
- i = DW[DY[DX]];
- if (i) {
- break;
- }
- }
- }
- return i;
- }
- function Ae(DW, Da, Dc) {
- var Dd = [];
- if (DW) {
- var DZ = b(Dc);
- var DX = AS(M("pr_expert_badge_definitions_url", Dc), "~~~LOCALE~~~", Da);
- var DV = DW.locales[Da];
- var Db = (DW.label == "staff" || DW.label == "staff-expert");
- if (DV) {
- var DY = DW.label.replace(/[^-_a-zA-Z]/g, "_");
- var i = "pr-review-author-" + DY + "-wrapper";
- Dd.push('<div class="');
- Dd.push(i);
- Dd.push(" ");
- Dd.push(i);
- Dd.push("-");
- Dd.push(Da);
- Dd.push('">');
- if (Db) {
- Dd.push('<a href="');
- Dd.push(DX);
- Dd.push('">');
- }
- Dd.push('<img class="pr-badge pr-');
- Dd.push(DY);
- Dd.push('" src="');
- Dd.push(DZ);
- Dd.push("/engine/images/badges/");
- Dd.push(DV.filename);
- Dd.push('" alt="');
- Dd.push(DV.hovertext);
- Dd.push('" title="');
- Dd.push(DV.hovertext);
- Dd.push('" />');
- if (Db) {
- Dd.push("</a>");
- }
- Dd.push("</div>");
- }
- }
- Dd.push("<!-- woozle -->");
- return Dd.join("");
- }
- function A6(DX, DV, DW) {
- var i = [];
- i.push('<div class="pr-fb-follow-thankyou-wrapper"><p class="pr-fb-follow-thankyou-label">');
- i.push("<span><b>Thank You.</b></span>You have successfully signed up to receive emails.");
- i.push("</p></div>");
- return i.join("");
- }
- function CZ(DX, DV, DW) {
- var i = [];
- i.push('<div class="pr-fb-follow-error-wrapper"><p class="pr-fb-follow-error-label"><span>');
- i.push("Sorry");
- i.push("</span></p><p>");
- i.push("We are having difficulties submitting your email right now. Please try again later.");
- i.push("</p></div>");
- return i.join("");
- }
- function Al(DV) {
- var DW = AN("pr_ui_library_base_url", CH, DV, window, Ar);
- var i = /^(?:http(?:s)?:\/\/)?(?:[^\.]+\.)?(powerreviews\.com|localhost)(.*)/.test(DW);
- if (!i) {
- DW = AN("pr_ui_library_base_url", Ar);
- }
- return DW;
- }
- function BE(DV) {
- if (!!DG("pr_war_server_path")) {
- return DG("pr_war_server_path");
- }
- var i = Al(DV);
- var DW = AN("pr_war_server_path", CH, DV, window, Ar);
- if (!!DW && DW !== "0") {
- return i + "/" + DW;
- } else {
- return "";
- }
- }
- F.getWARServerPath = BE;
- if (!F.submission) {
- F.submission = {
- getWARServerPath: BE
- };
- }
- function DR(i, DV, DX) {
- var DW;
- if (i) {
- DW = M(i, DX);
- }
- if (!DW) {
- var DY = M("pr_base_services_urls", DX);
- DW = DY["-"];
- var DZ = M("pr_site_id", DX);
- if (DZ && DY[DZ]) {
- DW = DY[DZ];
- }
- DW += DV;
- }
- return DW;
- }
- function Av(DV) {
- var DW = M("pr_base_follow_landing_urls", DV);
- var i = DW["-"];
- var DX = M("pr_site_id", DV);
- if (DX && DW[DX]) {
- i = DW[DX];
- }
- i += "/fbonsite/";
- return i;
- }
- function z(DX, DV) {
- var i = DR(null, "FacebookDisplayProfileController.dox", DV);
- var DW = Ak(DX);
- if (DW.length) {
- i += "?" + DW;
- }
- return i;
- }
- function CN(DX, DV) {
- var i = DR(null, "FacebookReviewStatementController.dox?context=STATEMENT", DV);
- var DW = Ak(DX);
- if (DW.length) {
- i += "&" + DW;
- }
- return i;
- }
- function Cz(DX, DV) {
- var i = DR(null, "FacebookGetAdviceController/getAdviceQuestionForm.dox", DV);
- var DW = Ak(DX);
- if (DW.length) {
- i += "?" + DW;
- }
- return i;
- }
- function o(DX, DV) {
- var i = Av(DV);
- i += "askReviewer/displayForm.dox";
- var DW = Ak(DX);
- if (DW.length) {
- i += "?" + DW;
- }
- return i;
- }
- function Az(DX, DW) {
- var i = Z("pr_locale", DW);
- var DZ = M("pr_merchant_group_id", DW);
- var DY = BI(M("pr_site_id", DW) || "-");
- var DV = o({
- "locale": i,
- "merchantGroupId": DZ,
- "siteId": DY,
- "sharedReviewId": DX.sharedReviewId
- }, DW);
- Ao(DV, 520, 600, {
- "location": "no"
- });
- }
- F.common.showAskQuestionPopup = Az;
- function DD(DY, DX) {
- var DW = M("pr_page_id", DX);
- var i = Z("pr_locale", DX);
- var Db = M("pr_merchant_group_id", DX);
- var Da = M("pr_site_id", DX) || "-";
- var DZ = DY.avgRating || 0;
- var DV = Cz({
- "mgId": Db,
- "siteId": Da,
- "pageId": DW,
- "avgRating": DZ,
- "locale": i
- }, DX);
- Ao(DV, 450, 600, {
- "location": "no"
- });
- }
- F.common.showFacebookGetAdvicePopup = DD;
- function Ak(DV) {
- var i = [];
- for (var DW in DV) {
- i.push(DW + "=" + BI(DV[DW]));
- }
- return i.join("&");
- }
- function Cx(DY, DW, i) {
- var DZ = Math.min((75 / DW), (100 / i));
- var DV = Math.floor(DZ * DW);
- var DX = Math.floor(DZ * i);
- return "//res.cloudinary.com/powerreviews/image/upload/f_auto,w_" + DV + ",h_" + DX + ",q_50/" + DY;
- }
- F.common.constructThumbnailUri = Cx;
- function AY(DX, DV, DW, i) {
- if (DV.indexOf("cloudinary") === -1) {
- return;
- }
- var DY = DV.match(/\/(\w+\/\w+)\./)[1];
- DX.target.src = Cx(DY, DW, i);
- }
- F.common.cloudinaryThumbnailFallback = AY;
- function B7(DW, DX, i, DV) {
- window.open("http://images2.powerreviews.com/media_popup.html?type=image&url=" + BI(DW), "sizedWindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=" + DX + ",height=" + i + ",top=100,left=100");
- }
- F.common.showImagePopup = B7;
- window.showImagePopup = B7;
- function Ao(i, Dc, DV, DZ) {
- var DX = {
- "toolbar": "no",
- "directories": "no",
- "status": "no",
- "menubar": "no",
- "scrollbars": "yes",
- "resizable": "yes",
- "location": "yes",
- "top": "200",
- "left": "200"
- };
- var Da = [];
- for (var DW in DX) {
- Da.push(DW + "=" + ((DZ && DZ[DW]) || DX[DW]));
- }
- var DY = Da.join(",");
- var Db = window.open(i, "smallWindow", "width=" + DV + ",height=" + Dc + "," + DY);
- if (window.focus) {
- Db.focus();
- }
- }
- F.common.showSmallPopup = Ao;
- window.showSmallPopup = Ao;
- function AG(DV, i) {
- window.open("http://images2.powerreviews.com/media_popup.html?type=video&url=" + BI(DV), "sizedWindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=435,height=350,top=100,left=100");
- }
- F.common.showVideoPopup = AG;
- window.showVideoPopup = AG;
- function u(DY, DW, DV, DX) {
- var i = function() {
- DP(document.getElementById(DY.target), "pr-open");
- DN(document.getElementById(DY.target), "pr-closed");
- };
- var DZ = function() {
- DP(document.getElementById(DY.target), "pr-closed");
- DN(document.getElementById(DY.target), "pr-open");
- };
- if (window.event) {
- DX = window.event;
- DX.cancelBubble = true;
- target = window.event.srcElement;
- currentTarget = event.srcElement.id;
- } else {
- if (DX) {
- DX.stopPropagation();
- target = DX.target;
- currentTarget = DX.currentTarget.id;
- } else {
- return;
- }
- }
- if (DW == "show") {
- if (document.getElementById(DY.target).className != "pr-open") {
- this.timedShow = setTimeout(DZ, 400);
- } else {
- if (Aw(target, function(Da) {
- if (Da.id == DY.target) {
- return true;
- }
- })) {
- if (this.timedHide != null) {
- window.clearTimeout(this.timedHide);
- }
- }
- }
- } else {
- if (DW == "hide") {
- if (this.timedHide != null) {
- window.clearTimeout(this.timedShow);
- }
- if (currentTarget == DY.link || currentTarget == DY.target || Aw(target, function(Da) {
- if (Da.id == DY.target) {
- return true;
- }
- })) {
- this.timedHide = setTimeout(i, 800);
- } else {
- if (this.timedHide != null) {
- window.clearTimeout(this.timedHide);
- }
- }
- }
- }
- }
- F.common.togglePopOut = u;
- function DL(DV) {
- var i = document.getElementById(DV);
- DP(i, "pr-hidden");
- }
- F.display.showElement = DL;
- function l(DV) {
- var i = document.getElementById(DV);
- DN(i, "pr-hidden");
- }
- F.display.hideElement = l;
- function AV(DY, DZ, DW, i) {
- var DV = DY.substring(DZ, DW);
- var DX = DV.lastIndexOf(" ");
- DV = DV.substring(0, DX);
- if (i) {
- DV += "...";
- }
- return DV;
- }
- function AC(DX, DZ, DW, i) {
- var DV = DX.substring(DZ, DW);
- var DY = DV.lastIndexOf(";");
- if (DY > DW - 8) {
- DV = DV.substring(0, DY);
- }
- if (i) {
- DV += "...";
- }
- return DV;
- }
- function C5(i, DW) {
- var DV = document.getElementById(DW).innerHTML;
- BG(i, DV);
- }
- function Ab(i) {
- var DV = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
- return DV.test(i);
- }
- function DC(DW, De) {
- var DV = j.parse(DW.getAttribute("prData"));
- var Db = document.getElementById(DV.target);
- var Da = Db.value;
- var Dd = document.getElementById("pr-fb-follow-errorMsg-" + DV.locale + "-" + DV.pageId);
- if (q(DW, "disabled")) {
- return false;
- } else {
- if (Ab(Da)) {
- if (!q(Dd, "pr-hidden")) {
- DN(Dd, "pr-hidden");
- }
- var DY = document.createElement("img");
- DY.src = b(De) + "/engine/images/pr_loading.gif";
- DY.style.cssText = "position:absolute;top:25px;right:50px;";
- var DX = function(Dg) {
- var Df = Dg;
- if (Df.result.status.toLowerCase() == "ok") {
- var Dh = A6(DV, DV.locale, De);
- } else {
- var Dh = CZ(DV, DV.locale, De);
- }
- BG("pr-fb-follow-info-wrapper-" + DV.locale + "-" + DV.pageId, Dh);
- DN(DY, "pr-hidden");
- DP(DW, "pr-hidden");
- DN(DW, "disabled");
- };
- var DZ = Av(De);
- var Dc = "verifyFollowEmail-" + DV.type + "-" + DV.keyValue;
- var i = DZ + DV.type + "/" + DV.locale + "/" + DV.merchantGroupId + "/" + DV.siteId + "/" + DV.keyValue + "?email=" + encodeURIComponent(Da) + "&key=" + encodeURIComponent(Dc);
- x(i, Dc, DX);
- Db.disabled = true;
- BB(DW, DY);
- DN(DW, "pr-hidden");
- } else {
- DP(Dd, "pr-hidden");
- }
- }
- }
- F.common.validateAndProcessEmail = DC;
- function BN(DY, DX, DV) {
- var DW = document.getElementById(DY);
- if (DW != null) {
- var i = DW.value;
- if (i == DX) {
- DW.value = "";
- DP(DW, DV);
- }
- }
- }
- function v(DY, DX, DV) {
- var DW = document.getElementById(DY);
- if (DW != null) {
- var i = AR(DW.value);
- if (i == "") {
- DW.value = DX;
- DN(DW, DV);
- }
- }
- }
- var CE = {
- _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
- encode: function(DX) {
- var DV = "";
- var De, Dc, Da, Dd, Db, DZ, DY;
- var DW = 0;
- DX = CE._utf8_encode(DX);
- while (DW < DX.length) {
- De = DX.charCodeAt(DW++);
- Dc = DX.charCodeAt(DW++);
- Da = DX.charCodeAt(DW++);
- Dd = De >> 2;
- Db = ((De & 3) << 4) | (Dc >> 4);
- DZ = ((Dc & 15) << 2) | (Da >> 6);
- DY = Da & 63;
- if (isNaN(Dc)) {
- DZ = DY = 64;
- } else {
- if (isNaN(Da)) {
- DY = 64;
- }
- }
- DV = DV + this._keyStr.charAt(Dd) + this._keyStr.charAt(Db) + this._keyStr.charAt(DZ) + this._keyStr.charAt(DY);
- }
- return DV;
- },
- decode: function(DX) {
- var DV = "";
- var De, Dc, Da;
- var Dd, Db, DZ, DY;
- var DW = 0;
- DX = DX.replace(/[^A-Za-z0-9\+\/\=]/g, "");
- while (DW < DX.length) {
- Dd = this._keyStr.indexOf(DX.charAt(DW++));
- Db = this._keyStr.indexOf(DX.charAt(DW++));
- DZ = this._keyStr.indexOf(DX.charAt(DW++));
- DY = this._keyStr.indexOf(DX.charAt(DW++));
- De = (Dd << 2) | (Db >> 4);
- Dc = ((Db & 15) << 4) | (DZ >> 2);
- Da = ((DZ & 3) << 6) | DY;
- DV = DV + String.fromCharCode(De);
- if (DZ != 64) {
- DV = DV + String.fromCharCode(Dc);
- }
- if (DY != 64) {
- DV = DV + String.fromCharCode(Da);
- }
- }
- DV = CE._utf8_decode(DV);
- return DV;
- },
- _utf8_encode: function(DV) {
- DV = DV.replace(/\r\n/g, "\n");
- var i = "";
- for (var DX = 0; DX < DV.length; DX++) {
- var DW = DV.charCodeAt(DX);
- if (DW < 128) {
- i += String.fromCharCode(DW);
- } else {
- if ((DW > 127) && (DW < 2048)) {
- i += String.fromCharCode((DW >> 6) | 192);
- i += String.fromCharCode((DW & 63) | 128);
- } else {
- i += String.fromCharCode((DW >> 12) | 224);
- i += String.fromCharCode(((DW >> 6) & 63) | 128);
- i += String.fromCharCode((DW & 63) | 128);
- }
- }
- }
- return i;
- },
- _utf8_decode: function(DV) {
- var DW = "";
- var DY = 0;
- var DZ = 0;
- var DX = 0;
- while (DY < DV.length) {
- DZ = DV.charCodeAt(DY);
- if (DZ < 128) {
- DW += String.fromCharCode(DZ);
- DY++;
- } else {
- if ((DZ > 191) && (DZ < 224)) {
- DX = DV.charCodeAt(DY + 1);
- DW += String.fromCharCode(((DZ & 31) << 6) | (DX & 63));
- DY += 2;
- } else {
- DX = DV.charCodeAt(DY + 1);
- c3 = DV.charCodeAt(DY + 2);
- DW += String.fromCharCode(((DZ & 15) << 12) | ((DX & 63) << 6) | (c3 & 63));
- DY += 3;
- }
- }
- }
- return DW;
- }
- };
- function CS(i) {
- if (i.length < 2) {
- i = "0" + i;
- }
- return i;
- }
- function Ct(i, DV) {
- if (i < 12) {
- return DV[0];
- }
- return DV[1];
- }
- function B4(i) {
- var DV = (i + 12) % 12;
- if (DV == 0) {
- return "12";
- }
- return DV.toString();
- }
- function DH(i) {
- var DV = new Date(i.getFullYear(),0,1);
- return Math.ceil((i - DV) / 86400000);
- }
- function CV(DV, i) {
- return !(DV < i || i < DV);
- }
- function AL(Dj, Dh, DW) {
- try {
- var Dg = {
- "en_US": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""]
- };
- var Dd = Dg[Dh];
- var Dm = {
- "en_US": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""]
- };
- var De = Dm[Dh];
- var Dk = {
- "en_US": ["", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
- };
- var Db = Dk[Dh];
- var DX = {
- "en_US": ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
- };
- var Dn = DX[Dh];
- var DV = {
- "en_US": ["AM", "PM"]
- };
- var i = DV[Dh];
- var Da = Dj.split("T")[0].split("-");
- var DZ = Dj.split("T")[1].split(":");
- var Dc = Da[1];
- if (Dc[0] == "0") {
- Dc = Dc[1];
- }
- Dc = parseInt(Dc) - 1;
- var Dl = new Date(Date.UTC(Da[0], Dc, Da[2], DZ[0], DZ[1], DZ[2]));
- var DY = [["MMMM", De[Dl.getMonth()]], ["MMM", Dd[Dl.getMonth()]], ["MM", CS((Dl.getMonth() + 1).toString())], ["M", (Dl.getMonth() + 1).toString()], ["D", Dl.getDOY().toString()], ["dd", CS(Dl.getDate().toString())], ["d", Dl.getDate().toString()], ["EEEE", Dn[Dl.getDay() + 1]], ["EEE", Db[Dl.getDay() + 1]], ["yyyy", Dl.getFullYear().toString()], ["y", Dl.getFullYear().toString().substring(2, 4)], ["H", Dl.getHours().toString()], ["h", B4(Dl.getHours())], ["a", Ct(Dl.getHours(), i)], ["m", Dl.getMinutes().toString()], ["s", Dl.getSeconds().toString()]];
- var Df = "{0,date,M/d/yyyy}";
- Df = Df.replace(/{.*?}/g, function(Do) {
- Do = Do.substring(Do.indexOf(",") + 1);
- Do = Do.substring(Do.indexOf(",") + 1);
- Do = Do.replace("}", "");
- var Dq = "";
- var Dp = Do;
- while (Dp != "") {
- var Ds = false;
- for (var Dt = 0; Dt < DY.length && !Ds; Dt++) {
- var Dr = DY[Dt][0];
- var Du = DY[Dt][1];
- if (Dp.find(Dr) == 0) {
- Dq += Du;
- Dp = Dp.substring(Dr.length);
- Ds = true;
- }
- }
- if (!Ds) {
- Dq += Dp[0];
- Dp = Dp.substring(1);
- }
- }
- return Dq;
- });
- return Df;
- } catch (Di) {
- return "";
- }
- }
- function AO(i) {
- return BI(CE.encode(i));
- }
- function Cf(i, DX) {
- var DV = document.documentElement.getBoundingClientRect();
- var DZ = i.getBoundingClientRect();
- var DY = DZ.top - DV.top;
- var DW = document.body;
- if (document.documentElement.scrollTop > 0) {
- DW = document.documentElement;
- }
- return A1(DW, DY, DX);
- }
- function A1(DW, DZ, DY) {
- DZ = Math.round(DZ);
- DY = Math.round(DY);
- if (DY < 0) {
- return Promise.reject("bad duration");
- }
- if (DY === 0) {
- DW.scrollTop = DZ;
- return Promise.resolve();
- }
- var DX = Date.now();
- var DV = DX + DY;
- var Da = DW.scrollTop;
- var Db = DZ - Da;
- var i = function(Df, De, Dd) {
- if (Dd <= Df) {
- return 0;
- }
- if (Dd >= De) {
- return 1;
- }
- var Dc = (Dd - Df) / (De - Df);
- return Dc * Dc * (3 - 2 * Dc);
- };
- return new Promise(function(De, Dd) {
- var Dc = DW.scrollTop;
- var Df = function() {
- if (DW.scrollTop != Dc && !Bb()) {
- return;
- }
- var Dh = Date.now();
- var Dg = i(DX, DV, Dh);
- var Di = Math.round(Da + (Db * Dg));
- DW.scrollTop = Di;
- if (Dh >= DV) {
- De();
- return;
- }
- if (DW.scrollTop === Dc && DW.scrollTop !== Di) {
- De();
- return;
- }
- Dc = DW.scrollTop;
- setTimeout(Df, 0);
- };
- setTimeout(Df, 0);
- }
- );
- }
- function Bb() {
- return (("ontouchstart"in window) || (navigator.msMaxTouchPoints > 0));
- }
- var j;
- if (!j) {
- j = {};
- }
- (function() {
- var DX = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, DZ = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, Da, DV, Dc = {
- "\b": "\\b",
- "\t": "\\t",
- "\n": "\\n",
- "\f": "\\f",
- "\r": "\\r",
- '"': '\\"',
- "\\": "\\\\"
- }, Db;
- function i(Dd) {
- DZ.lastIndex = 0;
- return DZ.test(Dd) ? '"' + Dd.replace(DZ, function(De) {
- var Df = Dc[De];
- return typeof Df === "string" ? Df : "\\u" + ("0000" + De.charCodeAt(0).toString(16)).slice(-4);
- }) + '"' : '"' + Dd + '"';
- }
- function DW() {
- return n < 10 ? "0" + n : n;
- }
- function DY(Dk, Dh) {
- var Df, De, Dl, Dd, Di = Da, Dg, Dj = Dh[Dk];
- if (Dj && typeof Dj === "object" && typeof Dj.toJSON === "function") {
- Dj = Dj.toJSON(Dk);
- }
- if (typeof Db === "function") {
- Dj = Db.call(Dh, Dk, Dj);
- }
- switch (typeof Dj === "object" && Object.prototype.toString.apply(Dj)) {
- case "[object Boolean]":
- case "[object Number]":
- case "[object String]":
- Dj = Dj.valueOf();
- }
- switch (typeof Dj) {
- case "string":
- return i(Dj);
- case "number":
- return isFinite(Dj) ? String(Dj) : "null";
- case "boolean":
- case "null":
- return String(Dj);
- case "object":
- if (!Dj) {
- return "null";
- }
- Da += DV;
- Dg = [];
- if (Object.prototype.toString.apply(Dj) === "[object Date]") {
- return isFinite(Dj.valueOf()) ? Dj.getUTCFullYear() + "-" + DW(Dj.getUTCMonth() + 1) + "-" + DW(Dj.getUTCDate()) + "T" + DW(Dj.getUTCHours()) + ":" + DW(Dj.getUTCMinutes()) + ":" + DW(Dj.getUTCSeconds()) + "Z" : null;
- }
- if (Object.prototype.toString.apply(Dj) === "[object Array]") {
- Dd = Dj.length;
- for (Df = 0; Df < Dd; Df += 1) {
- Dg[Df] = DY(Df, Dj) || "null";
- }
- Dl = Dg.length === 0 ? "[]" : Da ? "[\n" + Da + Dg.join(",\n" + Da) + "\n" + Di + "]" : "[" + Dg.join(",") + "]";
- Da = Di;
- return Dl;
- }
- if (Db && typeof Db === "object") {
- Dd = Db.length;
- for (Df = 0; Df < Dd; Df += 1) {
- if (typeof Db[Df] === "string") {
- De = Db[Df];
- Dl = DY(De, Dj);
- if (Dl) {
- Dg.push(i(De) + (Da ? ": " : ":") + Dl);
- }
- }
- }
- } else {
- for (De in Dj) {
- if (Object.prototype.hasOwnProperty.call(Dj, De)) {
- Dl = DY(De, Dj);
- if (Dl) {
- Dg.push(i(De) + (Da ? ": " : ":") + Dl);
- }
- }
- }
- }
- Dl = Dg.length === 0 ? "{}" : Da ? "{\n" + Da + Dg.join(",\n" + Da) + "\n" + Di + "}" : "{" + Dg.join(",") + "}";
- Da = Di;
- return Dl;
- }
- }
- if (typeof j.stringify !== "function") {
- j.stringify = function(Dg, De, Df) {
- var Dd;
- Da = "";
- DV = "";
- if (typeof Df === "number") {
- for (Dd = 0; Dd < Df; Dd += 1) {
- DV += " ";
- }
- } else {
- if (typeof Df === "string") {
- DV = Df;
- }
- }
- Db = De;
- if (De && typeof De !== "function" && (typeof De !== "object" || typeof De.length !== "number")) {
- throw new Error("JSON.stringify");
- }
- return DY("", {
- "": Dg
- });
- }
- ;
- }
- if (typeof j.parse !== "function") {
- j.parse = function(Dg, Dd) {
- var Df;
- function De(Dk, Dj) {
- var Di, Dh, Dl = Dk[Dj];
- if (Dl && typeof Dl === "object") {
- for (Di in Dl) {
- if (Object.prototype.hasOwnProperty.call(Dl, Di)) {
- Dh = De(Dl, Di);
- if (Dh !== undefined) {
- Dl[Di] = Dh;
- } else {
- delete Dl[Di];
- }
- }
- }
- }
- return Dd.call(Dk, Dj, Dl);
- }
- Dg = String(Dg);
- DX.lastIndex = 0;
- if (DX.test(Dg)) {
- Dg = Dg.replace(DX, function(Dh) {
- return "\\u" + ("0000" + Dh.charCodeAt(0).toString(16)).slice(-4);
- });
- }
- if (/^[\],:{}\s]*$/.test(Dg.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, "@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:\s*\[)+/g, ""))) {
- Df = POWERREVIEWS.ext.evaluate("(" + Dg + ")");
- return typeof Dd === "function" ? De({
- "": Df
- }, "") : Df;
- }
- throw new SyntaxError("JSON.parse");
- }
- ;
- }
- }());
- var AZ = {};
- var Ap = 0;
- var Ai = 1;
- var P = 2;
- var C1 = 3;
- var AH = 4;
- var CB = 5;
- var An = null;
- var Bt = new Date();
- var A0 = {};
- var I = {};
- var Bx = {};
- function Q(i) {
- var DW = M("pr_site_id", i);
- var DV;
- if (DW) {
- DV = M("pr_merchant_table", i)["siteId-" + M("pr_site_id", i)];
- }
- if (!DV) {
- DV = M("pr_merchant_table", i)["m" + M("pr_merchant_id", i)];
- }
- return DV;
- }
- function W(i, DV) {
- var DW = M("pr_analytics_script_src", DV);
- if (DW) {
- i.write('<script src="' + DW + '" type="text/javascript"><\/script>');
- }
- }
- function CC(DX, DZ) {
- if (Bc(DX, DZ)) {
- var DY = M("pr_page_id", DZ);
- var DW = C8(DY);
- var DV = Z("pr_locale", DZ);
- var i = "engine-" + DW + "-" + DV;
- Cd(i, DZ);
- var Da = document.getElementById("pr-review-engine-" + DW);
- if (!Da) {
- A4(DX, DW);
- }
- var Db = Da ? true : false;
- BH(DW, DV, Db, DZ);
- Cp(DW, DV, Db, DZ);
- if (A(DZ)) {
- if (!!DZ.pr_product_description) {
- DZ.pr_product_description = DZ.pr_product_description.substr(0, 300);
- }
- CK(DZ);
- }
- W(DX, DZ);
- if (!Da || M("pr_overwrite_inline_content", DZ)) {
- k(DW, DV, i, DZ);
- } else {
- Bf(DY, DW, DZ);
- B6(DZ);
- }
- BU(DW, DV, DZ);
- }
- }
- F.display.engine = CC;
- window.engine = CC;
- function Bf(DV, i, DW) {
- var DZ = document.getElementById("writeReview") || document.getElementById("write-review-" + i);
- if (DZ) {
- var DX = N(DV, DW);
- if (DX) {
- DZ.href = DX;
- var DY = document.getElementById("pr-snapshot-footer-" + i);
- if (DY) {
- DY.style.display = "";
- }
- }
- } else {
- setTimeout(function() {
- Bf(DV, i, DW);
- }, 100);
- }
- }
- function k(DW, DV, i, DY) {
- var DX = M("pr_page_id", DY);
- Am(DW, DV, i, DY, function() {
- C7(DW);
- Bf(DX, DW, DY);
- B6(DY);
- });
- }
- F.display.displayInitialReviewBoxWrapper = k;
- function N(i, DV) {
- var DW = M("pr_page_id_variant", DV);
- var DX = M("pr_write_review", DV);
- DX = AS(DX, "~~~PAGE_ID~~~", i);
- DX = AS(DX, "~~~VARIANT~~~", DW);
- return DX;
- }
- function A4(i, DW) {
- var DV = "";
- DV += '<div id="pr-review-engine-' + DW + '" class="pr-review-engine">';
- DV += '<div id="pr-header-' + DW + '" class="pr-header"></div><div id="pr-contents-' + DW + '" class="pr-contents"></div>';
- DV += "</div>";
- i.write(DV);
- }
- function C7(DV) {
- var DW = document.getElementById("pr-review-engine-screen-" + DV);
- if (DW && DW.parentNode) {
- DW.parentNode.removeChild(DW);
- }
- var i = document.getElementById("pr-review-engine-" + DV);
- if (i) {
- DP(i, "pr-review-engine-screened");
- }
- }
- function DK(DX, DY, DV) {
- var DW = AR(M("pr_analytics_account", DV));
- if (window.urchinTracker && DW) {
- var i = "";
- var DZ = typeof _uacct != "undefined";
- if (DZ) {
- i = _uacct;
- }
- _uacct = DW;
- urchinTracker("/product_with_" + (DX ? DX : 0) + "_reviews");
- if (DZ) {
- _uacct = i;
- }
- }
- }
- function Cr(DW, DX) {
- if (!Bx[DW]) {
- var DZ = {};
- var DV = M("pr_all_locales", DX);
- for (var DY = 0; DY < DV.length; DY++) {
- (function(Da) {
- CJ(DW, DV[Da], function(Db) {
- var i = (Db && Db.reviews && Db.reviews.review_count) || 0;
- DZ[DV[Da]] = i;
- });
- }
- )(DY);
- }
- Bx[DW] = DZ;
- }
- return Bx[DW];
- }
- function Am(DW, DV, i, DX, DY) {
- CJ(DW, DV, function(Dc) {
- var Dg = (Dc && Dc.reviews && Dc.reviews.review_count) || 0;
- var Db = (Dc && Dc.reviews && Dc.reviews.review_ratings) || [0, 0, 0, 0, 0];
- var De;
- var Dd = function() {
- if (--De <= 0) {
- DY();
- }
- };
- if (Dg > 0) {
- De = 2;
- O(DW, DV, Dg, Db, i, DX, Dd);
- Bd(1, DW, DV, i, DX, Dd);
- } else {
- De = 1;
- O(DW, DV, Dg, Db, i, DX, Dd);
- }
- var Dh = document.querySelector(".pr-attribute-ratings");
- if (Dh) {
- var Da = [];
- for (var DZ = 0; DZ < Db.length; DZ++) {
- var Df = Db[DZ];
- if (Df > 0) {
- Da.push(DZ + 1);
- }
- }
- C4.trackPageview("rd", {
- locale: M("pr_locale", DX),
- pageId: M("pr_page_id", DX),
- merchantId: M("pr_merchant_id", DX),
- siteId: M("pr_site_id", DX),
- engineVersion: "2",
- af: Da.join(";")
- });
- }
- }, DX);
- }
- function BU(DV, i, DW) {
- CJ(DV, i, function(DY) {
- var DX = 0;
- var DZ = 0;
- if (DY && DY.reviews) {
- DX = DY.reviews.review_count;
- DZ = DY.reviews.avg;
- }
- DI("main", new A9(DV,DX,0,U(DZ)));
- window.setTimeout(function() {
- var Da, Db;
- if (DY && DY.reviews) {
- Da = DY.reviews.review_count;
- Db = DY.reviews.avg;
- }
- DK(Da, Db, DW);
- }, 0);
- }, DW);
- }
- function BJ(DY, DX) {
- var Da = {}
- , Db = 0
- , DZ = DY.length;
- for (var DW = 0; DW < DZ; DW++) {
- var DV = DY[DW];
- if (DV.at) {
- ++Db;
- if (Da[DV.at]) {
- Da[DV.at].push(DV.id);
- } else {
- Da[DV.at] = [DV.id];
- }
- }
- }
- for (var i in Da) {
- if (Da.hasOwnProperty(i)) {
- C4.trackPageview("rd", {
- locale: M("pr_locale", DX),
- pageId: M("pr_page_id", DX),
- merchantId: M("pr_merchant_id", DX),
- siteId: M("pr_site_id", DX),
- eventType: "syndication",
- synMerchantId: i.toString(),
- synSharedReviewIds: Da[i],
- synReviewsOnPageCount: Db
- });
- }
- }
- }
- function A(i) {
- return (!!M("pr_product_name", i) && !!M("pr_product_image_url", i) && !!M("pr_product_category_name", i) && !!M("pr_product_description", i));
- }
- function CK(DW) {
- var DX = {
- bn: M("pr_product_brand_name", DW),
- pid: M("pr_page_id", DW),
- pidv: M("pr_page_id_variant", DW),
- l: M("pr_locale", DW),
- n: M("pr_product_name", DW),
- d: M("pr_product_description", DW),
- pu: M("pr_product_url", DW),
- iu: M("pr_product_image_url", DW),
- pri: M("pr_product_price", DW),
- cn: M("pr_product_category_name", DW),
- is: M("pr_product_in_stock", DW),
- mi: M("pr_product_manufacturer_id", DW),
- upc: M("pr_product_upc", DW),
- atcu: M("pr_product_add_to_cart_url", DW)
- };
- var i = M("pr_site_id", DW);
- if (!!i) {
- DX.sid = i;
- } else {
- DX.mid = M("pr_merchant_id", DW);
- }
- C4.trackPageview("fp", DX);
- if (!!window.sessionStorage) {
- var DV = j.parse(window.sessionStorage.getItem("powerreviews")) || {};
- DV = {
- currentProductInformation: {
- merchant_id: M("pr_merchant_id", DW),
- merchant_group_id: M("pr_merchant_group_id", DW),
- site_id: M("pr_site_id", DW),
- page_id: M("pr_page_id", DW),
- page_id_variant: M("pr_page_id_variant", DW),
- pr_product_brand_name: M("pr_product_brand_name", DW),
- pr_product_name: M("pr_product_name", DW),
- pr_product_description: M("pr_product_description", DW),
- pr_product_url: M("pr_product_url", DW),
- pr_product_image_url: M("pr_product_image_url", DW),
- pr_product_price: M("pr_product_price", DW),
- pr_product_category_name: M("pr_product_category_name", DW),
- pr_product_in_stock: M("pr_product_in_stock", DW),
- pr_product_manufacturer_id: M("pr_product_manufacturer_id", DW),
- pr_product_upc: M("pr_product_upc", DW),
- pr_product_add_to_cart_url: M("pr_product_add_to_cart_url", DW)
- }
- };
- window.sessionStorage.setItem("powerreviews", j.stringify(DV));
- }
- }
- function BH(DV, i, DY, DW) {
- B2.userTrackingDomain = M("pr_tracking_domain", DW);
- var DZ = document.getElementById("pr-review-engine-" + DV);
- if (DZ) {
- C4.trackClickEvents(DZ, "rd", {
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- engineVersion: "2",
- inlineSEO: DY
- });
- C4.trackVisibility(DZ, "rd", {
- eventType: "reviews-visible",
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- engineVersion: "2",
- inlineSEO: DY
- });
- }
- var DX = document.querySelector(".pr-attribute-ratings");
- if (DX) {
- C4.trackVisibility(DX, "rd", {
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- engineVersion: "2",
- inlineSEO: DY,
- eventType: "histogram-viewed"
- });
- }
- }
- function Cp(DV, i, DX, DW) {
- CJ(DV, i, function(DZ) {
- var DY, Da;
- if (DZ && DZ.reviews) {
- DY = DZ.reviews.review_count;
- Da = DZ.reviews.avg;
- }
- var Db = document.getElementById("pr-review-engine-" + DV);
- if (Db) {
- C4.trackPageview("rd", {
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- engineVersion: "2",
- inlineSEO: DX,
- reviewCount: DY,
- starRating: Da ? Da : null,
- visible: C4.isElementVisible(Db),
- ct: M("pr_creation_date")
- });
- }
- }, DW);
- }
- function B6(DW) {
- var DZ = M("pr_site_id", DW);
- var DV = [];
- if (DZ || !false) {
- DV = DV.concat(C0(document, "p", "pr-fb-needs-merchant"));
- DV = DV.concat(C0(document, "div", "pr-fb-needs-merchant"));
- }
- if (DZ) {
- DZ = C8(DZ);
- DV = DV.concat(C0(document, "p", "pr-needs-siteid-" + DZ));
- DV = DV.concat(C0(document, "div", "pr-needs-siteid-" + DZ));
- }
- for (var DX = 0; DX < DV.length; DX++) {
- var DY = DV[DX];
- DY.style.display = "";
- }
- }
- function Bz(i) {}
- F.display.collapseReviewPointsPanel = Bz;
- function CX(Db, DV, DZ) {
- document.getElementById("pr-filters").style.display = "none";
- document.getElementById("pr-review-filtered-count").style.display = "none";
- document.getElementById("pr-review-count").style.display = "block";
- var DX = document.querySelector(".pr-attribute-ratings").querySelector(".pr-ratings-histogram-content");
- for (var DY = 0; DY < DX.children.length; DY++) {
- var Da = DX.children[DY];
- Da.className = Da.className.replace(" pr-selected", "");
- }
- if (K) {
- t = K;
- }
- var DW = M("pr_page_id", DZ);
- DW = C8(DW);
- var i = M("pr_locale", DZ);
- Af(DW, i, function() {
- As(An, DW);
- d(1, DW, i, "sort", DV, DZ);
- C4.trackPageview("rd", {
- locale: M("pr_locale", DZ),
- pageId: M("pr_page_id", DZ),
- merchantId: M("pr_merchant_id", DZ),
- siteId: M("pr_site_id", DZ),
- engineVersion: "2",
- eventType: "filter-removed-all"
- });
- }, DZ);
- }
- POWERREVIEWS.display.clearFilters = CX;
- function m(Db, DZ, Da, Dh, Dd) {
- if (!Da || !Dd) {
- return;
- }
- var i = new Date();
- if (i.getTime() - Bt.getTime() > 1000) {
- for (var DX = 0; DX < Db.parentNode.children.length; DX++) {
- var DV = Db.parentNode.children[DX];
- DV.className = DV.className.replace(" pr-selected", "");
- }
- Db.className += " pr-selected";
- var Dg = this;
- var Df = document.createElement("DIV");
- Df.className = "pr-filter";
- Df.onclick = function() {
- POWERREVIEWS.display.clearFilters(Dg, Da, POWERREVIEWS.common.getOptions(Da));
- }
- ;
- var DY = document.createElement("DIV");
- DY.className = "pr-filter-remove-icon";
- var De = document.createElement("DIV");
- De.className = "pr-filter-label";
- De.innerHTML = CU(M("pr_locale"))[DZ - 1];
- Df.appendChild(DY);
- Df.appendChild(De);
- document.getElementById("pr-filters-active").innerHTML = "";
- document.getElementById("pr-filters-active").appendChild(Df);
- document.getElementById("pr-filters").style.display = "block";
- Bt = i;
- var DW = M("pr_page_id", Dh);
- DW = C8(DW);
- var Dc = M("pr_locale", Dh);
- Af(DW, Dc, function() {
- C4.trackPageview("rd", {
- locale: M("pr_locale", Dh),
- pageId: M("pr_page_id", Dh),
- merchantId: M("pr_merchant_id", Dh),
- siteId: M("pr_site_id", Dh),
- engineVersion: "2",
- eventType: "filter-applied-" + DZ + "star"
- });
- Cq({
- rating: DZ
- }, DW);
- d(1, DW, Dc, "sort", Da, Dh);
- document.getElementById("pr-review-filtered-count").innerHTML = "Filtered to show {0} of {1} reviews".replace("{0}", t.length).replace("{1}", K.length);
- document.getElementById("pr-review-filtered-count").style.display = "block";
- document.getElementById("pr-review-count").style.display = "none";
- var Di = document.getElementById("pr-review-sort");
- if (!window.Promise) {
- Di.scrollIntoView();
- } else {
- Cf(Di, 500);
- }
- }, Dh);
- }
- }
- F.display.filterReviewsByRating = m;
- function Cq(DW) {
- if (!K) {
- K = t;
- }
- var DV = [];
- for (var i = 0; i < K.length; i++) {
- var DX = K[i];
- if (DW.rating === DX.rating) {
- DV.push(DX);
- }
- }
- t = DV;
- }
- function CP(DZ, DW, DV, i, DX) {
- var DY = new Date();
- if (DY.getTime() - Bt.getTime() > 1000) {
- Bt = DY;
- Af(DW, DV, function() {
- As(DZ.selectedIndex, DW);
- d(1, DW, DV, "sort", i, DX);
- }, DX);
- }
- }
- F.display.startSort = CP;
- function As(DW, i) {
- t.sort(AZ[DW]);
- An = DW;
- var DV = document.getElementById("pr-header-" + i);
- if (DV) {
- DV.focus();
- }
- }
- function Cb(DV, i) {
- if (DV.oid && i.oid) {
- return i.oid - DV.oid;
- }
- return i.rid - DV.rid;
- }
- AZ[Ap] = function(DV, i) {
- if (DV.date == i.date) {
- return Cb(DV, i);
- }
- return i.date - DV.date;
- }
- ;
- AZ[Ai] = function(DV, i) {
- if (i.date == DV.date) {
- return Cb(i, DV);
- }
- return DV.date - i.date;
- }
- ;
- AZ[P] = function(DV, i) {
- if (i.rating == DV.rating) {
- return Cb(DV, i);
- }
- return i.rating - DV.rating;
- }
- ;
- AZ[C1] = function(DV, i) {
- if (i.rating == DV.rating) {
- return Cb(i, DV);
- }
- return DV.rating - i.rating;
- }
- ;
- AZ[AH] = function(DV, i) {
- if (i.helpfulScore == DV.helpfulScore) {
- return Cb(DV, i);
- }
- return i.helpfulScore - DV.helpfulScore;
- }
- ;
- AZ[CB] = function(DV, i) {
- if (i.helpfulScore == DV.helpfulScore) {
- return Cb(i, DV);
- }
- return DV.helpfulScore - i.helpfulScore;
- }
- ;
- function Bd(DY, DW, DV, i, DX, DZ) {
- CJ(DW, DV, function(Da) {
- var Db = [DY];
- y(DW, DV, Db, function() {
- var Dc = 0;
- if (Da.reviews) {
- try {
- Dc = t.length;
- } catch (Dd) {
- Dc = Da.reviews.review_count;
- }
- BJ(L[DW + "-" + DV + "-" + DY], DX);
- }
- BG("pr-contents-" + DW, Be(L[DW + "-" + DV + "-" + DY], DW, DV, Da.name, Da.vNames, Da.brand, Dc, M("pr_reviews_per_page", DX), 1, "#pr-header-" + DW, "#pr-header-" + DW, false, i, DX), DZ);
- }, DX);
- }, DX);
- }
- function S(DY, DW, DV, i, DX) {
- d(DY, DW, DV, "page", i, DX);
- }
- function d(DY, DW, DV, DZ, i, DX) {
- Af(DW, DV, function() {
- if (An == null) {
- As(Ap, DW);
- }
- CJ(DW, DV, function(Da) {
- var Df = M("pr_reviews_per_page", DX);
- var Di = (DY - 1) * Df;
- var Dd = Di + Df - 1;
- var De;
- try {
- De = t.length - 1;
- } catch (Dg) {
- De = Da.reviews.review_count - 1;
- }
- if (Dd > De) {
- Dd = De;
- }
- var Db = [];
- var Dj = {};
- for (var Dc = Di; Dc <= Dd; Dc++) {
- var Dh = t[Dc].batch;
- if (!Dj[Dh]) {
- Db.push(Dh);
- Dj[Dh] = true;
- }
- }
- y(DW, DV, Db, function() {
- var Dl = [];
- for (var Dk = Di; Dk <= Dd; Dk++) {
- Dl.push(AI[t[Dk].rid]);
- }
- BJ(Dl, DX);
- setTimeout(function() {
- BG("pr-contents-" + C8(DW), Be(Dl, DW, DV, Da.name, Da.vNames, Da.brand, t.length, Df, DY, "#pr-header-" + DW, "#pr-header-" + DW, false, i, DX), function() {
- B6();
- });
- }, 0);
- }, DX);
- }, DX);
- }, DX);
- r({
- "type": DZ
- }, DX);
- }
- F.display.getReviewsFromMeta = S;
- function O(DV, Da, DW, i, DY, Dc, Db) {
- var DX = "pr-header-" + DV;
- var DZ = Cr(DV, Dc);
- if (DW > 0) {
- Cv(DV, Da, function(Dd) {
- if (Dd) {
- BG(DX, Cu(DW, i, DZ, Dd, DV, Da, DY, Dc), Db);
- }
- }, Dc);
- } else {
- BG(DX, Cu(DW, i, DZ, null, DV, Da, DY, Dc), Db);
- }
- }
- function AU(DV, DX, i, DW) {
- var DY = "Thank you for your feedback. Please note that only your first vote will be counted.";
- if (!A0[DV] || A0[DV] == "undefined") {
- w(M("pr_js_controller_url", DW) + "?command=helpfulVote&reviewId=" + DV + "&voteType=" + DX);
- A0[DV] = 1;
- } else {
- DY = "You may only submit one vote per review.";
- }
- BG("review_feedback" + DV, DY);
- }
- F.display.submitHelpfulVote = AU;
- function e(DW, DV, i, DX) {
- if (!I[DW] || I[DW] == "undefined") {
- var DY = document.getElementById("error_div" + DW);
- DY.innerHTML = BS(DW, DV, i, DX);
- document.getElementById("error_div" + DW).style.display = "block";
- } else {
- BG("review_feedback" + DW, "You have already notified us of an error for this review.");
- }
- }
- F.display.launchErrorDiv = e;
- function Aq(i) {
- document.getElementById("error_div" + i).style.display = "none";
- }
- function Bo(DV, i, DX) {
- var DZ = BM("error_radio" + DV);
- var Db = document.getElementById("error_comments" + DV).value;
- Db = Db.substring(0, 256);
- var DW = AR(document.getElementById("error_contact_email" + DV).value);
- var Da = document.location.href;
- if (Da && typeof Da != "undefined") {
- var DY = Da.split("/", 4)[2];
- Db += "\n[" + DY + "]";
- }
- if (!/.+@.+/.test(DW)) {
- alert("Email Address is required when flagging a review");
- } else {
- if (!DZ) {
- alert("Please select the reason you are flagging this review");
- } else {
- w(M("pr_js_controller_url", DX) + "?command=helpfulVote&reviewId=" + DV + "&merchantId=" + M("pr_merchant_id", DX) + "&voteType=" + DZ + "&errorComments=" + BI(Db) + "&errorContactEmail=" + BI(DW));
- BG("review_feedback" + DV, "Thank you for notifying us of this error.");
- A0[DV] = 1;
- I[DV] = 1;
- Aq(DV);
- }
- }
- }
- F.display.submitError = Bo;
- function Ad(i) {
- Aq(i);
- }
- F.display.cancelError = Ad;
- function Ax(DX, DW) {
- if (typeof DX == "function" && R(DW)) {
- var DV = M("pr_page_id", DW);
- var i = C8(DV);
- CJ(i, M("pr_locale", DW), function(DY) {
- if (DY && DY.reviews) {
- DX(new A9(DV,DY.reviews.review_count,0,U(DY.reviews.avg)));
- } else {
- DX(new A9(DV,0,0,0));
- }
- }, DW);
- }
- }
- F.display.prData = Ax;
- window.prData = Ax;
- function CF(i) {
- BO.push(i);
- }
- F.display.registerCallback = CF;
- window.registerCallback = CF;
- function AA() {
- return {
- "offsetY": document.body.scrollTop || document.documentElement.scrollTop,
- "viewportWidth": document.getElementsByTagName("body")[0].clientWidth
- };
- }
- function BF(i, DZ, DV, Da, DY) {
- CD(i);
- var DX = document.getElementById("pr-modal-" + i);
- if (DV) {
- if (DV.ctx && Da) {
- switch (DV.ctx) {
- case "top":
- Da.parentNode.insertBefore(DX, Da);
- DX.style.top = "-" + DV.h + "px";
- break;
- case "bottom":
- BB(Da, DX);
- break;
- case "custom":
- Da.parentNode.insertBefore(DX, Da);
- if (DV.t && DV.l) {
- DX.style.top = DV.t + "px";
- DX.style.left = DV.l + "px";
- }
- break;
- }
- } else {
- var DW = AA();
- DX.style.left = ((DW.viewportWidth - DV.w) / 2) + "px";
- DX.style.top = (DW.offsetY + 100) + "px";
- }
- DX.style.width = DV.w + "px";
- DX.style.height = DV.h + "px";
- }
- BG("pr-modal-container-" + i, DZ, function() {
- DP(DX, "pr-hidden");
- var Db = document.getElementById("pr-modal-container-" + i);
- if (DV) {
- Db.style.width = (DV.w - 20) + "px";
- Db.style.height = (DV.h - 20) + "px";
- }
- if (DY) {
- DY();
- }
- });
- }
- function BL(i) {
- DN(document.getElementById("pr-modal-" + i), "pr-hidden");
- }
- F.display.hideModal = BL;
- function CD(DV) {
- if (POWERREVIEWS.widget && POWERREVIEWS.widget.instances) {
- for (var DX = 0; DX < POWERREVIEWS.widget.instances.length; DX++) {
- if (POWERREVIEWS.widget.instances[DX]) {
- if (POWERREVIEWS.widget.instances[DX].config.widget_type == "profile") {
- POWERREVIEWS.widget.instances[DX].closeProfileModal(100);
- }
- }
- }
- }
- var DY = document.getElementById("pr-modal-" + DV);
- if (!DY) {
- DY = document.createElement("div");
- DY.id = "pr-modal-" + DV;
- DY.className = "pr-base-modal pr-hidden";
- DY.innerHTML = CR(DV);
- }
- document.getElementsByTagName("body")[0].appendChild(DY);
- var DW = document.getElementById("pr-modal-container-" + DV);
- DY.style.height = "auto";
- DY.style.width = "auto";
- DY.style.top = 0;
- DY.style.bottom = 0;
- DY.style.left = 0;
- DY.style.right = 0;
- DW.style.height = "auto";
- DW.style.width = "auto";
- DN(DY, "pr-hidden");
- }
- function CQ(DW, Da) {
- CD(DW);
- var DX = document.getElementById(Da).innerHTML;
- var DV = document.getElementById("pr-modal-" + DW);
- var i = C0(document, "div", "pr-review-faceoff-review-wrapper")[0];
- DV.style.width = (i.scrollWidth - 20) + "px";
- DV.style.height = (i.offsetHeight + 47) + "px";
- DV.style.left = (i.offsetLeft + 10) + "px";
- DV.style.top = (i.offsetTop - 40) + "px";
- var DY = {
- w: i.scrollWidth - 20,
- h: i.offsetHeight + 47,
- ctx: "custom",
- t: i.offsetTop - 40,
- l: i.offsetLeft + 10
- };
- var DZ = C0(document, "div", "pr-review-faceoff")[0];
- BF(DW, DX, DY, DZ);
- }
- F.display.displayFaceoffModal = CQ;
- function Bi(DW, DV, DY, DZ, Da, DX) {
- DZ = {
- "w": 545,
- "h": 275
- };
- var i = DY["r"] || false;
- Bh(DW, DV, i, DZ, Da, DX);
- }
- F.display.showFollowProductModalWithHash = Bi;
- function E(DV, i, DX, DY, DW) {
- Bh(DV, i, true, DX, DY, DW);
- }
- F.display.showFollowProductModal = E;
- function Bh(DX, DY, Dd, DV, Db, Dc) {
- var DW = M("pr_page_id", Dc);
- var Da = "";
- var DZ = "";
- var i = function() {
- var De = AD(DW, DX, Da, DZ, DY, Dc);
- BF(DX, De, DV, Db, function() {
- initFollowControlElements(DX, DY);
- });
- };
- if (Dd) {
- Cv(DX, DY, function(De) {
- if (De) {
- Da = De.r;
- DZ = De.i;
- }
- i();
- }, Dc);
- } else {
- i();
- }
- }
- function AQ(DV, i, DX, DY, DW) {
- DX = {
- "w": 545,
- "h": 275
- };
- Cv(DV, i, function(Da) {
- categoryInfo = C3(Da, i, DW);
- var DZ = By(categoryInfo, i, DW, DV);
- BF(DV, DZ, DX, DY, function() {
- initFollowControlElements(DV, i);
- });
- }, DW);
- }
- F.display.showFollowProductCategoryModal = AQ;
- function Ba(Da, DZ) {
- var DY = document.getElementById(DZ.target);
- var DX = j.parse(DY.getAttribute("prdata"));
- DX.keyValue = DZ.keyValue;
- DY.setAttribute("prdata", j.stringify(DX));
- var DW = C0(document.getElementById("pr-fb-likebtn-wrapper-" + DZ.locale + "-" + DZ.pageId), "iframe", "pr-fb-likebtn");
- for (var DV = 0; DV < DW.length; DV++) {
- DP(DW[DV], "pr-hidden");
- DN(DW[DV], "pr-hidden");
- }
- if (!!document.getElementById(Da)) {
- DP(document.getElementById(Da), "pr-hidden");
- }
- }
- F.display.toggleFbLikeButton = Ba;
- function DI(DX, DW) {
- for (var DV = 0; DV < BO.length; DV++) {
- BO[DV](DX, DW);
- }
- }
- function Bw(DX) {
- var DV = {
- canonicalGroupSet: {},
- histogramDisplayGroupList: [],
- subratingsGroupList: [],
- otherGroupList: []
- };
- if (DX) {
- if (DX.g) {
- for (var DW = 0; DW < DX.g.length; DW++) {
- var DY = DX.g[DW];
- if (DY.k == "pros" || DY.k == "cons" || DY.k == "bestuses") {
- DV.canonicalGroupSet[DY.k] = DY;
- } else {
- if (DY.a) {
- DV.histogramDisplayGroupList.push(DY);
- } else {
- DV.otherGroupList.push(DY);
- }
- }
- }
- }
- DV.subratingGroupList = DX.ar || [];
- }
- return DV;
- }
- function C3(DV, Dh, Dj) {
- var Dk = [];
- if (DV && DV.c && DV.c.n && DV.c.c) {
- var Db = DV.c.n;
- var Dd = DV.c.c;
- var Dc = ":";
- var DZ = new RegExp(Dc + "$");
- var Df = Db.replace(DZ, "").split(Dc);
- var i = Dd.replace(DZ, "").split(Dc);
- if (Df.length == i.length) {
- var Da = Df.length;
- var Di = Math.min(Da, 3);
- var DX = Da - Di;
- for (var De = DX; De < Da; De++) {
- var Dg = Df[De];
- var DY = i.slice(0, De + 1).join(Dc) + Dc;
- var DW = AP(DY, Dh, Dj);
- Dk.push({
- "label": Dg,
- "url": DW,
- "code": DY
- });
- }
- }
- }
- return Dk;
- }
- function CW(DX, i, DW) {
- var DV = C3(DX, i, DW);
- return DV.length > 0;
- }
- function At(DW, i, DV) {
- var DX = Av(DV);
- var DY = BI(M("pr_site_id", DV) || "-");
- return DX + "product/" + i + "/" + M("pr_merchant_group_id", DV) + "/" + DY + "/" + BI(DW);
- }
- function AP(DY, i, DV) {
- var DW = Av(DV);
- var DX = BI(M("pr_site_id", DV) || "-");
- return DW + "productCategory/" + i + "/" + M("pr_merchant_group_id", DV) + "/" + DX + "/" + AO(DY);
- }
- function Cu(i, Dc, DV, Dr, Dh, Dp, Du, DX) {
- var De = [];
- var Do = b(DX);
- var Dq = {
- describeyourself: "Reviewer Profile"
- };
- var Dm = Bw(Dr);
- var Dd = Dm.canonicalGroupSet;
- var Dk = Dm.histogramDisplayGroupList;
- var DZ = Dm.subratingGroupList;
- var Da = Dm.otherGroupList;
- var Dg = 0;
- for (CL = 0; CL < Dc.length; CL++) {
- Dg = (Dc[CL] + Dg);
- }
- var DY = M("pr_locale_transitions", DX);
- var Dj = "All";
- var Dt = (i == 1) ? "based on {0} review" : "based on {0} reviews";
- var Dw = "count";
- De.push('<div class="pr-snapshot">');
- if (i > 0) {
- De.push('<div class="pr-review-social-bar pr-fb-needs-merchant" style="display:none;"><div class="pr-clear"></div></div>');
- }
- De.push('<a name="ReviewHeader"></a><div class="pr-snapshot-head"><div class="pr-snapshot-head-wrapper pr-float-left"><p class="pr-snapshot-title">');
- De.push("REVIEW SNAPSHOT®");
- De.push("</p>");
- if (Q(DX).cobranded) {
- De.push('<a href="#" class="pr-snapshot-cobrand" data-pr-event="snapshot-cobrand-link-pre" onclick="POWERREVIEWS.common.showSmallPopup(\'');
- De.push("http://www.powerreviews.com/legal/index_en_US.html");
- De.push("', 410, 420); return false;\">");
- De.push("by PowerReviews");
- De.push("</a>");
- }
- De.push("</div>");
- var Di = DY[Dp];
- if (Di && DV && DV[Di] && BC && BC[Di] && BC[Di][Dp]) {
- var Ds = DV[Di];
- var Dn = BC[Di][Dp];
- De.push('<div class="pr-snapshot-change-locale-wrapper"><a href="javascript:;" class="pr-snapshot-change-locale" onclick="POWERREVIEWS.display.displayInitialReviewBoxWrapper(\'');
- De.push(Dh);
- De.push("', '");
- De.push(Di);
- De.push("', '");
- De.push(Du);
- De.push("', POWERREVIEWS.common.getOptions('");
- De.push(Du);
- De.push("'));\">");
- if (Ds == 1) {
- De.push(("Show {0} {1} review" || "").replace("{0}", Ds).replace("{1}", Dn));
- } else {
- De.push(("Show {0} {1} reviews" || "").replace("{0}", Ds).replace("{1}", Dn));
- }
- De.push("</a></div>");
- }
- De.push('<div class="pr-clear"></div></div><div class="pr-snapshot-body">');
- if (i > 0) {
- De.push('<div class="pr-snapshot-body-wrapper"><div class="pr-snapshot-rating-wrapper hreview-aggregate">');
- if (Dr.r) {
- De.push('<div class="pr-snapshot-product-name item">');
- if (Dr.br) {
- De.push('<span class="pr-brand">');
- De.push(Dr.br);
- De.push("</span>");
- }
- De.push('<span class="fn">');
- De.push(Dr.r);
- De.push("</span></div>");
- }
- De.push('<div class="pr-snapshot-rating rating"><div class="pr-stars ');
- De.push(BP[Dr.a].large);
- De.push('" style="background-position: 0px ');
- De.push(Dr.a * -46);
- De.push('px;"> </div><span class="pr-rating pr-rounded average">');
- De.push((Dr.d * 10) % 10 == 0 ? Dr.d + ".0" : Dr.d);
- De.push('</span><p class="pr-snapshot-average-based-on-text">(');
- De.push((Dt || "").replace("{0}", '<span class="' + Dw + '">' + i + "</span>"));
- De.push(")</p>");
- if (Dg > 0) {
- De.push("<div id=\"pr-snapshot-histogram\"><a tabindex=\"0\" data-pr-event=\"snapshot-histogram-link\" 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)\" onfocus=\"POWERREVIEWS.common.togglePopOut({'target':'pr-snapshot-histogram-container'},'show', this, event)\" onblur=\"POWERREVIEWS.common.togglePopOut({'link':'pr-snapshot-histogram-lnk','target':'pr-snapshot-histogram-container'},'hide', this, event)\"><img id=\"pr-snapshot-histogram-lnk-img\" src=\"");
- De.push(Do);
- De.push("/engine/images/icon_popout.gif\" onclick=\"return false\" onmouseover=\"POWERREVIEWS.common.togglePopOut({'target':'pr-snapshot-histogram-container'},'show', this, event)\" onmouseout=\"POWERREVIEWS.common.togglePopOut({'link':'pr-snapshot-histogram-lnk-img','target':'pr-snapshot-histogram-container'},'hide', this, event)\"/></a><div id=\"pr-snapshot-histogram-wrapper\"><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>");
- De.push("Ratings Distribution");
- De.push("</span></p>");
- De.push(AJ(Dc, Dp, Du, DX, false));
- De.push("</div></div></div>");
- }
- De.push('</div><div class="pr-clear"></div>');
- if (Dr.b || Dr.b == 0) {
- De.push('<div class="pr-snapshot-consensus"><p class="pr-snapshot-consensus-value pr-rounded">');
- De.push(Math.round(100 * Dr.b));
- De.push('%</p> <p class="pr-snapshot-consensus-text">');
- De.push("of respondents would recommend this to a friend.");
- De.push("</p></div>");
- }
- De.push("</div>");
- if (Dd.pros || Dd.cons || Dd.bestuses || Dk.length || DZ.length || Da.length) {
- De.push('<div class="pr-review-points"><div class="pr-review-points-attr-wrapper"><div class="pr-attribute-group pr-rounded pr-attribute-ratings" style="display:none"><div class="pr-attribute-key" onclick="POWERREVIEWS.display.collapseReviewPointsPanel(this)"><div class="pr-attribute-label pr-attribute-label-rating"><p class="pr-attribute-label-text">');
- De.push("Ratings Distribution");
- De.push('</p><div class="pr-attribute-collapse"></div><div class="pr-clear"></div></div></div><div class="pr-attribute-value" style="padding:15px;">');
- De.push(AJ(Dc, Dp, Du, DX, true));
- De.push('</div></div><div class="pr-attribute-group pr-rounded pr-attribute-pros');
- De.push(Dd.pros ? "" : " pr-empty");
- De.push('"><div class="pr-attribute-key" onclick="POWERREVIEWS.display.collapseReviewPointsPanel(this)"><div class="pr-attribute-label pr-attribute-label-pros"><p class="pr-attribute-label-text">');
- De.push("Pros");
- De.push('</p><div class="pr-attribute-collapse"></div><div class="pr-clear"></div></div></div><div class="pr-attribute-value">');
- if (!!Dd.pros && Dd.pros.v.length > 0) {
- De.push('<ul class="pr-attribute-value-list pr-snapshot-attribute-value-list">');
- var Db = Dd.pros;
- if (Db) {
- for (var Df = 0; Df < Db.v.length; Df++) {
- var Dl = Db.v[Df];
- De.push("<li>");
- De.push(Dl.n);
- De.push(" (");
- De.push(Dl.c);
- De.push(")</li>");
- }
- }
- De.push("</ul>");
- } else {
- De.push("<div class='pr-attribute-value-list-empty'>");
- De.push("No");
- De.push(" ");
- De.push("Pros");
- De.push("</div>");
- }
- De.push('</div></div><div class="pr-attribute-group pr-rounded pr-attribute-cons');
- De.push(Dd.cons ? "" : " pr-empty");
- De.push('"><div class="pr-attribute-key" onclick="POWERREVIEWS.display.collapseReviewPointsPanel(this)"><div class="pr-attribute-label pr-attribute-label-cons"><p class="pr-attribute-label-text">');
- De.push("Cons");
- De.push('</p><div class="pr-attribute-collapse"></div><div class="pr-clear"></div></div></div><div class="pr-attribute-value">');
- if (!!Dd.cons && Dd.cons.v.length > 0) {
- De.push('<ul class="pr-attribute-value-list pr-snapshot-attribute-value-list">');
- var Db = Dd.cons;
- if (Db) {
- for (var Df = 0; Df < Db.v.length; Df++) {
- var Dl = Db.v[Df];
- De.push("<li>");
- De.push(Dl.n);
- De.push(" (");
- De.push(Dl.c);
- De.push(")</li>");
- }
- }
- De.push("</ul>");
- } else {
- De.push("<div class='pr-attribute-value-list-empty'>");
- De.push("No");
- De.push(" ");
- De.push("Cons");
- De.push("</div>");
- }
- De.push('</div></div><div class="pr-attribute-group pr-rounded pr-attribute-bestuses');
- De.push(Dd.bestuses ? "" : " pr-empty");
- De.push(' pr-last"><div class="pr-attribute-key" onclick="POWERREVIEWS.display.collapseReviewPointsPanel(this)"><div class="pr-attribute-label pr-attribute-label-bestuses"><p class="pr-attribute-label-text">');
- De.push("Best Uses");
- De.push('</p><div class="pr-attribute-collapse"></div><div class="pr-clear"></div></div></div><div class="pr-attribute-value">');
- if (!!Dd.bestuses && Dd.bestuses.v.length > 0) {
- De.push('<ul class="pr-attribute-value-list pr-snapshot-attribute-value-list">');
- var Db = Dd.bestuses;
- if (Db) {
- for (var Df = 0; Df < Db.v.length; Df++) {
- var Dl = Db.v[Df];
- De.push("<li>");
- De.push(Dl.n);
- De.push(" (");
- De.push(Dl.c);
- De.push(")</li>");
- }
- }
- De.push("</ul>");
- } else {
- De.push("<div class='pr-attribute-value-list-empty'>");
- De.push("No");
- De.push(" ");
- De.push("Best Uses");
- De.push("</div>");
- }
- De.push('</div></div><div class="pr-clear"></div></div></div>');
- if (Dk.length) {
- De.push(AT(Dk, Dp, DX));
- }
- if (DZ.length) {
- De.push(Co(DZ, Dp, DX));
- }
- De.push('<div class="pr-other-attributes"><ul class="pr-other-attributes-list">');
- for (var Dv = 0; Dv < Da.length; Dv++) {
- var Db = Da[Dv];
- var DW = [];
- for (var Df = 0; Df < Db.v.length; Df++) {
- var Dl = Db.v[Df];
- DW.push(Dl.n + " (" + Dl.c + ")");
- }
- De.push('<li class="pr-other-attributes-group pr-other-attribute-');
- De.push(Db.k);
- De.push('"><ul><li class="pr-other-attribute-label">');
- De.push(Dq[Db.k] || Db.n);
- De.push(':</li><li class="pr-other-attribute-value">');
- De.push(DW.join(", "));
- De.push("</li></ul></li>");
- }
- De.push('<li class="pr-clear"></li></ul></div>');
- }
- De.push('<div id="pr-snapshot-footer-');
- De.push(Dh);
- De.push('" class="pr-snapshot-footer" style="display:none"><a href="#" id="write-review-');
- De.push(Dh);
- De.push('" class="pr-write-review-link" data-pr-event="snapshot-write-review"><div class="pr-snapshot-write-review"><span>');
- De.push("Write a Review");
- De.push("</span></div></a>");
- if (a && a["review"]) {
- De.push('<div class="pr-snapshot-write-review-social-loyalty">');
- De.push("Share your opinion, earn points");
- De.push("</div>");
- }
- De.push('<div class="pr-clear"></div></div>');
- } else {
- De.push('<div class="pr-snapshot-body-wrapper"><div id="pr-snapshot-footer-');
- De.push(Dh);
- De.push('" class="pr-snapshot-footer" style="display:none"> <p class="pr-snapshot-no-ratings">');
- De.push("Not yet rated. Be the first to");
- De.push(' <a href="#" id="write-review-');
- De.push(Dh);
- De.push('" data-pr-event="snapshot-write-review" class="pr-write-review-link">');
- De.push("Write a Review");
- De.push("</a>");
- if (a && a["first_review"]) {
- De.push(" ");
- De.push("(earn bonus points)");
- }
- De.push('</p><div class="pr-clear"></div></div>');
- }
- De.push("</div></div>");
- if (Dr && Dr.fo && false) {
- De.push('<div id="pr-review-faceoff-');
- De.push(Dh);
- De.push('" class="pr-review-faceoff"><div class="pr-review-faceoff-review-wrapper"><div id="pr-review-faceoff-positive-');
- De.push(Dh);
- De.push('" class="pr-review-faceoff-review pr-review-faceoff-review-positive"><div class="pr-review-faceoff-container"><p class="pr-review-faceoff-label">');
- De.push("Most Liked Positive Review");
- De.push('</p><div class="pr-review-faceoff-review-content"><div class="pr-stars ');
- De.push(BP[Dr.fo.f2.r.r].large);
- De.push('" style="background-position: 0px ');
- De.push(Dr.fo.f2.r.r * -46);
- De.push('px;"> </div><p class="pr-review-faceoff-title">');
- De.push(Dr.fo.f2.r.h);
- De.push('</p><p class="pr-review-faceoff-review">');
- if (Dr.fo.f2.cf) {
- if (Dr.fo.f2.r.l == "jp_JP") {
- De.push(AC(Dr.fo.f2.r.p, 0, Dr.fo.f2.cf, true));
- } else {
- De.push(AV(Dr.fo.f2.r.p, 0, Dr.fo.f2.cf, true));
- }
- De.push('<a data-pr-event="faceoff-positive-link" class="pr-review-faceoff-readcomplete" href="#" onclick="POWERREVIEWS.display.displayFaceoffModal(\'');
- De.push(Dh);
- De.push("','pr-review-faceoff-positive-");
- De.push(Dh);
- De.push("'); return false\">");
- De.push("Read complete review");
- De.push("</a>");
- } else {
- De.push(Dr.fo.f2.r.p);
- }
- De.push('</p><p class="pr-review-faceoff-review-full">');
- De.push(Dr.fo.f2.r.p);
- De.push('</p></div></div></div><div class="pr-review-faceoff-img"><p class="pr-review-faceoff-img-txt">');
- De.push("VS");
- De.push('</p></div><div id="pr-review-faceoff-negative-');
- De.push(Dh);
- De.push('" class="pr-review-faceoff-review pr-review-faceoff-review-negative"><div class="pr-review-faceoff-container"><p class="pr-review-faceoff-label">');
- De.push("Most Liked Negative Review");
- De.push('</p><div class="pr-review-faceoff-review-content"><div class="pr-stars ');
- De.push(BP[Dr.fo.f1.r.r].large);
- De.push('" style="background-position: 0px ');
- De.push(Dr.fo.f1.r.r * -46);
- De.push('px;"> </div><p class="pr-review-faceoff-title">');
- De.push(Dr.fo.f1.r.h);
- De.push('</p><p class="pr-review-faceoff-review">');
- if (Dr.fo.f1.cf) {
- if (Dr.fo.f1.r.l == "jp_JP") {
- De.push(AC(Dr.fo.f1.r.p, 0, Dr.fo.f1.cf, true));
- } else {
- De.push(AV(Dr.fo.f1.r.p, 0, Dr.fo.f1.cf, true));
- }
- De.push('<a data-pr-event="faceoff-negative-link" class="pr-review-faceoff-readcomplete" href="#" onclick="POWERREVIEWS.display.displayFaceoffModal(\'');
- De.push(Dh);
- De.push("','pr-review-faceoff-negative-");
- De.push(Dh);
- De.push("'); return false\">");
- De.push("Read complete review");
- De.push("</a>");
- } else {
- De.push(Dr.fo.f1.r.p);
- }
- De.push('</p><p class="pr-review-faceoff-review-full">');
- De.push(Dr.fo.f1.r.p);
- De.push('</p></div></div></div><div class="pr-clear"></div></div></div>');
- }
- De.push("</div>");
- if (i > 0) {
- De.push('<div id="pr-review-sort" class="pr-review-sort"><div class="pr-review-sort-wrapper"><p id="pr-review-filtered-count" class="pr-review-count" style="display:none"></p>');
- if (i == 1) {
- De.push('<p id="pr-review-count" class="pr-review-count">');
- De.push("Reviewed by 1 customer");
- De.push("</p>");
- } else {
- if (i > 1) {
- De.push('<p id="pr-review-count" class="pr-review-count">');
- De.push(("Reviewed by {0} customers" || "").replace("{0}", i));
- De.push('</p><div class="pr-review-sort-box"><label for="pr-sort-reviews" class="pr-review-sort-by">');
- De.push("Sort by");
- De.push('</label><select id="pr-sort-reviews" onchange="POWERREVIEWS.display.startSort(this, \'');
- De.push(Dh);
- De.push("', '");
- De.push(Dp);
- De.push("', '");
- De.push(Du);
- De.push("', POWERREVIEWS.common.getOptions('");
- De.push(Du);
- De.push('\'));"><option value="date_new" selected="true">');
- De.push("Newest");
- De.push('</option><option value="date_old">');
- De.push("Oldest");
- De.push('</option><option value="rating_high">');
- De.push("Highest rating");
- De.push('</option><option value="rating_low">');
- De.push("Lowest rating");
- De.push('</option><option value="helpful_high">');
- De.push("Most helpful");
- De.push('</option><option value="helpful_low">');
- De.push("Least helpful");
- De.push("</option></select></div>");
- }
- }
- De.push('<div class="pr-clear"></div></div></div>');
- }
- De.push('<!-- ilkj --><div id="pr-filters" class="pr-filters" style="display:none"><div class="pr-filters-wrapper"><div id="pr-filters-active" class="pr-filters-active"></div><div class="pr-filter-clear"><div class="pr-filter-label"><a href="#" onclick="POWERREVIEWS.display.clearFilters(null, \'');
- De.push(Du);
- De.push("', POWERREVIEWS.common.getOptions('");
- De.push(Du);
- De.push('\')); return false;">Clear all filters</a></div></div><div class="pr-clear"></div></div></div>');
- return De.join("");
- }
- F.display.processRollupTemplate = Cu;
- function Be(Ds, EJ, Do, Dv, D9, Dr, Du, DY, Db, Dx, DV, EC, Dy, Dt) {
- var Dj = [];
- var Dm = (Db - 1) * DY;
- var DZ = Dm + DY - 1;
- if (DZ > Du - 1) {
- DZ = Du - 1;
- }
- var EK = M("pr_back_to_top_link", Dt);
- var EB = b(Dt);
- var EI = AS(M("pr_badge_definitions_url", Dt), "~~~LOCALE~~~", Do);
- var Dl = ["Got it? Rate it.", "Not good", "Needs that special something", "Average, ordinary", "That's good stuff", "Perfect. It doesn't get any better"];
- var Dw = {
- "Yes": "Yes, I would recommend this to a friend",
- "No": "No, I would not recommend this to a friend"
- };
- var D5 = "All";
- Dj.push('<div class="pr-contents-wrapper">');
- if (!EC) {
- Dj.push('<div class="pr-pagination-top"><div class="pr-page-count-wrapper"><p class="pr-page-count">');
- if (Dm == DZ) {
- Dj.push("Displaying review");
- Dj.push(" <strong>");
- Dj.push((Dm + 1));
- Dj.push("</strong>");
- } else {
- Dj.push("Displaying reviews");
- Dj.push(" <strong>");
- Dj.push((Dm + 1) + "-" + (DZ + 1));
- Dj.push("</strong>");
- }
- Dj.push('</p><p class="pr-nav-back-to-top"><a href="');
- Dj.push(EK);
- Dj.push('" name="pr-header-back-to-top-link" data-pr-event="header-back-to-top-link">');
- Dj.push("Back to top");
- Dj.push("</a></p></div>");
- if (Du > DY) {
- Dj.push('<div class="pr-page-nav-wrapper"><p class="pr-page-nav"><span class="pr-page-prev">');
- if (Dm > 0) {
- Dj.push('<a data-pr-event="header-page-prev-link" onclick="POWERREVIEWS.display.getReviewsFromMeta(');
- Dj.push(Db - 1);
- Dj.push(", '");
- Dj.push(EJ);
- Dj.push("', '");
- Dj.push(Do);
- Dj.push("', '");
- Dj.push(Dy);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;" href="');
- Dj.push(Dx.replace("~~~REVIEW_PAGE~~~", Db - 1));
- Dj.push('">« ');
- Dj.push("Previous");
- Dj.push("</a>");
- } else {
- Dj.push("Previous");
- }
- Dj.push('</span><span class="pr-divider"> | </span><span class="pr-page-next">');
- if (DZ < Du - 1) {
- Dj.push('<a data-pr-event="header-page-next-link" onclick="POWERREVIEWS.display.getReviewsFromMeta(');
- Dj.push(Db + 1);
- Dj.push(", '");
- Dj.push(EJ);
- Dj.push("', '");
- Dj.push(Do);
- Dj.push("', '");
- Dj.push(Dy);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;" href="');
- Dj.push(DV.replace("~~~REVIEW_PAGE~~~", Db + 1));
- Dj.push('">');
- Dj.push("Next");
- Dj.push(" »</a>");
- } else {
- Dj.push("Next");
- }
- Dj.push("</span></p></div>");
- }
- Dj.push('<div class="pr-clear"></div></div>');
- }
- for (var Dz = 0; Dz < Ds.length; Dz++) {
- var Dc = Ds[Dz];
- var ED = {};
- var D2 = false;
- if (Dc.g) {
- for (var EG = 0; EG < Dc.g.length; EG++) {
- var Dh = Dc.g[EG].k;
- ED[Dh] = true;
- D2 = D2 || (Dh != "pros" && Dh != "cons" && Dh != "bestuses" && Dh != "describeyourself");
- }
- }
- Dj.push('<div class="pr-review-wrap" data-review-id="');
- Dj.push(Dc.id);
- Dj.push('"><div class="pr-review-rating-wrapper"><div class="pr-review-author-date pr-rounded">');
- Dj.push((AL(Dc.db, Do, Dt) || Dc.d));
- Dj.push("</div>");
- if (Dc.t > 0) {
- Dj.push('<div class="pr-review-most-helpful"><p>(<span>');
- Dj.push(("{0} of {1}" || "").replace("{0}", Dc.v).replace("{1}", Dc.t));
- Dj.push("</span> ");
- Dj.push("customers found this review helpful");
- Dj.push(")</p></div>");
- }
- Dj.push('<div class="pr-review-rating"><div class="pr-stars pr-stars-small ');
- Dj.push(BP[Dc.r].small);
- Dj.push('" style="background-position: 0px ');
- Dj.push(Dc.r * -36);
- Dj.push('px;" title="');
- Dj.push(Dl[Dc.r]);
- Dj.push('"> </div><span class="pr-rating pr-rounded">');
- Dj.push(Dc.r);
- Dj.push('.0</span><p class="pr-review-rating-headline">');
- Dj.push(Dc.h);
- Dj.push("</p></div></div>");
- if (!EC) {
- Dj.push(' <div class="pr-review-author"><div class="pr-review-author-info-wrapper">');
- if (Dc.fu && (false)) {
- if (Dc.pi) {
- Dj.push("<p>");
- var Dq = M("pr_see_all_reviews_url", Dt).replace("~~~MERCHANT_USER_ID~~~", Dc.mu).replace("~~~NICKNAME~~~", Dc.n);
- if (Dq) {
- Dj.push('<a class="pr-review-author-profile-link" href="');
- Dj.push(Dq);
- Dj.push('" data-pr-event="review-author-image-link"><img alt="Profile Image" src="https://graph.facebook.com/');
- Dj.push(Dc.fu);
- Dj.push('/picture" /></a>');
- } else {
- if (false) {
- Dj.push('<a class="prReviewAuthorProfileLnk" data-pr-event="review-author-image-link" href="#" onclick="POWERREVIEWS.display.showIntegratedProfile(');
- Dj.push(Dc.pi);
- Dj.push(", '");
- Dj.push(Do);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;"><img alt="Profile Image" src="https://graph.facebook.com/');
- Dj.push(Dc.fu);
- Dj.push('/picture" /></a>');
- } else {
- Dj.push('<a class="pr-review-author-profile-link" href="#" onclick="POWERREVIEWS.display.showProfileWithHash(\'');
- Dj.push(Dc.pi);
- Dj.push("', '");
- Dj.push(EJ);
- Dj.push("', {'badges':[");
- Dj.push((Dc.cb || []).toString());
- Dj.push("]}, '");
- Dj.push(Do);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;" data-pr-event="review-author-image-link"><img alt="Profile Image" src="https://graph.facebook.com/');
- Dj.push(Dc.fu);
- Dj.push('/picture" /></a>');
- }
- }
- Dj.push("</p>");
- } else {
- var Dg = z({
- "locale": Do,
- "sharedReviewId": Dc.id
- }, Dt);
- Dj.push('<a href="#" onclick="POWERREVIEWS.common.showSmallPopup(\'');
- Dj.push(Dg);
- Dj.push("', 425, 600, {'location':'no'}); return false;\"><img alt=\"Profile Image\" src=\"https://graph.facebook.com/");
- Dj.push(Dc.fu);
- Dj.push('/picture" /></a>');
- }
- }
- Dj.push('<p class="pr-review-author-name">');
- Dj.push("By");
- Dj.push(" ");
- if (false && Dc.pi) {
- Dj.push('<a class="prReviewAuthorProfileLnk" data-pr-event="review-author-profile-link" href="#" onclick="POWERREVIEWS.display.showIntegratedProfile(');
- Dj.push(Dc.pi);
- Dj.push(", '");
- Dj.push(Do);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push("')); return false;\"><span>");
- Dj.push(Dc.n);
- Dj.push("</span></a>");
- } else {
- Dj.push("<span>");
- Dj.push(Dc.n);
- Dj.push("</span>");
- }
- Dj.push('</p><p class="pr-review-author-location">');
- Dj.push("from");
- Dj.push(" <span>");
- Dj.push(Dc.w);
- Dj.push("</span></p>");
- if (Dc.g) {
- for (var DW = 0; DW < Dc.g.length; DW++) {
- var Dk = Dc.g[DW];
- if (Dk.k == "describeyourself") {
- Dj.push('<div class="pr-review-author-affinity-wrapper"><p class="pr-review-author-affinities">');
- Dj.push("About Me" || Dk.n);
- Dj.push(" <span>");
- Dj.push(Dk.v.join(", "));
- Dj.push("</span></p></div>");
- }
- }
- }
- if (Dc.pi && !Dc.dp) {
- var Dq = M("pr_see_all_reviews_url", Dt).replace("~~~MERCHANT_USER_ID~~~", Dc.mu).replace("~~~NICKNAME~~~", Dc.n);
- if (Dq) {
- Dj.push('<p><a class="pr-review-author-profile-link" href="');
- Dj.push(Dq);
- Dj.push('" data-pr-event="review-author-profile-link">');
- Dj.push("See all my reviews");
- Dj.push("</a></p>");
- } else {
- if (!false) {
- Dj.push('<p><a class="pr-review-author-profile-link" href="#" onclick="POWERREVIEWS.display.showProfileWithHash(\'');
- Dj.push(Dc.pi);
- Dj.push("', '");
- Dj.push(EJ);
- Dj.push("', {'badges':[");
- Dj.push((Dc.cb || []).toString());
- Dj.push("]}, '");
- Dj.push(Do);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;" data-pr-event="review-author-profile-link">');
- Dj.push("See all my reviews");
- Dj.push("</a></p>");
- }
- }
- Dj.push(" ");
- }
- Dj.push("</div>");
- var D3 = DA(Dc.cb);
- var EE = (Dc.o && Dc.o == "e");
- var De = Dc.m;
- var D4 = (Dc.c && Dc.c == "v");
- if (EE || D3 || De || D4) {
- Dj.push('<div class="pr-review-author-badge-wrapper">');
- if (EE) {
- Dj.push('<div class="pr-review-author-verified-buyer-wrapper pr-review-author-verified-buyer-');
- Dj.push(Do);
- Dj.push('"><a href="');
- Dj.push(EI);
- Dj.push('"><img class="pr-badge pr-verified-buyer" src="');
- Dj.push(EB);
- Dj.push("/engine/images/badge_vp_");
- Dj.push(Do);
- Dj.push(".gif");
- Dj.push('" alt="');
- Dj.push("Verified Buyer");
- Dj.push('" title="');
- Dj.push("Verified Buyer");
- Dj.push('" /></a></div>');
- }
- if (D3) {
- Dj.push(Ae(D3, Do, Dt));
- } else {
- if (De) {
- Dj.push('<div class="pr-review-author-member-badge-wrapper pr-review-author-member-badge-wrapper-');
- Dj.push(Do);
- Dj.push('"><img class="pr-badge pr-site-member" src="');
- Dj.push(EB);
- Dj.push('/engine/images/pixel.gif" alt="');
- Dj.push("Site Member");
- Dj.push('" title="');
- Dj.push("Site Member");
- Dj.push('" /></div>');
- }
- }
- if (D4 && !false && !EE && !D3 && !De) {
- Dj.push('<div class="pr-review-author-verified pr-review-author-verified-');
- Dj.push(Do);
- Dj.push('"><a href="');
- Dj.push(EI);
- Dj.push('"><img class="pr-badge pr-verified" src="');
- Dj.push(EB);
- Dj.push("/engine/images/badge_vr_");
- Dj.push(Do);
- Dj.push(".gif");
- Dj.push('" alt="');
- Dj.push("Verified Reviewer");
- Dj.push('" title="');
- Dj.push("Verified Reviewer");
- Dj.push('" /></a></div>');
- }
- Dj.push("</div>");
- }
- Dj.push("</div>");
- } else {
- if (EC && Dc.pr) {
- Dj.push('<div class="pr-profile-review-product-info">');
- if (Dc.pr.m && window && window.location && window.location.protocol == "http:") {
- if (Dc.pr.u) {
- Dj.push('<a href="');
- Dj.push(Dc.pr.u);
- Dj.push('"><img alt="Review" src="');
- Dj.push(AM(Dc.pr.m));
- Dj.push('" /></a>');
- } else {
- Dj.push('<img alt="Review" src="');
- Dj.push(AM(Dc.pr.m));
- Dj.push('" />');
- }
- }
- if (Dc.pr.n) {
- if (Dc.pr.u) {
- Dj.push('<a href="');
- Dj.push(Dc.pr.u);
- Dj.push('">');
- Dj.push(Dc.pr.n);
- Dj.push("</a>");
- } else {
- Dj.push(Dc.pr.n);
- }
- }
- Dj.push("</div>");
- }
- }
- Dj.push('<div class="pr-review-main-wrapper">');
- if (Dc.g && (ED.pros || ED.cons || ED.bestuses)) {
- Dj.push('<div class="pr-review-points"><div class="pr-review-points-attr-wrapper"><div class="pr-attribute-group pr-rounded pr-attribute-pros');
- Dj.push(ED.pros ? "" : " pr-empty");
- Dj.push('"><div class="pr-attribute-key"><p class="pr-attribute-label-pros">');
- Dj.push("Pros");
- Dj.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list">');
- for (var DW = 0; DW < Dc.g.length; DW++) {
- var Dk = Dc.g[DW];
- if (Dk.k == "pros") {
- for (var D8 = 0; D8 < Dk.v.length; D8++) {
- Dj.push("<li>");
- Dj.push(Dk.v[D8]);
- Dj.push("</li>");
- }
- break;
- }
- }
- Dj.push('</ul></div></div><div class="pr-attribute-group pr-rounded pr-attribute-cons');
- Dj.push(ED.cons ? "" : " pr-empty");
- Dj.push('"><div class="pr-attribute-key"><p class="pr-attribute-label-cons">');
- Dj.push("Cons");
- Dj.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list">');
- for (var DW = 0; DW < Dc.g.length; DW++) {
- var Dk = Dc.g[DW];
- if (Dk.k == "cons") {
- for (var D8 = 0; D8 < Dk.v.length; D8++) {
- Dj.push("<li>");
- Dj.push(Dk.v[D8]);
- Dj.push("</li>");
- }
- break;
- }
- }
- Dj.push('</ul></div></div><div class="pr-attribute-group pr-rounded pr-attribute-bestuses');
- Dj.push(ED.bestuses ? "" : " pr-empty");
- Dj.push(' pr-last"><div class="pr-attribute-key"><p class="pr-attribute-label-bestuses">');
- Dj.push("Best Uses");
- Dj.push('</p></div><div class="pr-attribute-value"><ul class="pr-attribute-value-list">');
- for (var DW = 0; DW < Dc.g.length; DW++) {
- var Dk = Dc.g[DW];
- if (Dk.k == "bestuses") {
- for (var D8 = 0; D8 < Dk.v.length; D8++) {
- Dj.push("<li>");
- Dj.push(Dk.v[D8]);
- Dj.push("</li>");
- }
- break;
- }
- }
- Dj.push('</ul></div></div><div class="pr-clear"></div></div></div>');
- }
- if (Dc.dc && Dc.dc === "sweepstakes") {
- Dj.push('<div class="pr-disclosure-message"><p class="pr-disclosure-text">');
- Dj.push("Submitted as part of a sweepstakes entry");
- Dj.push("</p></div>");
- } else {
- if (Dc.dc && Dc.dc === "sampling") {
- Dj.push('<div class="pr-disclosure-message"><p class="pr-disclosure-text">');
- Dj.push("Reviewer received a free sample of this product");
- Dj.push("</p></div>");
- }
- }
- Dj.push('<div class="pr-review-text">');
- if (Dc.pv && D9 && D9[Dc.pv]) {
- Dj.push('<p class="pr-comments-header">');
- Dj.push(("Comments about <em>{0}</em>:" || "").replace("{0}", D9[Dc.pv]));
- Dj.push("</p>");
- } else {
- if (Dv) {
- var EA = "";
- if (Dr) {
- EA += '<span class="pr-brand-name">' + Dr + " </span>";
- }
- EA += '<span class="pr-product-name">' + Dv + "</span>";
- Dj.push('<p class="pr-comments-header">');
- Dj.push(("Comments about <em>{0}</em>:" || "").replace("{0}", EA));
- Dj.push("</p>");
- } else {
- if (EC && Dc.pr && Dc.pr.n) {
- var EA = "";
- if (Dc.pr.br) {
- EA += '<span class="pr-brand-name">' + Dc.pr.br + " </span>";
- }
- EA += '<span class="pr-product-name">' + Dc.pr.n + "</span>";
- Dj.push('<p class="pr-comments-header">');
- Dj.push(("Comments about <em>{0}</em>:" || "").replace("{0}", EA));
- Dj.push("</p>");
- }
- }
- }
- Dj.push('<p class="pr-comments">');
- Dj.push(AE(Dc.p));
- Dj.push("</p></div>");
- if (Dc.z) {
- Dj.push('<div class="pr-review-text"><p class="pr-comments-header">');
- Dj.push("Service and delivery comments:");
- Dj.push('</p><p class="pr-comments">');
- Dj.push(AE(Dc.z));
- Dj.push("</p></div>");
- }
- if (D2 || Dc.rp || Dc.sp || Dc.tb || Dc.ar) {
- Dj.push('<div class="pr-other-attributes">');
- if (Dc.g) {
- Dj.push('<div class="pr-other-attribute-tag-group"><ul class="pr-other-attributes-list">');
- for (var DW = 0; DW < Dc.g.length; DW++) {
- var Dk = Dc.g[DW];
- if (Dk.k != "pros" && Dk.k != "cons" && Dk.k != "bestuses" && Dk.k != "describeyourself") {
- Dj.push('<li class="pr-other-attribute-label">');
- Dj.push(Dk.n);
- Dj.push(':</li><li class="pr-other-attribute-value">');
- Dj.push(Dk.v.join(", "));
- Dj.push("</li>");
- }
- }
- Dj.push("</ul></div>");
- }
- if (Dc.tb) {
- Dj.push('<div class="pr-other-attribute-text-group"><ul class="pr-other-attributes-list">');
- for (var DW = 0; DW < Dc.tb.length; DW++) {
- var Dk = Dc.tb[DW];
- Dj.push('<li class="pr-other-attribute-label pr-merchant-question-label">');
- Dj.push(Dk.n);
- Dj.push(':</li><li class="pr-other-attribute-value pr-merchant-question-value">');
- Dj.push(Dk.v);
- Dj.push("</li>");
- }
- Dj.push("</ul></div>");
- }
- if (Dc.ar) {
- Dj.push('<div class="pr-other-attribute-additional-ratings"><ul class="pr-other-attributes-list">');
- for (var DW = 0; DW < Dc.ar.length; DW++) {
- var Dk = Dc.ar[DW];
- Dj.push('<li class="pr-other-attribute-label">');
- Dj.push(Dk.n);
- Dj.push(':</li><li class="pr-other-attribute-value"><div class="pr-stars pr-stars-small pr-stars-small-subrating ');
- Dj.push(BP[Dk.v].small);
- Dj.push('" style="background-position: 0px ');
- Dj.push(Dk.v * -36);
- Dj.push('px;" title="');
- Dj.push(Dl[Dk.v]);
- Dj.push('"> </div></li>');
- }
- Dj.push("</ul></div>");
- }
- if (Dc.rp) {
- Dj.push('<div class="pr-other-attribute-recommended-products"><ul class="pr-other-attributes-list">');
- var Dn = [];
- for (var EF = 0; EF < Dc.rp.length; EF++) {
- var D0 = Dc.rp[EF];
- Dn.push(D0.u ? '<a href="' + D0.u + '">' + D0.n + "</a>" : D0.n);
- }
- Dj.push('<li class="pr-other-attribute-label">');
- Dj.push("Recommended");
- Dj.push(':</li><li class="pr-other-attribute-value">');
- Dj.push(Dn.join(", "));
- Dj.push("</li></ul></div>");
- }
- if (Dc.sp) {
- Dj.push('<div class="pr-other-attribute-similar-products"><ul class="pr-other-attributes-list">');
- var Dp = [];
- for (var EH = 0; EH < Dc.sp.length; EH++) {
- var Dd = Dc.sp[EH];
- Dp.push(Dd.u ? '<a href="' + Dd.u + '">' + Dd.n + "</a>" : Dd.n);
- }
- Dj.push('<li class="pr-other-attribute-label">');
- Dj.push("Similar");
- Dj.push(':</li><li class="pr-other-attribute-value">');
- Dj.push(Dp.join(", "));
- Dj.push("</li></ul></div>");
- }
- Dj.push('<div class="pr-clear"></div></div>');
- }
- Dj.push('<div class="pr-review-footer">');
- if (Dc.b) {
- var DX;
- if (Dc.b.v) {
- DX = Dc.b.v;
- } else {
- DX = Dw[Dc.b.k];
- }
- Dj.push('<div class="pr-review-bottom-line-wrapper"><p><span class="pr-review-bottom-line">');
- Dj.push("Bottom Line");
- Dj.push("</span> <span></span>");
- Dj.push(DX);
- Dj.push("</p></div>");
- }
- if (Dc.i) {
- Dj.push('<div class="pr-customer-media">');
- for (var D7 = 0; D7 < Dc.i.r.length; D7++) {
- var Di = Dc.i.r[D7];
- if (Di.v && Cs(Di.v)) {
- continue;
- }
- Dj.push('<div class="pr-customer-media-wrapper"><p class="pr-customer-media-user">');
- if (Dc.i.t == "i") {
- Dj.push("Images shared by");
- Dj.push(" <span>");
- Dj.push(Dc.n);
- Dj.push("</span>");
- } else {
- if (Dc.i.t == "v") {
- Dj.push("Video shared by");
- Dj.push(" <span>");
- Dj.push(Dc.n);
- Dj.push("</span>");
- } else {
- Dj.push("Images shared by");
- Dj.push(" <span>");
- Dj.push(Dc.n);
- Dj.push("</span>");
- }
- }
- Dj.push('</p><div class="pr-pic pr-rounded"><p class="pr-caption">');
- Dj.push(Di.c);
- Dj.push('</p><div class="pr-pic-content"><div class="wrap1"><div class="wrap2">');
- if (!Di.v) {
- if (Di.s) {
- Dj.push('<a href="#" onclick="POWERREVIEWS.common.showImagePopup(\'');
- Dj.push(Di.s.u);
- Dj.push("', ");
- Dj.push(Di.s.w);
- Dj.push(", ");
- Dj.push(Di.s.h);
- Dj.push(", POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;"><img src="');
- Dj.push(EB);
- Dj.push("/content");
- Dj.push(Di.h.u);
- Dj.push('" alt="');
- Dj.push("Image Thumbnail");
- Dj.push('" width="');
- Dj.push(Di.h.w);
- Dj.push('" height="');
- Dj.push(Di.h.h);
- Dj.push('" onerror="POWERREVIEWS.common.cloudinaryThumbnailFallback(event, \'');
- Dj.push(Di.s.u);
- Dj.push("', ");
- Dj.push(Di.s.w);
- Dj.push(", ");
- Dj.push(Di.s.h);
- Dj.push('); return false;" /></a>');
- } else {
- Dj.push('<img src="');
- Dj.push(EB);
- Dj.push("/content");
- Dj.push(Di.h.u);
- Dj.push('" alt="');
- Dj.push("Image Thumbnail");
- Dj.push('" width="');
- Dj.push(Di.h.w);
- Dj.push('" height="');
- Dj.push(Di.h.h);
- Dj.push('" />');
- }
- } else {
- Dj.push('<a href="#" onclick="POWERREVIEWS.common.showVideoPopup(\'');
- Dj.push(Di.v);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push('\')); return false;"><img src="');
- Dj.push(Di.h.u);
- Dj.push('" alt="');
- Dj.push("Video Thumbnail");
- Dj.push('" width="75" height="50" onerror="this.src=\'//res.cloudinary.com/powerreviews/image/upload/t_media_lib_thumb/video_unavailable.jpg\'"/></a>');
- }
- Dj.push("</div></div></div>");
- if (Di.g) {
- Dj.push('<p class="pr-pic-tags"><span class="pr-tag-label">');
- Dj.push("Tags:");
- Dj.push("</span> ");
- Dj.push(Di.g.join(", "));
- Dj.push("</p>");
- }
- Dj.push("</div></div>");
- }
- Dj.push('<div class="pr-clear"></div></div>');
- }
- if (Dc.y) {
- Dj.push('<div class="pr-merchant-comments">');
- for (var D1 = 0; D1 < Dc.y.length; D1++) {
- Dj.push('<p class="pr-merchant-comments-text"><span>');
- Dj.push(("Merchant response: " || "").replace("{0}", Q(Dt).name));
- Dj.push("</span>");
- Dj.push(AE(Dc.y[D1]));
- Dj.push("</p>");
- }
- Dj.push("</div>");
- }
- if (Dc.at) {
- var Da = M("pr_attribution_table", Dt);
- var D6 = Da[Dc.at];
- if (D6) {
- if (D6.originating_merchant_url && D6.image_uri) {
- if (D6.attribution_text) {
- Dj.push('<div class="pr-review-attribution">');
- if (D6.attribution_text) {
- Dj.push('<div class="pr-review-attribution-text"><p>');
- Dj.push(D6.attribution_text);
- Dj.push("</p></div>");
- }
- Dj.push('<div class="pr-review-attribution-img"><p class="pr-review-attribute-imgLabel">');
- Dj.push("REVIEWED AT");
- Dj.push('</p><img alt="Attribution" src="');
- Dj.push(EB);
- Dj.push("/engine/images/");
- Dj.push(D6.image_uri);
- Dj.push('"/></div><div class="pr-clear"></div></div>');
- } else {
- Dj.push('<div class="pr-review-attribution-img"><p class="pr-review-attribute-imgLabel">');
- Dj.push("REVIEWED AT");
- Dj.push('</p><img alt="Attribution" src="');
- Dj.push(EB);
- Dj.push("/engine/images/");
- Dj.push(D6.image_uri);
- Dj.push('"/></div><div class="pr-clear"></div>');
- }
- }
- }
- }
- if (Dc.t > 0) {
- Dj.push('<div class="pr-review-most-helpful-bottom"><p>(<span>');
- Dj.push(("{0} of {1}" || "").replace("{0}", Dc.v).replace("{1}", Dc.t));
- Dj.push("</span> ");
- Dj.push("customers found this review helpful");
- Dj.push(")</p></div>");
- }
- if (!EC) {
- Dj.push('<div class="pr-review-tools"><p class="pr-review-helpful-text">');
- Dj.push("Was this review helpful?");
- Dj.push(' <a data-pr-event="review-helpful-yes-link" class="pr-review-helpful-text-link" href="#" onclick="POWERREVIEWS.display.submitHelpfulVote(\'');
- Dj.push(Dc.id);
- Dj.push("', 'helpful', '");
- Dj.push(Do);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push("')); return false;\">");
- Dj.push("Yes");
- Dj.push('</a> / <a data-pr-event="review-helpful-no-link" class="pr-review-helpful-text-link" href="#" onclick="POWERREVIEWS.display.submitHelpfulVote(\'');
- Dj.push(Dc.id);
- Dj.push("', 'unhelpful', '");
- Dj.push(Do);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push("')); return false;\">");
- Dj.push("No");
- Dj.push('</a></p><p class="pr-review-report-issue"><span class="pr-review-report-issue-hyphen"> - </span>');
- Dj.push("You may also");
- Dj.push(' <a href="#" data-pr-event="review-report-issue-link" class="pr-review-helpful-text-link" onclick="POWERREVIEWS.display.launchErrorDiv(\'');
- Dj.push(Dc.id);
- Dj.push("', '");
- Dj.push(Do);
- Dj.push("', '");
- Dj.push(Dy);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push("')); return false;\">");
- Dj.push("flag this review");
- Dj.push('</a></p><div class="pr-error" id="error_div');
- Dj.push(Dc.id);
- Dj.push('" style=""></div><p class="pr-review-helpful-response" id="review_feedback');
- Dj.push(Dc.id);
- Dj.push('"></p></div>');
- }
- Dj.push('</div></div><div class="pr-clear"></div>');
- if (false) {
- var Df = CN({
- "locale": Do,
- "sharedReviewId": Dc.id
- }, Dt);
- Dj.push('<p class="pr-fb-reviewComment"><span><a data-pr-event="review-fb-review-comment-link" href="#" onclick="POWERREVIEWS.common.showSmallPopup(\'');
- Dj.push(Df);
- Dj.push("', 450, 600, {'location':'no'}); return false;\">");
- Dj.push("Comment on this review");
- Dj.push('</a></span><img alt="Help Icon" class="pr-profile-fb-help-icon" src="');
- Dj.push(EB);
- Dj.push('/engine/images/icon_orange_help.gif" title="');
- Dj.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 News Feed.");
- Dj.push('" />');
- if (a && a["facebook_comment"]) {
- Dj.push('<span class="pr-fb-reviewComment-social-loyalty">');
- Dj.push("(earn points)");
- Dj.push("</span>");
- }
- Dj.push('</p><div class="pr-clear"></div>');
- }
- Dj.push("</div>");
- }
- if (!EC) {
- Dj.push('<div class="pr-pagination-bottom"><div class="pr-page-count-wrapper"><p class="pr-page-count">');
- if (Dm == DZ) {
- Dj.push("Displaying review");
- Dj.push(" <strong>");
- Dj.push((Dm + 1));
- Dj.push("</strong>");
- } else {
- Dj.push("Displaying reviews");
- Dj.push(" <strong>");
- Dj.push((Dm + 1) + "-" + (DZ + 1));
- Dj.push("</strong>");
- }
- Dj.push('</p><p class="pr-nav-back-to-top"><a href="');
- Dj.push(EK);
- Dj.push('" data-pr-event="footer-back-to-top-link">');
- Dj.push("Back to top");
- Dj.push("</a></p></div>");
- if (Du > DY) {
- Dj.push('<div class="pr-page-nav-wrapper"><p class="pr-page-nav"><span class="pr-page-prev">');
- if (Dm > 0) {
- Dj.push('<a data-pr-event="footer-page-prev-link" onclick="POWERREVIEWS.display.getReviewsFromMeta(');
- Dj.push(Db - 1);
- Dj.push(", '");
- Dj.push(EJ);
- Dj.push("', '");
- Dj.push(Do);
- Dj.push("', '");
- Dj.push(Dy);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push("')); location.hash='#'; location.hash='#pr-header-back-to-top-link'; return (false);\" href=\"");
- Dj.push(Dx.replace("~~~REVIEW_PAGE~~~", Db - 1));
- Dj.push('">« ');
- Dj.push("Previous");
- Dj.push("</a>");
- } else {
- Dj.push("Previous");
- }
- Dj.push('</span><span class="pr-divider"> | </span><span class="pr-page-next">');
- if (DZ < Du - 1) {
- Dj.push('<a data-pr-event="footer-page-next-link" onclick="POWERREVIEWS.display.getReviewsFromMeta(');
- Dj.push(Db + 1);
- Dj.push(", '");
- Dj.push(EJ);
- Dj.push("', '");
- Dj.push(Do);
- Dj.push("', '");
- Dj.push(Dy);
- Dj.push("', POWERREVIEWS.common.getOptions('");
- Dj.push(Dy);
- Dj.push("')); location.hash='#'; location.hash='#pr-header-back-to-top-link'; return (false);\" href=\"");
- Dj.push(DV.replace("~~~REVIEW_PAGE~~~", Db + 1));
- Dj.push('">');
- Dj.push("Next");
- Dj.push(" »</a>");
- } else {
- Dj.push("Next");
- }
- Dj.push("</span></p></div>");
- }
- Dj.push('<div class="pr-clear"></div></div>');
- }
- Dj.push("</div>");
- return Dj.join("");
- }
- F.display.processReviewsTemplate = Be;
- function BS(DX, DW, DV, DY) {
- 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(DX);
- i.push('" id="profanity_');
- i.push(DX);
- i.push('" value="profane"><label for="profanity_');
- i.push(DX);
- i.push('">');
- i.push("Profanity");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="wrong_product_');
- i.push(DX);
- i.push('" value="wrong_product"><label for="wrong_product_');
- i.push(DX);
- i.push('">');
- i.push("Wrong product");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="spam_');
- i.push(DX);
- i.push('" value="spam"><label for="spam_');
- i.push(DX);
- i.push('">');
- i.push("Spam");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="duplicate_');
- i.push(DX);
- i.push('" value="duplicate"><label for="duplicate_');
- i.push(DX);
- i.push('">');
- i.push("Duplicate");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="copyright_violation_');
- i.push(DX);
- i.push('" value="copyright"><label for="copyright_violation_');
- i.push(DX);
- i.push('">');
- i.push("Copyright violation");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="not_review_');
- i.push(DX);
- i.push('" value="not_review"><label for="not_review_');
- i.push(DX);
- i.push('">');
- i.push("Not a product review");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="customer_image_');
- i.push(DX);
- i.push('" value="customer_image"><label for="customer_image_');
- i.push(DX);
- i.push('">');
- i.push("Customer image");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="problem_with_image_');
- i.push(DX);
- i.push('" value="customer_image"><label for="problem_with_image_');
- i.push(DX);
- i.push('">');
- i.push("Problem with image");
- i.push('</label></div><div><input type="radio" name="error_radio');
- i.push(DX);
- i.push('" id="other_');
- i.push(DX);
- i.push('" value="other"><label for="other_');
- i.push(DX);
- i.push('">');
- i.push("Other");
- i.push('</label></div><div><label for="error_contact_email');
- i.push(DX);
- 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(DX);
- i.push('" cols="20" maxlength="80"></div><div class="pr-issue-subtext">');
- i.push('</div><div><label for="error_comments');
- i.push(DX);
- i.push('">');
- i.push("Comments:");
- i.push('</label><textarea class="pr-error-comments" id="error_comments');
- i.push(DX);
- i.push('" cols="30" rows="3"></textarea></div><button class="pr-submit-button" onclick="POWERREVIEWS.display.submitError(\'');
- i.push(DX);
- i.push("', '");
- i.push(DW);
- i.push("', POWERREVIEWS.common.getOptions('");
- i.push(DV);
- i.push("')); return false;\"><span>");
- i.push("Submit");
- i.push('</span></button><button class="pr-cancel-button" onclick="POWERREVIEWS.display.cancelError(\'');
- i.push(DX);
- i.push("'); return false;\"><span>");
- i.push("Cancel");
- i.push("</span></button>");
- return i.join("");
- }
- F.display.processErrorDivTemplate = BS;
- function AT(DY, Dc, Dj) {
- var Dk = [];
- Dk.push('<div class="pr-other-attributes-histogram"><ul class="pr-other-attributes-list">');
- for (var DW = 0; DW < DY.length; DW++) {
- var Df = DY[DW];
- var Di = {};
- var Dg = 0;
- var DV = 0;
- var Da = 0;
- for (var i = 0; i < Df.v.length; i++) {
- var De = Df.v[i];
- Di[De.n.toLowerCase()] = De.c;
- }
- for (var DX = 0; DX < Df.a.length; DX++) {
- var Db = Df.a[DX];
- var Dd = Db.toLowerCase();
- Di[Dd] = Di[Dd] || 0;
- Dg += Di[Dd];
- if (Di[Dd] > DV) {
- DV = Di[Dd];
- Da = DX;
- }
- }
- Dk.push('<li class="pr-other-attributes-group pr-other-attribute-');
- Dk.push(Df.k);
- Dk.push('"><ul><li class="pr-other-attribute-label">');
- Dk.push(Df.n);
- Dk.push(':</li><li class="pr-other-attribute-value"><table>');
- for (var DX = 0; DX < Df.a.length; DX++) {
- var Db = Df.a[DX];
- var Dd = Db.toLowerCase();
- var Dh = Di[Dd] / Dg * 100;
- var DZ = (Da == DX);
- Dk.push('<tr class="pr-other-attribute-value-histogram-element ');
- Dk.push(DZ ? "pr-other-attribute-value-histogram-element-max" : "");
- Dk.push('"><td class="pr-other-attribute-value-histogram-label"><p>');
- Dk.push(Db);
- Dk.push('</p></td><td class="pr-other-attribute-value-histogram-bar"><div class="pr-other-attribute-value-histogram-wrapper">');
- if (Di[Dd] != 0) {
- Dk.push('<div class="pr-other-attribute-value-histogram-barValue" style="width:');
- Dk.push(Dh);
- Dk.push('%"> </div>');
- } else {
- Dk.push(" ");
- }
- Dk.push('</div></td><td class="pr-other-attribute-value-histogram-stats">');
- if (DZ) {
- Dk.push('<p><span class="pr-other-attribute-value-histogram-stats-pct">');
- Dk.push(Math.round(Dh));
- Dk.push('% </span><span class="pr-other-attribute-value-histogram-stats-count">');
- if (Di[Dd] == 1) {
- Dk.push('<p class="pr-snippet-review-count">');
- Dk.push("(1 review)");
- Dk.push("</p>");
- } else {
- Dk.push('<p class="pr-snippet-review-count">');
- Dk.push("({0} reviews)".replace("{0}", Di[Dd]));
- Dk.push("</p>");
- }
- Dk.push("</span></p>");
- }
- Dk.push("</td></tr>");
- }
- Dk.push("</table></li></ul></li>");
- }
- Dk.push('<li class="pr-clear"></li></ul></div>');
- return Dk.join("");
- }
- function Co(DY, DV, DX) {
- var i = [];
- i.push('<div class="pr-other-attributes-subratings"><ul class="pr-other-attributes-list">');
- for (var DW = 0; DW < DY.length; DW++) {
- var DZ = DY[DW];
- i.push('<li class="pr-other-attributes-group pr-other-attribute-');
- i.push(DZ.k);
- i.push('"><ul><li class="pr-other-attribute-label">');
- i.push(DZ.n);
- i.push(':</li><li class="pr-other-attribute-value"><div class="pr-stars pr-stars-small pr-stars-small-subrating ');
- i.push(BP[DZ.a].small);
- i.push('" style="background-position: 0px ');
- i.push(DZ.a * -36);
- i.push('px;"> </div></li></ul></li>');
- }
- i.push("</ul></div>");
- return i.join("");
- }
- function AJ(Da, Dc, Db, Dd, DY) {
- var De = [];
- var DV = ["1 Stars", "2 Stars", "3 Stars", "4 Stars", "5 Stars"];
- var DW = 0;
- for (var DZ = 0; DZ < 5; DZ++) {
- DW += Da[DZ];
- }
- var DX = (Da[DZ] === 0) ? "pr-zero-ratings" : "";
- De.push('<div class="pr-ratings-histogram-wrapper"><ul class="pr-ratings-histogram-content">');
- for (DZ = 4; DZ >= 0; DZ--) {
- De.push('<li class="pr-histogram-');
- De.push([DZ + 1]);
- De.push("Stars ");
- De.push(DX);
- De.push('" ');
- if (Da[DZ] > 0) {
- De.push(' onclick="POWERREVIEWS.display.filterReviewsByRating(this, ');
- De.push([DZ + 1]);
- De.push(", '");
- De.push(Db);
- De.push("', POWERREVIEWS.common.getOptions('");
- De.push(Db);
- De.push("'), ");
- De.push(DY);
- De.push(');return false" ');
- }
- De.push('><p class="pr-histogram-label"><span>');
- De.push(DV[DZ]);
- De.push('</span></p><div class="pr-ratings-histogram-bar">');
- if (Da[DZ] != 0) {
- De.push('<div class="pr-ratings-histogram-barValue" style="width:');
- De.push(Da[DZ] / DW * (100));
- De.push('%"> </div>');
- } else {
- De.push(" ");
- }
- De.push('</div><p class="pr-histogram-count">');
- if (Da[DZ] != 0) {
- De.push("<span>(");
- De.push(Da[DZ]);
- De.push(")</span>");
- } else {
- De.push("<span>(0)</span>");
- }
- De.push("</p></li>");
- }
- De.push("</ul></div>");
- return De.join("");
- }
- function AD(DX, DY, Da, Db, DZ, Dd) {
- var De = [];
- var DV = At(DX, DZ, Dd);
- var Dc = window.location.protocol;
- var i = "All";
- var DW = AM(Db);
- De.push('<div id="pr-fb-follow-wrapper-');
- De.push(DZ);
- De.push("-");
- De.push(DY);
- De.push('" class="pr-fb-follow-contentwrapper pr-fb-follow-category"><div class="pr-fb-follow-body"><p class="pr-fb-follow-modal-header">');
- De.push("Follow this Product");
- De.push('</p><div class="pr-fb-follow-content pr-fb-follow-body-left"><div class="pr-fb-follow-content-wrapper"><div class="pr-fb-follow-info">');
- if (DW && Dc == "http:") {
- De.push('<img src="');
- De.push(DW);
- De.push('" /><br />');
- }
- De.push('<p class="pr-emphasis">');
- De.push(Da);
- De.push('</p></div></div></div><div class="pr-fb-follow-info pr-fb-follow-body-right"><div id="pr-fb-follow-info-wrapper-');
- De.push(DZ);
- De.push("-");
- De.push(DY);
- De.push('" class="pr-fb-follow-info-wrapper"><p class="pr-reset">');
- if (i == "Facebook" || i == "All") {
- De.push("<b>Click the Like button</b> to follow on Facebook OR enter your email. Get the latest reviews for this product on your Facebook News Feed or by email. You can unsubscribe anytime.");
- }
- if (i == "Email") {
- De.push("Enter your email to get the latest reviews for this product. You can unsubscribe anytime.");
- }
- De.push('</p></div></div><div class="pr-clear"></div></div><div class="pr-fb-follow-footer">');
- if (i == "Facebook" || i == "All") {
- De.push('<div class="pr-fb-follow-cta-like pr-fb-follow-body-left"><div class="pr-fb-follow-cta-like-wrapper"><p class="pr-fb-follow-on-facebook pr-fb-link-med">');
- De.push("Follow on <span>Facebook</span>");
- De.push('</p><div class="pr-fb-likebtn-wrapper" id="pr-fb-likebtn-wrapper-');
- De.push(DZ);
- De.push("-");
- De.push(DY);
- De.push('"><iframe class="pr-fb-likebtn" src="');
- De.push(Dc);
- De.push("//www.facebook.com/plugins/like.php?href=");
- De.push(DV);
- De.push('&layout=button_count&show_faces=false" scrolling="no" frameborder="0" allowTransparency="true"></iframe></div></div></div>');
- }
- if (i == "Email" || i == "All") {
- De.push('<div class="pr-fb-follow-cta-email pr-fb-follow-body-right"><div class="pr-fb-follow-cta-email-wrapper"><span class="pr-error-msg pr-hidden" id="pr-fb-follow-errorMsg-');
- De.push(DZ);
- De.push("-");
- De.push(DY);
- De.push('">');
- De.push("Please enter a valid email address.");
- De.push('</span><input type="text" id="pr-fb-follow-email-');
- De.push(DZ);
- De.push("-");
- De.push(DY);
- De.push('" class="pr-fb-follow-email-input" /><a href="#" onclick="POWERREVIEWS.common.validateAndProcessEmail(this, POWERREVIEWS.common.getOptions(\'');
- De.push(Ah(Dd));
- De.push('\'));return false" class="pr-fb-follow-submit-btn pr-fb-follow-submit-link" prData=\'{"type":"productEmailFollower","keyValue":"');
- De.push(DY);
- De.push('","merchantGroupId":"');
- De.push(11984);
- De.push('","pageId":"');
- De.push(DY);
- De.push('","locale":"');
- De.push(DZ);
- De.push('","siteId":"');
- De.push(BI(M("pr_site_id", Dd) || "-"));
- De.push('","target":"pr-fb-follow-email-');
- De.push(DZ);
- De.push("-");
- De.push(DY);
- De.push("\"}' >");
- De.push("SUBMIT");
- De.push("</a></div></div>");
- }
- De.push('<div class="pr-clear"></div></div></div>');
- return De.join("");
- }
- function By(DX, Da, Dd, DZ) {
- var De = [];
- var Dc = window.location.protocol;
- var DV = -1;
- var i = "All";
- De.push('<div id="pr-fb-follow-wrapper-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('" class="pr-fb-follow-contentwrapper pr-fb-follow-category"><div class="pr-fb-follow-body"><p class="pr-fb-follow-modal-header">');
- De.push("Follow This Category");
- De.push('</p><div class="pr-fb-follow-content pr-fb-follow-body-left"><div class="pr-fb-follow-content-wrapper">');
- if (DX.length > 0) {
- De.push('<ul class="pr-fb-follow-product-category">');
- var DW = 0;
- for (var DY = 0; DY < DX.length; DY++) {
- if (DX[DY].label.length > 0) {
- De.push('<li class="category-');
- De.push(DW);
- De.push('"><input type="radio" name="category" value="');
- De.push(DX[DY].url);
- De.push('" onclick=\'POWERREVIEWS.display.toggleFbLikeButton("pr-fb-like-');
- De.push(DY);
- De.push('",{"target":"pr-fb-follow-email-submit-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('","keyValue":"');
- De.push(AO(DX[DY].code));
- De.push('","locale":"');
- De.push(Da);
- De.push('","pageId":"');
- De.push(DZ);
- De.push("\"})' ");
- De.push((DW == 0 ? "checked" : ""));
- De.push("/><p>");
- De.push(DX[DY].label);
- De.push('</p><div class="pr-clear"></div></li>');
- if (DV == -1) {
- DV = DY;
- }
- DW++;
- }
- }
- if (DV == -1) {
- DV = DX.length - 1;
- }
- De.push("</ul>");
- }
- De.push('</div></div><div class="pr-fb-follow-info pr-fb-follow-body-right"><div id="pr-fb-follow-info-wrapper-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('" class="pr-fb-follow-info-wrapper"><p class="pr-reset">');
- if (i == "Facebook" || i == "All") {
- De.push("<b>Choose a product category and click the Like</b> button OR enter your email. Get reviews for new and popular products on your Facebook News Feed or by email. You can unsubscribe anytime.");
- }
- if (i == "Email") {
- De.push("Enter your email to get reviews for new and popular products. You can unsubscribe anytime.");
- }
- De.push('</p></div></div><div class="pr-clear"></div></div><div class="pr-fb-follow-footer">');
- if (i == "Facebook" || i == "All") {
- De.push('<div class="pr-fb-follow-cta-like pr-fb-follow-body-left"><div class="pr-fb-follow-cta-like-wrapper"><p class="pr-fb-follow-on-facebook pr-fb-link-med">');
- De.push("Follow on <span>Facebook</span>");
- De.push('</p><div class="pr-fb-likebtn-wrapper" id="pr-fb-likebtn-wrapper-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('">');
- if (DX.length > 0) {
- var Db = "pr-hidden";
- for (var DY = 0; DY < DX.length; DY++) {
- Db = "pr-hidden";
- if (DY == DV) {
- Db = "";
- }
- De.push('<iframe id="pr-fb-like-');
- De.push(DY);
- De.push('" class="pr-fb-likebtn ');
- De.push(Db);
- De.push('" src="');
- De.push(Dc);
- De.push("//www.facebook.com/plugins/like.php?href=");
- De.push(DX[DY].url);
- De.push('&layout=button_count&show_faces=false" scrolling="no" frameborder="0" allowTransparency="true"></iframe>');
- }
- }
- De.push("</div></div></div>");
- }
- if (i == "Email" || i == "All") {
- De.push('<div class="pr-fb-follow-cta-email pr-fb-follow-body-right"><div class="pr-fb-follow-cta-email-wrapper"><span class="pr-error-msg pr-hidden" id="pr-fb-follow-errorMsg-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('">');
- De.push("Please enter a valid email address.");
- De.push('</span><input type="text" id="pr-fb-follow-email-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('" class="pr-fb-follow-email-input" /><a id="pr-fb-follow-email-submit-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push('" href="#" onclick="POWERREVIEWS.common.validateAndProcessEmail(this, POWERREVIEWS.common.getOptions(\'');
- De.push(Ah(Dd));
- De.push('\'));return false" class="pr-fb-follow-submit-btn pr-fb-follow-submit-link" prData=\'{"type":"productCategoryEmailFollower","keyValue":"');
- De.push(AO(DX[DV].code));
- De.push('","merchantGroupId":"');
- De.push(11984);
- De.push('","pageId":"');
- De.push(DZ);
- De.push('","locale":"');
- De.push(Da);
- De.push('","siteId":"');
- De.push(BI(M("pr_site_id", Dd) || "-"));
- De.push('","target":"pr-fb-follow-email-');
- De.push(Da);
- De.push("-");
- De.push(DZ);
- De.push("\"}' >");
- De.push("SUBMIT");
- De.push("</a></div></div>");
- }
- De.push('<div class="pr-clear"></div></div><div class="pr-clear"></div></div>');
- return De.join("");
- }
- function CR(DV) {
- var i = [];
- i.push('<div class="pr-modal-shadow"></div><div id="pr-modal-container-');
- i.push(DV);
- i.push('" class="pr-modal-container"></div><a class="pr-close" href="#" onclick="POWERREVIEWS.display.hideModal(\'');
- i.push(DV);
- i.push("'); return false;\"><span>close</span></a>");
- return i.join("");
- }
- var Ck = 0;
- var Au = false;
- function Cw(DW, DY) {
- if (Bc(DW, DY)) {
- BW(DW, DY);
- var DX = C8(M("pr_page_id", DY));
- var DV = Z("pr_locale", DY);
- var Da = "pr-snippet-" + DX;
- var i = false;
- Ck++;
- if (document.getElementById(Da)) {
- Bv(DX, DV, Da, i, DY);
- } else {
- var DZ = "pr-snippet-" + DX + "-" + Ck;
- DW.write('<div id="' + DZ + '" class="pr-snippet"></div>');
- Bv(DX, DV, DZ, i, DY);
- }
- if (!Au) {
- setTimeout(function() {
- DE(DY);
- }, 3000);
- Au = true;
- }
- }
- }
- F.display.snippet = Cw;
- window.snippet = Cw;
- gFlagSnippetInitFinished = false;
- function BW(i, DV) {
- if (gFlagSnippetInitFinished) {
- return;
- }
- gFlagSnippetInitFinished = true;
- }
- function DE(i) {
- r({
- "type": "snippet",
- "count": Ck
- }, i);
- }
- function Cg(i, DV) {}
- function Bs(DV) {
- var i = "http://assets.pinterest.com/js/pinit.js";
- function DW() {
- var DX = document.createElement("script");
- DX.setAttribute("type", "text/javascript");
- DX.setAttribute("src", i);
- document.getElementsByTagName("body")[0].appendChild(DX);
- }
- if (document.getElementById(DV)) {
- DW();
- } else {
- setTimeout(function() {
- Bs(DV);
- }, 500);
- }
- }
- function CA(i) {
- return i + "-google-plus-one";
- }
- function Br(i) {
- return i + "-pinterest-pin-it";
- }
- function Bv(DW, DV, DY, i, DX) {
- CJ(DW, DV, function(Da) {
- var Dh = M("pr_snippet_min_reviews", DX);
- var Dd = 0;
- var De = 0;
- var Dj = "";
- var Dg = "";
- var Di = DY;
- var Dc = null;
- var DZ = null;
- var Db = function() {
- if (Dh <= Dd) {
- BG(DY, H(DW, Dd, De, Dc, DZ, Dj, Dg, i, Di, DV, DX), function() {
- Cg(CA(Di, DX));
- B8(DW, DV, false, DX);
- });
- }
- };
- if (Da) {
- Dj = Da.image_url || Da.image_uri;
- Dg = Da.name;
- if (Da.reviews) {
- Dd = Da.reviews.review_count;
- De = Da.reviews.avg;
- }
- }
- var Df = F.common.get("pr_snippet_style") || "LEGACY";
- if (Df !== "LEGACY" && Dd > 0) {
- Cv(DW, DV, function(Dk) {
- Dc = Dk.b || null;
- DZ = Da.reviews.review_ratings;
- Db();
- }, DX);
- } else {
- Db();
- }
- }, DX);
- }
- function H(Di, i, Dh, Dt, Dd, Ds, Db, Dq, DX, Dl, DY) {
- var Dn = F.common.get("pr_snippet_style") || "LEGACY";
- if (Dn !== "LEGACY") {
- var Di = M("pr_page_id", DY);
- var DW = C8(Di);
- var Dl = Z("pr_locale", DY);
- var Do = "engine-" + DW + "-" + Dl;
- var DV = function() {
- if (F.display.renderSnippet) {
- F.display.renderSnippet(DX, {
- count: i,
- rating: Dh,
- bottomLine: Dt,
- reviewRatings: Dd,
- key: Do
- });
- }
- };
- if (!POWERREVIEWS.config.is_ui_library_initialized) {
- F.common.getCallbacks()[DX + "-UI-LIBRARY-ONLOAD"] = DV;
- } else {
- DV();
- }
- return;
- } else {
- var Dg = [];
- var DZ = N(M("pr_page_id", DY), DY);
- var Dm = M("pr_read_review", DY);
- var Dj = U(Dh);
- var Dw = Math.round(Dh);
- var Da = "";
- var Dv = "";
- var Dr = M("pr_snippet_star_click", DY);
- if (Dr) {
- Da = " cursor:pointer;";
- Dv = ' onclick="' + Dr + '"';
- }
- var Du = ["Got it? Rate it.", "Not good", "Needs that special something", "Average, ordinary", "That's good stuff", "Perfect. It doesn't get any better"];
- var Dk = M("pr_facebook_like_button_url", DY);
- if (Dk == null) {
- Dk = document.URL;
- }
- Dk = BI(Dk);
- if (Dk == "") {
- Dq = false;
- }
- var Df = window.location.protocol;
- var Dc = false && !M("pr_suppress_google_plus_one", DY);
- var De = false && Ds && Db;
- var Dp = AM(Ds);
- Dg.push('<div class="pr-snippet-wrapper"><div class="pr-snippet-stars"><div title="');
- Dg.push(Du[Dw]);
- Dg.push('" style="background-position: 0px ');
- Dg.push(Dj * -36);
- Dg.push("px;");
- Dg.push(Da);
- Dg.push('" class="pr-stars pr-stars-small ');
- Dg.push(BP[Dj].small);
- Dg.push('"');
- Dg.push(Dv);
- Dg.push('> </div><span class="pr-snippet-rating-decimal pr-rounded">');
- Dg.push((Dh * 10) % 10 == 0 ? Dh + ".0" : Dh);
- Dg.push("</span></div>");
- if (i == 0) {
- Dg.push('<p class="pr-snippet-review-count">');
- Dg.push("(No reviews)");
- Dg.push("</p>");
- } else {
- if (i == 1) {
- Dg.push('<p class="pr-snippet-review-count">');
- Dg.push("(1 review)");
- Dg.push("</p>");
- } else {
- Dg.push('<p class="pr-snippet-review-count">');
- Dg.push("({0} reviews)".replace("{0}", i));
- Dg.push("</p>");
- }
- }
- Dg.push('<div class="pr-snippet-read-write">');
- if (i > 0) {
- if (Dm) {
- if (i == 1) {
- Dg.push('<div class="pr-snippet-read-reviews"><a href="');
- Dg.push(Dm);
- Dg.push('" data-pr-event="snippet-read-reviews" class="pr-snippet-link" id="pr-snippet-read-link-');
- Dg.push(Di);
- Dg.push('">');
- Dg.push("Read <span>1</span> Review");
- Dg.push("</a></div>");
- } else {
- Dg.push('<div class="pr-snippet-read-reviews"><a href="');
- Dg.push(Dm);
- Dg.push('" data-pr-event="snippet-read-reviews" class="pr-snippet-link" id="pr-snippet-read-link-');
- Dg.push(Di);
- Dg.push('">');
- Dg.push("Read <span>{0}</span> Reviews".replace("{0}", i));
- Dg.push("</a></div>");
- }
- }
- if (DZ) {
- Dg.push('<div class="pr-snippet-write-review"><a href="');
- Dg.push(DZ);
- Dg.push('" data-pr-event="snippet-write-review" class="pr-snippet-link">');
- Dg.push("Write a Review");
- Dg.push("</a></div>");
- }
- } else {
- if (DZ) {
- Dg.push('<div class="pr-snippet-write-first-review"><p>');
- Dg.push("Be the first to");
- Dg.push('</p> <a href="');
- Dg.push(DZ);
- Dg.push('" data-pr-event="snippet-write-review" class="pr-snippet-link">');
- Dg.push("Write a Review");
- Dg.push("</a></div>");
- }
- }
- Dg.push('<div class="pr-clear"></div></div><div class="pr-clear"></div><div class="pr-snippet-social-bar">');
- if (Dc) {
- Dg.push('<div class="pr-google-plus-one"><div id="');
- Dg.push(CA(DX));
- Dg.push('"></div></div>');
- }
- if (Dq) {
- Dg.push('<div class="pr-facebook-like-snippet"><iframe src="');
- Dg.push(Df);
- Dg.push("//www.facebook.com/plugins/like.php?href=");
- Dg.push(Dk);
- Dg.push('&layout=button_count&show_faces=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>');
- }
- if (De) {
- Dg.push('<div class="pr-pinterest-pin-it" data-pr-event="snippet-pinterest-pinit-button" id="');
- Dg.push(Br(DX));
- Dg.push('"><a href="http://pinterest.com/pin/create/button/?url=');
- Dg.push(BI(document.URL));
- Dg.push("&media=");
- Dg.push(Dp);
- Dg.push("&description=");
- Dg.push(BI(Db));
- Dg.push('" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></div>');
- }
- Dg.push('<div class="pr-clear"></div></div></div>');
- return Dg.join("");
- }
- }
- function B8(DV, i, DX, DW) {
- B2.userTrackingDomain = M("pr_tracking_domain", DW);
- var DY = document.getElementById("pr-snippet-" + DV + "-" + Ck);
- if (DY) {
- C4.trackClickEvents(DY, "rd", {
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- engineVersion: "2",
- inlineSEO: DX
- });
- C4.trackVisibility(DY, "rd", {
- eventType: "snippet-visible",
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- engineVersion: "2",
- inlineSEO: DX
- });
- }
- }
- var Cy = 0;
- function BT(DV, DX) {
- if (Bc(DV, DX)) {
- var DW = C8(M("pr_page_id", DX));
- var i = Z("pr_locale", DX);
- var DZ = "pr-summary-snippet-" + DW;
- if (document.getElementById(DZ)) {
- Cc(DW, i, DZ, DX);
- } else {
- var DY = "pr-summary-snippet-" + DW + "-" + (Cy++);
- DV.write('<div id="' + DY + '" class="pr-summary-snippet"></div>');
- Cc(DW, i, DY, DX);
- }
- }
- }
- F.display.summarySnippet = BT;
- function Cc(DV, i, DX, DW) {
- CJ(DV, i, function(Db) {
- var DY = M("pr_snippet_min_reviews", DW);
- var Da = 0;
- if (Db && Db.reviews) {
- Da = Db.reviews.review_count;
- if (DY <= Da) {
- var DZ = b(DW) + "/content/" + p(DV) + "/" + DV + "-" + i + "-rollup.js";
- if (M("pr_simplified_zip")) {
- DZ = b(DW) + "/content/" + i + "/" + p(DV) + "/" + i + "-rollup.js";
- }
- Ce(DZ, null, function(Dc) {
- if (Dc.rollup) {
- BG(DX, A8(Dc.rollup, DV, i, DW));
- }
- }, DW);
- }
- }
- }, DW);
- }
- function A8(Db, DW, DV, DZ) {
- var i = [];
- var DY = Bw(Db);
- var DX = DY.histogramDisplayGroupList;
- var Da = DY.subratingGroupList;
- i.push('<div class="pr-summary-snippet-body">');
- if (DX.length) {
- i.push(AT(DX, DV, DZ));
- }
- if (Da.length) {
- i.push(Co(Da, DV, DZ));
- }
- i.push('</div><div class="pr-clear"></div>');
- return i.join("");
- }
- function CG(DW, DY) {
- if (Bc(DW, DY)) {
- var DX = C8(M("pr_page_id", DY));
- var DV = Z("pr_locale", DY);
- var DZ = Ay(DX);
- var i = AW(DX, DV);
- Cd(i, DY);
- if (!document.getElementById(DZ)) {
- DW.write('<div id="' + DZ + '"></div>');
- DJ(DZ, DX, DV, 1, DY, function() {
- Bn("p", "prPaTotalsLabel");
- Aa(DX, DY);
- Y(DX, DY);
- DF(DX, DV, false, DY);
- BV(DX, DV, false, DY);
- });
- } else {
- Bn("p", "prPaTotalsLabel");
- Aa(DX, DY);
- Y(DX, DY);
- DF(DX, DV, true, DY);
- BV(DX, DV, true, DY);
- }
- }
- }
- F.display.productAnswers = CG;
- window.productAnswers = CG;
- function C(DY, DW) {
- var DV = C8(M("pr_page_id", DW));
- var i = Z("pr_locale", DW);
- var DX = Ay(DV);
- setTimeout(function() {
- DJ(DX, DV, i, DY, DW, function() {
- Bn("p", "prPaTotalsLabel");
- Aa(DV, DW);
- Y(DV, DW);
- DF(DV, i, true, DW);
- });
- }, 0);
- }
- F.display.productAnswersPage = C;
- function DJ(DV, DW, i, DY, DX, DZ) {
- CJ(DW, i, function(Dh) {
- var Da = 0
- , Db = 0;
- var Dg = ""
- , De = {};
- if (Dh) {
- Dg = Dh.name;
- De = Dh.vNames;
- if (Dh.questions) {
- Da = Dh.questions.question_count;
- Db = Dh.questions.answer_count;
- }
- }
- var Dd = M("pr_questions_per_page", DX);
- var Df = function(Di) {
- BG(DV, BZ(DW, i, Da, Db, DY, "", "", Dd, Di, Dg, De, AW(DW, i), DX), function() {
- DZ(Di);
- });
- };
- if (Da > 0) {
- var Dc = b(DX) + "/content/" + p(DW) + "/" + DW + "-" + i + "-" + DY + "-questions.js";
- if (M("pr_simplified_zip")) {
- Dc = b(DX) + "/content/" + i + "/" + p(DW) + "/" + i + "-" + DY + "-questions.js";
- }
- Ce(Dc, null, function(Di) {
- Df(Di);
- }, DX);
- } else {
- Df([]);
- }
- }, DX);
- }
- function DB(DV, DX) {
- var DW = M("pr_page_id", DX);
- var i = M("pr_locale", DX);
- var DY = function(Da) {
- if (!document.getElementById("pr-wyb-display")) {
- DV.write('<div id="pr-wyb-display"></div>');
- }
- if (!document.getElementById("pwr-ui")) {
- var DZ = F.cloneObject(DX);
- DZ.pr_war_server_path = "3.0";
- (function(De, Df, Db, Dd, Dc) {
- De.PowerReviews = {};
- Dd = Df.createElement(Db);
- Dc = Df.getElementsByTagName("head")[0];
- Dd.src = F.getWARServerPath(DZ) + "/ui.js";
- Dd.onload = function() {
- window.POWERREVIEWS.display.renderWYBDisplay(Da);
- }
- ;
- Dd.id = "pwr-ui";
- Dc.appendChild(Dd, Dc);
- }(window, document, "script"));
- } else {
- POWERREVIEWS.display.renderWYBDisplay(Da);
- }
- };
- CJ(DW, i, function(De) {
- var DZ = 0
- , Da = 0;
- var Dd = ""
- , Dc = {};
- if (De) {
- Dd = De.name;
- Dc = De.vNames;
- if (De.questions) {
- DZ = De.questions.question_count;
- Da = De.questions.answer_count;
- }
- }
- var Db = M("pr_questions_per_page", DX);
- var Dg = 0;
- function Df(Di, Dj) {
- var Dh = b(DX) + "/content/" + p(DW) + "/" + DW + "-" + i + "-" + Di + "-questions.js";
- if (M("pr_simplified_zip")) {
- Dh = b(DX) + "/content/" + i + "/" + p(DW) + "/" + i + "-" + Di + "-questions.js";
- }
- Ce(Dh, null, function(Dm) {
- Dg += Dm.length;
- var Dl = null;
- for (questionIdx = 0; questionIdx < Dm.length; questionIdx++) {
- var Dk = Dm[questionIdx];
- if (Dk.q.eid === "whydidyoubuy") {
- Dl = Dk.q;
- break;
- }
- }
- if (!!Dl) {
- Dj(Dl);
- } else {
- if (Dg < DZ) {
- Df((Di + 1), Dj);
- } else {
- Dj({
- as: []
- });
- }
- }
- }, DX);
- }
- if (DZ > 0) {
- Df(1, DY);
- } else {
- DY({
- as: []
- });
- }
- }, DX);
- }
- F.display.whydYouBuy = DB;
- function AW(DV, i) {
- var DW = C8(DV);
- return "engine-answers-" + DW + "-" + i;
- }
- function Ay(i) {
- var DV = C8(i);
- return "prPaContainer" + DV;
- }
- function Aa(DV, DW) {
- var DY = C0(document, "a", "prPaAskQuestionLnk");
- if (DY.length > 0) {
- var Da = AX(DV, DW);
- for (var DX = 0; DX < DY.length; DX++) {
- var DZ = DY[DX];
- if (Da) {
- DZ.href = Da;
- DZ.style.display = "";
- }
- }
- } else {
- setTimeout(function() {
- Aa(DV, DW);
- }, 100);
- }
- }
- function Y(DX, DY) {
- var DW = C0(document, "p", "prPaAnswerLnk");
- if (DW.length > 0) {
- for (var DZ = 0; DZ < DW.length; DZ++) {
- var Db = DW[DZ];
- var Da = Db.childNodes[Db.childNodes.length - 1];
- var DV = A3(DX, Da.id.substring(13), DY);
- if (DV) {
- Da.href = DV;
- }
- Db.style.display = "";
- }
- } else {
- setTimeout(function() {
- Y(DX, DY);
- }, 100);
- }
- }
- function DF(DV, i, DX, DW) {
- B2.userTrackingDomain = M("pr_tracking_domain", DW);
- var DY = document.getElementById(Ay(DV));
- if (DY) {
- C4.trackClickEvents(DY, "ab", {
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- inlineSEO: DX
- });
- C4.trackVisibility(DY, "ab", {
- eventType: "product-answers-visible",
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- inlineSEO: DX
- });
- }
- }
- function BV(DV, i, DX, DW) {
- CJ(DV, i, function(Da) {
- var DY, DZ;
- if (Da && Da.questions) {
- DY = Da.questions.question_count;
- DZ = Da.questions.answer_count;
- }
- var Db = document.getElementById(Ay(DV));
- if (Db) {
- C4.trackPageview("ab", {
- locale: M("pr_locale", DW),
- pageId: M("pr_page_id", DW),
- merchantId: M("pr_merchant_id", DW),
- siteId: M("pr_site_id", DW),
- inlineSEO: DX,
- questionCount: DY,
- answerCount: DZ,
- visible: C4.isElementVisible(Db)
- });
- }
- }, DW);
- }
- function AX(i, DV) {
- return AS(M("pr_ask_question", DV), "~~~PAGE_ID~~~", i);
- }
- function A3(DV, i, DW) {
- return AS(AS(AS(M("pr_answer_question", DW), "~~~PAGE_ID~~~", DV), "~~~QUESTION_ID~~~", i), "@@@QUESTION_ID@@@", i);
- }
- function Cm(i) {
- return i.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?([^<\s]+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/g, '<a rel="nofollow" target="_blank" href="$1">$1</a>');
- }
- function BZ(Dk, Do, De, DW, Ds, Da, Dh, Dt, Dw, Dg, Dc, Dr, Db) {
- var Di = [];
- var Dd = (Ds - 1) * Dt;
- var DZ = Dd + Dt - 1;
- if (DZ > De - 1) {
- DZ = De - 1;
- }
- Di.push('<div class="prPaContainer prPaNonempty"><a name="QAHeader"></a><div class="prPaHeader"><p class="prPaQuestionPromptIntro">');
- Di.push("Do you have questions about this product?");
- if (De > 0 && a && a["answer"]) {
- Di.push('<span class="prPaQuestionPromptIntroSLPoints">');
- Di.push("(earn points for answers!)");
- Di.push("</span>");
- }
- Di.push("</p><span>");
- Di.push('</span><div class="prPaQuestionSubhead"><a class="prPaAskQuestionLnk" style="display:none;" href="#" data-pr-event="header-ask-question-button"><span>');
- Di.push("Ask a question");
- Di.push('</span></a><p class="prPaQuestionPrompt">');
- Di.push("Get answers from in-house experts.");
- Di.push("</p></div>");
- if (De > 0) {
- Di.push('<div class="prPaCounts">');
- Di.push(De == 1 ? "1 Question" : De + " Questions");
- Di.push(" | ");
- Di.push(DW == 1 ? "1 Answer" : DW + " Answers");
- Di.push("</div>");
- }
- Di.push("</div>");
- if (De > 0) {
- Di.push('<div class="prPaPagination"><span class="prPaPageCount">');
- if (Dd == DZ) {
- Di.push("Displaying question");
- Di.push(" <strong>");
- Di.push((Dd + 1));
- Di.push("</strong>");
- } else {
- Di.push("Displaying questions");
- Di.push(" <strong>");
- Di.push((Dd + 1));
- Di.push("-");
- Di.push((DZ + 1));
- Di.push("</strong>");
- }
- Di.push("</span>");
- if (De > Dt) {
- Di.push('<span class="prPaPageNav">');
- if (Dd > 0) {
- Di.push('<a data-pr-event="header-page-prev-link"onclick="POWERREVIEWS.display.productAnswersPage(');
- Di.push(Ds - 1);
- Di.push(",POWERREVIEWS.common.getOptions('");
- Di.push(Dr);
- Di.push('\'));return false;"href="');
- Di.push(Da.replace("~~~QUESTION_PAGE~~~", Ds - 1));
- Di.push('">« ');
- Di.push("Previous");
- Di.push("</a>");
- } else {
- Di.push("Previous");
- }
- Di.push(" | ");
- if (DZ < De - 1) {
- Di.push('<a data-pr-event="header-page-next-link"onclick="POWERREVIEWS.display.productAnswersPage(');
- Di.push(Ds + 1);
- Di.push(",POWERREVIEWS.common.getOptions('");
- Di.push(Dr);
- Di.push('\'));return false;"href="');
- Di.push(Dh.replace("~~~QUESTION_PAGE~~~", Ds + 1));
- Di.push('">');
- Di.push("Next");
- Di.push(" »</a>");
- } else {
- Di.push("Next");
- }
- Di.push("</span>");
- }
- Di.push("</div>");
- }
- Di.push('<ul class="prPaQaContainer">');
- for (var Dp = 0; Dp < Dw.length; Dp++) {
- var Dj = Dw[Dp];
- Dj = Dj.q || Dj;
- var DY = Dj.as ? Dj.as.length : 0;
- var Df = (AL(Dj.rd, Do, Db) || Dj.dd);
- var Dv = "Asked on <strong>" + Df + "</strong> by <strong>" + (Dj.n || "Anonymous") + "</strong>" + (Dj.l ? " from<strong> " + Dj.l + "</strong>" : "");
- var DV = Dj.pv && Dc && Dc[Dj.pv];
- Di.push('<li><div class="prPaQaDialog">');
- if (DV) {
- Di.push('<div class="prPaQaVariantName">');
- Di.push(DV);
- Di.push("</div>");
- }
- Di.push('<div class="prPaQ"><p class="paPrQaPrefix">');
- Di.push("Q:");
- Di.push(" </p> ");
- Di.push(AE(Dj.t));
- Di.push('</div><div class="prPaByLine prPaAddBorder">');
- Di.push(Dv);
- Di.push('</div></div><p class="prPaAnswerLnk" style="display:none;" data-pr-event="product-answers-answer-question-');
- Di.push(Dj.id);
- Di.push('">');
- Di.push("Know the answer?");
- Di.push(' <a id="prPaQuestion-');
- Di.push(Dj.id);
- Di.push('" href="#">');
- Di.push("Answer this question");
- Di.push('</a></p><p class="prPaTotalsLabel" data-pr-event="product-answers-label-');
- Di.push(Dj.id);
- Di.push('">');
- Di.push(DY == 1 ? "1 answer" : DY + " answers");
- if (DY == 0 && a && a["first_answer"]) {
- Di.push('<span class="prPaSLFirstAnswer">');
- Di.push("(earn bonus points)");
- Di.push("</span>");
- }
- Di.push('</p><div class="prPaAnswerCont">');
- if (DY > 0) {
- Di.push('<ul class="prPaAnswerList">');
- for (var Dn = 0; Dn < Dj.as.length; Dn++) {
- var Dm = Dj.as[Dn];
- var Dl = (AL(Dm.rd, Do, Db) || Dm.dd);
- var Du = "Answered on<strong> " + Dl + "</strong> by";
- if (Dm.n) {
- if (false && Dm.pi) {
- Du += '<a data-pr-event="product-answers-question-author-link-' + Dj.id + '" class="prReviewAuthorProfileLnk" href="#" onclick="POWERREVIEWS.display.showIntegratedProfile(' + Dm.pi + ", '" + Do + "', POWERREVIEWS.common.getOptions('" + Dr + "')); return false;\"/> ";
- Du += Dm.n;
- Du += "</a>";
- } else {
- Du += "<strong> " + Dm.n + "</strong>";
- }
- } else {
- Du += "<strong> Anonymous</strong>";
- }
- if (Dm.l) {
- Du += " from <strong>" + Dm.l + "</strong>";
- }
- if (Dn == Dj.as.length - 1) {
- var DX = '<div class="prPaAnswerDialog prPaLastAnswer">';
- } else {
- var DX = '<div class="prPaAnswerDialog prPaAddBorder">';
- }
- var Dq = DA(Dm.cb);
- Di.push("<li>");
- Di.push(DX);
- if (Dm.vp) {
- Di.push(' <div class="prPaBadgeCase"><p class="prPaVerifiedPurchaser">');
- Di.push("VERIFIED BUYER");
- Di.push("</p></div> ");
- }
- if (Dq) {
- Di.push('<div class="prPaBadgeCase">');
- Di.push(Ae(Dq, Do, Db));
- Di.push("</div>");
- } else {
- if (Dm.ea) {
- Di.push(' <div class="prPaBadgeCase"><p class="prPaVerifiedMerchant">');
- Di.push("CUSTOMER CARE");
- Di.push("</p></div> ");
- }
- }
- Di.push(' <p class="prPaA"><p class="paPrQaPrefix">');
- Di.push("A:");
- Di.push("</p> ");
- Di.push(AE(Dm.ea ? Cm("" + Dm.t) : Dm.t));
- Di.push('</p><div class="prPaByLine">');
- Di.push(Du);
- Di.push("</div></div></li>");
- }
- Di.push("</ul>");
- }
- Di.push("</div></li>");
- }
- Di.push("</ul>");
- if (De > 0) {
- Di.push('<div class="prPaPagination"><span class="prPaPageCount">');
- if (Dd == DZ) {
- Di.push("Displaying question");
- Di.push(" <strong>");
- Di.push((Dd + 1));
- Di.push("</strong>");
- } else {
- Di.push("Displaying questions");
- Di.push(" <strong>");
- Di.push((Dd + 1));
- Di.push("-");
- Di.push((DZ + 1));
- Di.push("</strong>");
- }
- Di.push("</span>");
- if (De > Dt) {
- Di.push('<span class="prPaPageNav">');
- if (Dd > 0) {
- Di.push('<a data-pr-event="footer-page-prev-link"onclick="POWERREVIEWS.display.productAnswersPage(');
- Di.push(Ds - 1);
- Di.push(",POWERREVIEWS.common.getOptions('");
- Di.push(Dr);
- Di.push("'));location.hash = '");
- Di.push(Ay(Dk));
- Di.push('\';return false;"href="');
- Di.push(Da.replace("~~~QUESTION_PAGE~~~", Ds - 1));
- Di.push('">« ');
- Di.push("Previous");
- Di.push("</a>");
- } else {
- Di.push("Previous");
- }
- Di.push(" | ");
- if (DZ < De - 1) {
- Di.push('<a data-pr-event="footer-page-next-link"onclick="POWERREVIEWS.display.productAnswersPage(');
- Di.push(Ds + 1);
- Di.push(",POWERREVIEWS.common.getOptions('");
- Di.push(Dr);
- Di.push("'));location.hash = '");
- Di.push(Ay(Dk));
- Di.push('\';return false;"href="');
- Di.push(Dh.replace("~~~QUESTION_PAGE~~~", Ds + 1));
- Di.push('">');
- Di.push("Next");
- Di.push(" »</a>");
- } else {
- Di.push("Next");
- }
- Di.push("</span>");
- }
- Di.push("</div>");
- }
- Di.push('</div><div class="prPaFooter">');
- if (De > 0) {
- Di.push('<a class="prPaAskQuestionLnk" style="display:none;" href="#" data-pr-event="footer-ask-question-button"><span>');
- Di.push("Ask a question");
- Di.push('</span></a><p class="prPaQuestionPromptIntro">');
- Di.push("Do you have a question about this product?");
- Di.push(" </p>");
- }
- Di.push("</div>");
- return Di.join("");
- }
- F.display.processProductAnswersTemplate = BZ;
- function AK(DW, DV) {
- var DZ = new Date((DW || "").replace(/-/g, "/").replace(/[TZ]/g, " "));
- var DX = new Date((DV || "").replace(/-/g, "/").replace(/[TZ]/g, " "));
- var DY = ((DX.getTime() - DZ.getTime()) / 1000);
- var i = Math.floor(DY / 86400);
- if (isNaN(i) || i < 0) {
- return "";
- } else {
- if (i == 0) {
- if (DY == 1) {
- return "1 second";
- } else {
- if (DY < 60) {
- return "seconds";
- } else {
- if (DY < 120) {
- return "1 minute";
- } else {
- if (DY < 3600) {
- return Math.floor(DY / 60) + " minutes";
- } else {
- if (DY < 7200) {
- return "1 hour";
- } else {
- return Math.floor(DY / 3600) + " hours";
- }
- }
- }
- }
- }
- } else {
- if (i == 1) {
- return "1 day";
- } else {
- if (i < 7) {
- return i + " days";
- } else {
- return Math.ceil(i / 7) + " weeks";
- }
- }
- }
- }
- }
- function g(DW) {
- var i = "prPaToggleClosed";
- var DV = DW.nextSibling;
- while (DV.nodeType != 1) {
- DV = DV.nextSibling;
- }
- DV.style.display = ((DV.style.display == "none") ? "block" : "none");
- if (DW.className.match(i)) {
- DP(DW, "prPaToggleClosed");
- DN(DW, "prPaToggleOpen");
- } else {
- if (DW.className == "") {
- DP(DW, "prPaToggleClosed");
- DN(DW, "prPaToggleOpen");
- } else {
- DP(DW, "prPaToggleOpen");
- DN(DW, "prPaToggleClosed");
- }
- }
- }
- function Bn(DV, DX) {
- var DZ = "prPaClicker";
- var DW = C0(document, DV, DX);
- for (var DY = 0; DY < DW.length; DY++) {
- DW[DY].className += " " + DZ;
- DW[DY].onclick = function() {
- g(this);
- }
- ;
- g(DW[DY]);
- }
- }
- var c = 0;
- function T(DV, DX) {
- if (Bc(DV, DX)) {
- var DW = C8(M("pr_page_id", DX));
- var i = Z("pr_locale", DX);
- var DZ = "pr-pa-snippet-" + DW;
- if (document.getElementById(DZ)) {
- B3(DW, i, DZ, DX);
- } else {
- var DY = "pr-pa-snippet-" + DW + "-" + (++c);
- DV.write('<div id="' + DY + '" class="pr-pa-snippet"></div>');
- B3(DW, i, DY, DX);
- }
- }
- }
- F.display.productAnswersSnippet = T;
- window.productAnswersSnippet = T;
- function B3(DV, i, DX, DW) {
- CJ(DV, i, function(Da) {
- var DY = 0;
- var DZ = 0;
- if (Da && Da.questions) {
- DY = Da.questions.question_count;
- DZ = Da.questions.answer_count;
- }
- BG(DX, A5(DV, DY, DZ, i, DW), function() {
- Bm(DV, i, false, DW);
- });
- }, DW);
- }
- function A5(DY, DW, DX, DV, DZ) {
- var i = [];
- i.push('<div class="pr-pa-snippet-wrapper"><p class="pr-pa-snippet-title">');
- i.push("Q&A");
- i.push('</p><p class="pr-pa-snippet-text">');
- i.push("Ask Questions, share answers");
- i.push('</p><div class="pr-pa-snippet-qa"><div class="pr-pa-snippet-read-questions"><p class="pr-pa-snippet-questions"><a data-pr-event="answers-snippet-read-questions" class="pr-snippet-link" href="');
- i.push(M("pr_read_qa", DZ));
- i.push('">');
- i.push(DW == 1 ? "<span>1</span> Question" : "<span>{0}</span> Questions".replace("{0}", DW));
- i.push('</a></p><p class="pr-pa-snippet-answers"><a data-pr-event="answers-snippet-read-answers" class="pr-snippet-link" href="');
- i.push(M("pr_read_qa", DZ));
- i.push('">');
- i.push(DX == 1 ? "<span>1</span> Answer" : "<span>{0}</span> Answers".replace("{0}", DX));
- i.push('</a></p></div><div class="pr-pa-snippet-ask-question"><a data-pr-event="answers-snippet-ask-a-question" class="pr-snippet-link" href="');
- i.push(M("pr_ask_question", DZ));
- i.push('">');
- i.push("Ask a Question");
- i.push('</a></div><div class="pr-clear"></div></div></div>');
- return i.join("");
- }
- function Bm(DW, DV, DY, DX) {
- B2.userTrackingDomain = M("pr_tracking_domain", DX);
- var i = document.getElementById("pr-pa-snippet-" + DW + "-" + c);
- if (i) {
- C4.trackClickEvents(i, "ab", {
- locale: M("pr_locale", DX),
- pageId: M("pr_page_id", DX),
- merchantId: M("pr_merchant_id", DX),
- siteId: M("pr_site_id", DX),
- engineVersion: "2",
- inlineSEO: DY
- });
- C4.trackVisibility(i, "ab", {
- eventType: "answers-snippet-visible",
- locale: M("pr_locale", DX),
- pageId: M("pr_page_id", DX),
- merchantId: M("pr_merchant_id", DX),
- siteId: M("pr_site_id", DX),
- engineVersion: "2",
- inlineSEO: DY
- });
- }
- }
- function Bk(D5, Dk) {
- var D7 = window
- , Dc = D7.document
- , Di = Dc.location
- , Do = null
- , D6 = encodeURIComponent || escape
- , ED = decodeURIComponent || unescape
- , DY = Object.prototype.toString
- , Dg = 10
- , DW = "__pr." + parseInt(D5.merchantGroupId).toString(36)
- , DV = 60 * 60 * 24 * 365 * 2
- , D1 = "//t.powerreviews.com/t/v1.gif"
- , D0 = EA({
- event: "e",
- eventType: "et",
- userId: "uid",
- time: "t",
- locale: "l",
- merchantGroupId: "mgid",
- merchantId: "mid",
- pageId: "pid",
- siteId: "sid",
- pageUrl: "p",
- referrerUrl: "r",
- orderId: "oid",
- orderSubtotal: "os",
- orderNumberOfItems: "on",
- orderItems: "oi",
- merchantUserId: "muid",
- userEmail: "ue",
- userFirstName: "uf",
- userLastName: "ul",
- userFullName: "un",
- marketingOptIn: "mo"
- }, D5.parameterAbbreviations || {})
- , Dm = "array"
- , EH = "boolean";
- function EA() {
- var EK = {}, EM, EN;
- for (var EL = 0, EJ = arguments.length; EL < EJ; EL++) {
- for (EM in arguments[EL]) {
- EN = arguments[EL][EM];
- if (EN !== Dk) {
- EK[EM] = EN;
- }
- }
- }
- return EK;
- }
- function De(EJ) {
- return EJ.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1");
- }
- function DZ(EL) {
- var EJ = EL;
- var EK = document.createElement("div");
- if (EL && typeof EL === "string") {
- EL = EL.replace(/[<][s][c][r][i][p][t][^>]*>([\S\s]*?)<\/[s][c][r][i][p][t][>]/gmi, "");
- EL = EL.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi, "");
- EK.innerHTML = EL;
- EL = EK.textContent || EK.innerText;
- EK.textContent = "";
- }
- if (EL === "" || typeof EL === "undefined" || EL === null) {
- return EJ;
- }
- return EL;
- }
- function Db(EJ) {
- var EK = Dc.cookie.match("(?:^|;)\\s*" + De(EJ) + "=([^;]*)");
- return (EK) ? ED(EK[1]) : null;
- }
- function Dj(EL, EO, EM, EN) {
- var EK = new Date()
- , EJ = EK;
- EJ.setTime(EK.getTime() + EM * 1000);
- Dc.cookie = EL + "=" + D6(EO) + ";expires=" + EJ.toGMTString() + ";path=/" + (EN ? ";domain=" + EN : "");
- }
- function EF() {
- return D5.trackingPixelUrl || D1;
- }
- function Df(EJ) {
- if (typeof EJ !== "object") {
- return typeof EJ;
- }
- if (EJ === null) {
- return "null";
- }
- return DY.call(EJ).match(/\[object\s(\w+)\]/)[1].toLowerCase();
- }
- function Dd(EK, EJ) {
- return Df(EK) === EJ;
- }
- function EB(EJ) {
- return EJ !== Dk && EJ !== null && EJ !== "" && EJ !== Number.NaN;
- }
- var Dt = [";", ","];
- function Dr(EL, EM) {
- var EJ = [], EK;
- EM = EM || 0;
- if (Dd(EL, Dm) && EM < Dt.length) {
- for (EK = 0; EK < EL.length; EK++) {
- EJ.push(Dr(EL[EK], EM + 1));
- }
- return EJ.join(Dt[EM]);
- } else {
- if (Dd(EL, EH)) {
- return EL ? "y" : "n";
- } else {
- if (EB(EL)) {
- return D6(DZ(ED(EL)));
- } else {
- return "";
- }
- }
- }
- }
- function DX(EN) {
- var EL = [], EK, EM, EJ;
- for (EK in EN) {
- EM = EN[EK];
- if (EB(EM)) {
- EL.push(D6(D0[EK] || EK) + "=" + Dr(EM));
- }
- }
- return EL.join("&");
- }
- function Dv(EJ, EK) {
- var EL = EJ;
- new Image().src = EL + "?" + DX(EK);
- }
- function D3(EM) {
- var EJ = [];
- var EL = ["r", "a", "n", "d", "o", "m"].join("");
- for (var EK = 0; EK < EM; EK++) {
- EJ.push((Math[EL]() * 36 | 0).toString(36));
- }
- return EJ.join("");
- }
- function Dn() {
- return ((Date.now && typeof Date.now() === "number") ? Date.now() : +new Date).toString(36);
- }
- function EC() {
- return Di.href;
- }
- function D4() {
- return Dc.referrer;
- }
- function Dz() {
- var EJ = D5.userTrackingDomain;
- EJ = EJ && EJ.replace(/^\s+|\s+$/g, "");
- if (EJ) {
- if (EJ.charAt(0) !== ".") {
- EJ = "." + EJ;
- }
- return EJ;
- }
- return null;
- }
- function EI(EK, EL, EJ) {
- if (EK.addEventListener) {
- EK.addEventListener(EL, EJ, false);
- } else {
- if (EK.attachEvent) {
- EK.attachEvent("on" + EL, function() {
- EJ.call(EK);
- });
- }
- }
- }
- function Da(EK, EL, EJ) {
- if (EK.removeEventListener) {
- EK.removeEventListener(EL, EJ, false);
- } else {
- if (EK.detachEvent) {
- EK.detachEvent("on" + EL, EJ);
- }
- }
- }
- function Dh(EK) {
- var EL = EK || window.event
- , EJ = false;
- if (EL.target) {
- EJ = EL.target;
- } else {
- if (EL.srcElement) {
- EJ = EL.srcElement;
- } else {
- EJ = document;
- }
- }
- if (EJ.nodeType == 3) {
- EJ = EJ.parentNode;
- }
- return EJ;
- }
- function D9(EJ, EM, EL) {
- var EK = EJ;
- while (EK && EK !== EM.parentNode && EK.nodeType !== 9) {
- if (EK.nodeType === 1 && EL(EK)) {
- return EK;
- }
- EK = EK.parentNode;
- }
- return false;
- }
- function Du(EP) {
- var EP = EP || document
- , EK = EP.documentElement
- , EM = EP.body
- , EO = window.pageYOffset || Math.max(EK.scrollTop, EM.scrollTop)
- , EN = window.pageXOffset || Math.max(EK.scrollLeft, EM.scrollLeft)
- , EL = Math.max(EK.clientWidth, EM.clientWidth)
- , EJ = Math.max(EK.clientHeight, EM.clientHeight);
- return {
- top: EO,
- left: EN,
- bottom: EO + EJ,
- right: EN + EL,
- width: EL,
- height: EJ
- };
- }
- function Dy(EK, EJ) {
- var EM = EK.left
- , ES = EK.top
- , EQ = EJ.left
- , EO = EJ.top
- , EL = EM + EK.width
- , ER = ES + EK.height
- , EP = EQ + EJ.width
- , EN = EO + EJ.height;
- if (EM < EQ) {
- EM = EQ;
- }
- if (ES < EO) {
- ES = EO;
- }
- if (EL > EP) {
- EL = EP;
- }
- if (ER > EN) {
- ER = EN;
- }
- return {
- top: ES,
- left: EM,
- bottom: ER,
- right: EL,
- height: ER - ES,
- width: EL - EM
- };
- }
- function D2(EM) {
- if (EM.offsetWidth === 0 || EM.offsetHeight === 0) {
- return false;
- }
- var EJ = Du()
- , EL = EM.getBoundingClientRect()
- , EK = {
- top: EL.top + EJ.top,
- bottom: EL.bottom + EJ.top,
- left: EL.left + EJ.left,
- right: EL.right + EJ.left,
- width: EL.right - EL.left,
- height: EL.bottom - EL.top
- };
- var EN = Dy(EJ, EK);
- if ((EN.width * EN.height) / (EK.width * EK.height) < 0.5) {
- return false;
- }
- if (D9(document.elementFromPoint((EL.left + EL.right) / 2, (EL.top + EL.bottom) / 2), EM, function(EO) {
- return EO === EM;
- })) {
- return true;
- }
- return false;
- }
- var Dq = [];
- var EG = false;
- function i() {
- var EK = 0, EL;
- for (var EJ = 0; EJ < Dq.length; EJ++) {
- if (Dq[EJ]) {
- EK++;
- EL = Dq[EJ]();
- if (EL) {
- Dq[EJ] = false;
- }
- }
- }
- if (EK === 0) {
- clearInterval(EG);
- EG = false;
- Dq = [];
- Da(window, "scroll", i);
- Da(window, "resize", i);
- }
- }
- function D8() {
- var EJ = Db(DW);
- if (!EJ) {
- EJ = D3(Dg);
- }
- Dj(DW, EJ, DV, Dz());
- return EJ;
- }
- function Dp(EJ, EK) {
- Dx(EJ, EA({
- pageUrl: EC(),
- referrerUrl: D4()
- }, EK));
- }
- function Dx(EK, EM) {
- var EJ = D8();
- var EL = {
- event: EK,
- id: D3(Dg),
- time: Dn(),
- userId: EJ,
- merchantGroupId: D5.merchantGroupId
- };
- EL = EA(EL, EM);
- if (D5.delayFire === "true" || EL.delay === "true") {
- if (EL.delay) {
- delete EL.delay;
- }
- if (Dc.readyState === "complete") {
- Dv(EF(), EL);
- return;
- }
- if (D7.addEventListener) {
- D7.addEventListener("load", function() {
- Dv(EF(), EL);
- }, false);
- } else {
- if (D7.attachEvent) {
- D7.attachEvent("onload", function() {
- Dv(EF(), EL);
- });
- }
- }
- } else {
- if (EL.delay) {
- delete EL.delay;
- }
- Dv(EF(), EL);
- }
- Do = EM;
- }
- function Ds(EL, EN, EO) {
- var EK = Dd(EL, Dm) ? EL : [EL]
- , EM = "data-pr-event";
- function EP(ET) {
- var ER = Dh(ET);
- var EQ = D9(ER, this, function(EU) {
- return EU && EU.getAttribute(EM);
- });
- if (EQ) {
- var ES = EQ.getAttribute(EM);
- Dp(EN, EA({
- eventType: ES
- }, EO));
- }
- }
- for (var EJ = 0; EJ < EK.length; EJ++) {
- EI(EK[EJ], "click", EP);
- }
- }
- function EE(EK, EL, EN) {
- if (Dd(EK, Dm)) {
- for (var EJ = 0; EJ < EK.length; EJ++) {
- EE(EK[EJ], EL, EN);
- }
- } else {
- var EM = function() {
- if (D2(EK)) {
- Dp(EL, EN);
- return true;
- }
- return false;
- };
- if (!EM()) {
- Dq.push(EM);
- if (!EG) {
- EG = setInterval(i, 1000);
- EI(window, "scroll", i);
- EI(window, "resize", i);
- }
- }
- }
- }
- function Dl() {
- var EJ = EA(Do, D5);
- var EL = EJ.orderItems;
- var EM = function() {
- var EO = [];
- var EP = EL[0];
- if (EL.length > 0) {
- EL.map(function(EQ, ES) {
- var ET = EQ.slice(-1)[0];
- var ER = parseFloat(ET);
- EO.push(ER);
- var EU = EO[(ES - 1)];
- if (ER > EU) {
- EP = EQ;
- }
- });
- }
- return EP;
- };
- var EK = {
- singleOrderitem: EM(),
- page_id: EM()[0],
- page_id_variant: EM()[1]
- };
- var EN = EA(EK, EJ);
- return EN;
- }
- function Dw(EN) {
- var ER = ["merchantGroupId", "merchantId", "locale", "merchantUserId", "userEmail", "userFirstName", "userLastName", "orderId", "orderItems"];
- var EU = ["page_id", "quantity", "unit_price"];
- var EO = ER.filter(function EP(EV) {
- if (!EN[EV]) {
- return EV;
- }
- });
- if (!(typeof EN.marketingOptIn === "boolean")) {
- throw new Error("PowerReviews checkout() error - marketingOptIn value provided is not valid");
- }
- if (EO.length > 0) {
- throw new Error("PowerReviews checkout() error - " + EO.join(", ") + " provided is not valid");
- }
- var EQ = function EQ(EV) {
- return EU.filter(function(EX) {
- var EW = !isNaN(Number(EV[EX])) && EV[EX];
- if (!EV[EX] || EX === "quantity" && !EW || EX === "unit_price" && !EW) {
- return EX;
- }
- });
- };
- var ET = EN.orderItems.filter(function(EV) {
- return EQ(EV).length > 0;
- }).map(function(EW, EV) {
- var EX = EQ(EW);
- return "Order Item #" + (EV + 1) + " has invalid fields - " + EX.join(", ");
- });
- if (ET.length > 0) {
- throw new Error("PowerReviews checkout() error - " + ET.join(" || "));
- }
- var EL = function EL(EX) {
- var EV = EX.page_id;
- var EY = EX.page_id_variant;
- var EZ = EX.product_name;
- var Ea = EX.quantity;
- var EW = EX.unit_price;
- return {
- page_id: EV,
- page_id_variant: EY,
- product_name: EZ,
- quantity: Ea,
- unit_price: EW
- };
- };
- var EM = function(EX, EV, EW) {
- EW = [];
- for (EV in EX) {
- EW.hasOwnProperty.call(EX, EV) && EW.push(EV);
- }
- return EW;
- };
- var ES = function ES(EV) {
- return EM(EV).map(function(EW) {
- return EV[EW];
- });
- };
- var EK = "c";
- var EJ = {
- merchantGroupId: EN.merchantGroupId,
- merchantId: EN.merchantId,
- locale: EN.locale,
- merchantUserId: EN.merchantUserId,
- marketingOptIn: EN.marketingOptIn,
- userEmail: EN.userEmail,
- userFirstName: EN.userFirstName,
- userLastName: EN.userLastName,
- orderId: EN.orderId,
- orderSubtotal: EN.orderItems.reduce(function(EW, EV) {
- return EW + EV.unit_price * EV.quantity;
- }, 0),
- orderNumberOfItems: EN.orderItems.reduce(function(EW, EV) {
- return EW + EV.quantity;
- }, 0),
- orderItems: EN.orderItems.map(function(EV) {
- return ES(EL(EV));
- })
- };
- return Dp(EK, EJ);
- }
- return {
- trackEvent: Dx,
- trackCheckout: Dw,
- getConfig: Dl,
- trackPageview: Dp,
- trackClickEvents: Ds,
- trackVisibility: EE,
- isElementVisible: D2,
- getUID: D8
- };
- }
- if (window.document && window.location) {
- var B2 = {
- delayFire: "false",
- merchantGroupId: 11984,
- userTrackingDomain: "",
- trackingPixelUrl: "//t.powerreviews.com/t/v1.gif",
- parameterAbbreviations: {
- reviewCount: "rc",
- starRating: "s",
- inlineSEO: "i",
- engineVersion: "v",
- questionCount: "qc",
- answerCount: "ac",
- visible: "vis",
- synMerchantId: "symid",
- synSharedReviewIds: "sysrids",
- synReviewsOnPageCount: "syropc"
- }
- };
- var C4 = Bk(B2);
- F.tracker = {
- getUID: C4.getUID,
- trackCheckout: C4.trackCheckout
- };
- }
- if (!!M("pr_snippet_style") && M("pr_snippet_style") !== "LEGACY" && !document.getElementById("pwr-ui")) {
- (function(DX, DY, i, DW, DV) {
- DX.PowerReviews = {};
- DW = DY.createElement(i);
- DV = DY.getElementsByTagName("head")[0];
- DW.src = F.getWARServerPath() + "/ui.js";
- DW.id = "pwr-ui";
- DV.appendChild(DW, DV);
- }(window, document, "script"));
- }
- return F;
- }
- )(POWERREVIEWS);
- var SHOPZILLAREVIEWS = POWERREVIEWS;
- // BRANCH:origin/release-2017.19 SHA:e9871f09e7b6b52065bb922dfae7c3569a07c819
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement