var POWERREVIEWS=(function(){var I={common:{},submission:{}};var AF=false;var k=false;var M=null;var O={};var m={};var q={};var E={};I.common.gResult=E;window.gResult=E;var e={};var c=encodeURIComponent||escape;var h="prBaseStylesheet";var l="prMerchantOverrideStylesheet";var f={pr_merchant_table:{"m5458":{"name":"Rainbow Appliance","cobranded":"true"}},pr_merchant_id:5458,pr_locale:"en_US",pr_read_review:"#ReviewHeader",pr_read_qa:"#QAHeader",pr_write_review:"http://www.rainbowappliance.com/reviews/review.html?pr_page_id=~~~PAGE_ID~~~",pr_ask_question:"",pr_answer_question:"",pr_js_controller_url:"http://services.powerreviews.com/JSController.do",pr_reviews_per_page:30,pr_zip_location:"http://cdn.powerreviews.com/repos/11224/pr",pr_powerreviews_root:"pwr",pr_allow_engine_css_override:true,pr_style_sheet:"",pr_analytics_script_src:"",pr_analytics_account:"",pr_badge_definitions_url:"javascript:POWERREVIEWS.common.showSmallPopup('http://www.powerreviews.com/legal/badge_definitions_~~~LOCALE~~~.html', 580, 460)",pr_expert_badge_definitions_url:"javascript:POWERREVIEWS.common.showSmallPopup('http://www.powerreviews.com/legal/expert_badge_definitions_~~~LOCALE~~~.html', 580, 460)",pr_frame_height:3000,pr_submit_review_url:"http://services.powerreviews.com/SubmitReview.do",pr_ask_question_url:"http://services.powerreviews.com/SubmitQuestion.dox",pr_answer_question_url:"http://services.powerreviews.com/SubmitAnswer.dox",pr_resize_url:"http://www.rainbowappliance.com/reviews/resize.html",pr_snippet_min_reviews:0,pr_source:"web",pr_image_snippet_show_image:X,pr_image_snippet_max:7,pr_snippet_star_click:"",pr_back_to_top_link:"#",pr_highlight_review_url:"http://cdn.powerreviews.com/newreview/~~~REVIEW_ID~~~.js",pr_see_all_reviews_url:"",pr_badge_table:{"11024":{"locales":{"en_GB":{"hovertext":"Staff Reviewer","description":"A Staff Expert is a merchant or brand employee with recognized expertise within the company who contributes a review based on in-depth knowledge of the product as well as related products.","filename":"badge_se_en_GB.gif"},"pt_BR":{"hovertext":"","description":"","filename":"badge_se_pt_BR.gif"},"en_US":{"hovertext":"Staff Reviewer","description":"A Staff Expert is a merchant or brand employee with recognized expertise within the company who contributes a review based on in-depth knowledge of the product as well as related products.","filename":"badge_se_en_US.gif"},"de_DE":{"hovertext":"Mitarbeiter-Bewerter","description":"","filename":"badge_se_de_DE.gif"},"it_IT":{"hovertext":"","description":"","filename":"badge_se_it_IT.gif"},"fr_CA":{"hovertext":"","description":"","filename":"badge_se_fr_CA.gif"},"fr_FR":{"hovertext":"","description":"","filename":"badge_se_fr_FR.gif"}},"label":"staff-expert","isStaff":true},"11023":{"locales":{"en_CA":{"hovertext":"Staff Reviewer","description":"A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.","filename":"badge_sr_en_CA.gif"},"en_GB":{"hovertext":"Staff Reviewer","description":"A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.","filename":"badge_sr_en_GB.gif"},"en_US":{"hovertext":"Staff Reviewer","description":"A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.","filename":"badge_sr_en_US.gif"},"de_DE":{"hovertext":"Mitarbeiter-Bewerter","description":"","filename":"badge_sr_de_DE.gif"},"fr_CA":{"hovertext":"Critique de personnel","description":"","filename":"badge_sr_fr_CA.gif"},"fr_FR":{"hovertext":"","description":"","filename":"badge_sr_fr_FR.gif"},"en_AU":{"hovertext":"Staff Reviewer","description":"A Staff Reviewer is a merchant or brand employee who contributes a review based on ownership or usage of the product.","filename":"badge_sr_en_AU.gif"},"nl_NL":{"hovertext":"Staff Beoordeler","description":"A Staff Beoordeler is een handelaar of merk werknemer die beoordelingen inzend op basis van eigendom of gebruik van het product.","filename":"badge_sr_nl_NL.gif"}},"label":"staff","isStaff":true}}};var B={};if(window&&window.location&&window.location.search){var AC=window.location.search.substring(1).split("&");for(var AA=0,S=AC.length;AA<S;++AA){var AB=AC[AA].split("=");B[AB[0]]=AB[1];}}function b(AI){for(var AJ=1,AH=arguments.length;AJ<AH;++AJ){var AK=arguments[AJ];if(AK){var AG=AK[AI];if(typeof AG!="undefined"){return AG;}}}return null;}function z(AH,AG){var i=b(AH,AG,B,window,f);if("pr_locale"==AH&&"3498"==z("pr_merchant_id",AG)){if(i=="en"){i="en_CA";}else{if(i=="fr"){i="fr_CA";}}}return i;}I.common.get=z;function K(AK){var AJ=0;var AI;for(AI=0;AI<AK.length;AI++){var AH=AK.charCodeAt(AI);AH=AH*Math.abs(255-AH);AJ+=AH;}AJ=AJ%1023;AJ=AJ+"";var AL=4;var AG=AJ.split("");for(AI=0;AI<AL-AJ.length;AI++){AG.unshift("0");}AJ=AG.join("");AJ=AJ.substring(0,AL/2)+"/"+AJ.substring(AL/2,AL);return AJ;}function F(i,AH){if(AF){return true;}else{if(!W(AH)){return false;}}AF=true;if(!document.getElementById(h)){i.write('<link rel="stylesheet" href="'+H(AH)+'/engine/pr_styles_review.css" type="text/css" id="'+h+'">\n');}var AI=H(AH)+"/engine/merchant_styles2.css";var AG=A(z("pr_style_sheet",AH));if(z("pr_allow_engine_css_override",AH)&&AG){AI=AG;}if(!document.getElementById(l)){i.write('<link rel="stylesheet" href="'+AI+'" type="text/css" id="'+l+'">\n');}U(H(AH)+"/engine/images/ph.gif?r="+Math.floor(Math.random()*10000));return true;}function W(i){if(k){return true;}else{if(!z("pr_page_id",i)&&!z("pr_merchant_user_id",i)){return false;}}k=true;return true;}function C(i,AG,AH){if(!document.getElementById(i)){setTimeout(function(){C(i,AG,AH);},1000);}else{u(i,AG,AH);}}function u(i,AH,AI){try{if(!AH){AH="";}g(function(){y(document.getElementById(i),AH);if(AI){AI();}});}catch(AG){}}function y(AH,AG){if(AH.parentNode){var i=document.createElement("div");i.id=AH.id;i.className=AH.className;i.innerHTML=AG;AH.parentNode.replaceChild(i,AH);return i;}else{AH.innerHTML=AG;return AH;}}function g(i){if(typeof i=="function"){(function(){if(J()){try{document.documentElement.doScroll("left");}catch(AG){setTimeout(arguments.callee,50);return ;}}i();i=null;})();}}function J(){return typeof document.all!="undefined"&&typeof window.opera=="undefined"&&!(navigator.vendor=="KDE");}function U(i){new Image().src=i;}function H(AG){var i=z("pr_zip_location",AG);if(i.charAt(i.length-1)!="/"){i+="/";}i+=z("pr_powerreviews_root",AG);return i;}I.common.getDocRoot=H;function n(i){return i.replace(/\W/g,"__");}function V(AG,AI,AH,i){this.pageId=AG;this.fullReviewCount=AI;this.quickReviewCount=AH;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 AE(AG,i,AH){return AH&&AH["locales"]&&AH["locales"][i]&&AH["locales"][i]["p"+AG];}function Y(AH){var AI=document.getElementsByName(AH);for(var AG=0;AG<AI.length;AG++){if(AI[AG].checked){return AI[AG].value;}}return null;}function L(i,AH,AG){return i.replace(new RegExp(AH,"g"),AG);}function A(i){return i&&i.replace(/^\s+|\s+$/g,"");}function s(i){if(typeof i=="string"){return i.replace(/\n/g,"<br />");}else{return i;}}function p(AH,AI,AL,AG){var AJ=H(AG);var AI=AI||AH.substring(AH.indexOf(AJ)+AJ.length+1);if(E[AI]){AL(E[AI]);}else{var i=document.createElement("script");var AK=function(){if(E[AI]){if(i.parentNode){i.parentNode.removeChild(i);delete i;}AL(E[AI]);}};if(J()){i.onreadystatechange=AK;}else{i.onload=AK;}i.type="text/javascript";i.charset="utf-8";i.src=AH;document.getElementsByTagName("head")[0].appendChild(i);}}function AD(AK,AL,AG){if(AK.className){var AH=AK.className.split(" ");if(AG){var AJ=AL.toUpperCase();for(var AI=0;AI<AH.length;AI++){if(AH[AI].toUpperCase()==AJ){AH.splice(AI,1);AI--;}}}AH[AH.length]=AL;AK.className=AH.join(" ");}else{AK.className=AL;}}function R(AJ,AK){if(AJ.className){var AG=AJ.className.split(" ");var AI=AK.toUpperCase();for(var AH=0;AH<AG.length;AH++){if(AG[AH].toUpperCase()==AI){AG.splice(AH,1);AH--;}}AJ.className=AG.join(" ");}}function P(AN,AO,AP){var AL=(AO=="*"&&AN.all)?AN.all:AN.getElementsByTagName(AO);var AK=new Array();var AQ=new Array();if(typeof AP=="object"){for(var AJ=0;AJ<AP.length;AJ++){AQ.push(new RegExp("(^|\\s)"+AP[AJ].replace(/\-/g,"\\-")+"(\\s|$)"));}}else{AQ.push(new RegExp("(^|\\s)"+AP.replace(/\-/g,"\\-")+"(\\s|$)"));}var AG;var AM;for(var AI=0;AI<AL.length;AI++){AG=AL[AI];AM=true;for(var AH=0;AH<AQ.length;AH++){if(!AQ[AH].test(AG.className)){AM=false;break;}}if(AM){AK.push(AG);}}return AK;}function r(AG,i){if(i(AG)==true){return AG;}else{if(AG.parentNode){return arguments.callee(AG.parentNode,i);}else{return false;}}}function t(AG,i){e[AG]=i;}function x(i){return e[i];}I.common.getOptions=x;function T(AG,i,AJ,AH){var AI=O[AG];if(!AI){p(H(AH)+"/content/"+K(AG)+"/contents.js",null,function(AK){AI=AE(AG,i,AK);O[AG]=AI?AI:"none";AJ(AI);},AH);}else{if(AI=="none"){AJ(null);}else{AJ(AI);}}}function d(AG,i,AI,AH){if(!M){p(H(AH)+"/content/"+K(AG)+"/"+AG+"-"+i+"-meta.js",null,function(AJ){M=AJ?AJ.metadata:null;AI();},AH);}else{AI();}}function a(AG,i,AJ,AK,AI){if(!m[AG+"-"+AJ]){var AH=H(AI)+"/content/"+K(AG)+"/"+AG+"-"+i+"-"+AJ+"-reviews.js";p(AH,null,function(AO){var AM=[];for(var AN=0;AN<AO.length;AN++){var AL=AO[AN].r;q[AL.id]=AL;AM.push(AL);}m[AG+"-"+AJ]=AM;AK();},AI);}else{AK();}}function Z(AH,AG,AL,AM,AI){var AK=AL.length;for(var AJ=0;AJ<AL.length;AJ++){a(AH,AG,AL[AJ],function(){if(--AK<=0){AM();}},AI);}}function o(i){return Math.round(i*2)/2;}function X(AH,AI,i,AG){window.open("http://images2.powerreviews.com/media_popup.html?type=image&url="+c(AH),"sizedWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width="+AI+",height="+i+",top=100,left=100");}I.common.showImagePopup=X;function G(AG,i,AI){var AH=window.open(AG,"smallWindow","toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+AI+",height="+i+",top=200,left=200");if(window.focus){AH.focus();}}I.common.showSmallPopup=G;function v(AG,i){window.open("http://images2.powerreviews.com/media_popup.html?type=video&url="+c(AG),"sizedWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,width=435,height=350,top=100,left=100");}I.common.showVideoPopup=v;function N(AJ,AH,AG,AI){var i=function(){R(document.getElementById(AJ.target),"pr-open");AD(document.getElementById(AJ.target),"pr-closed");};var AK=function(){R(document.getElementById(AJ.target),"pr-closed");AD(document.getElementById(AJ.target),"pr-open");};if(window.event){AI=window.event;AI.cancelBubble=true;target=window.event.srcElement;currentTarget=event.srcElement.id;}else{if(AI){AI.stopPropagation();target=AI.target;currentTarget=AI.currentTarget.id;}else{return ;}}if(AH=="show"){if(document.getElementById(AJ.target).className!="pr-open"){this.timedShow=setTimeout(AK,400);}else{if(r(target,function(AL){if(AL.id==AJ.target){return true;}})){if(this.timedHide!=null){window.clearTimeout(this.timedHide);}}}}else{if(AH=="hide"){if(this.timedHide!=null){window.clearTimeout(this.timedShow);}if(currentTarget==AJ.link||currentTarget==AJ.target||r(target,function(AL){if(AL.id==AJ.target){return true;}})){this.timedHide=setTimeout(i,800);}else{if(this.timedHide!=null){window.clearTimeout(this.timedHide);}}}}}I.common.togglePopOut=N;function Q(AM){var AQ=[];var Ag=z("pr_app_name",AM)||z("appName",AM);var AT=z("pr_page_id",AM);if(!Ag||Ag==""||Ag=="reviewSubmit"||Ag=="submitReview"){var Ah=z("pr_submit_review_url",AM);AQ.push(Ah);AQ.push(Ah.indexOf("?")>=0?"&":"?");AQ.push("pageId=");AQ.push(AT);}else{if(Ag=="askQuestion"){var Al=z("pr_ask_question_url",AM);AQ.push(Al);AQ.push(Al.indexOf("?")>=0?"&":"?");AQ.push("pageId=");AQ.push(AT);}else{if(Ag=="answerQuestion"){var Ac=z("pr_answer_question_url",AM);var AJ=z("pr_question_id",AM)||z("questionId",AM);AQ.push(Ac);AQ.push(Ac.indexOf("?")>=0?"&":"?");AQ.push("pageId=");AQ.push(AT);AQ.push("&questionId=");AQ.push(AJ);}}}var AH=z("pr_merchant_id",AM);if(AH){AQ.push("&merchantId=");AQ.push(AH);}var Ad=z("pr_promo_code",AM);if(Ad){AQ.push("&promoCode=");AQ.push(Ad);}var Ai=z("pr_merchant_user_email",AM);if(Ai){AQ.push("&merchantUserEmail=");AQ.push(Ai);}var AS=z("pr_merchant_user_id",AM)||z("pr_user_id",AM);if(AS){AQ.push("&merchantUserId=");AQ.push(AS);}var Aa=z("pr_locale",AM);if(Aa){if(Aa=="en"){Aa="en_US";}else{if(Aa=="fr"){Aa="fr_CA";}}AQ.push("&locale=");AQ.push(Aa);}var Aj=z("pr_merchant_group_id",AM);if(Aj){AQ.push("&merchantGroupId=");AQ.push(Aj);}var Ae=z("pr_site_id",AM);if(Ae){AQ.push("&siteId=");AQ.push(Ae);}var AI=z("pr_style_sheet",AM);if(AI){AQ.push("&cssOverride=");AQ.push(AI);}var AY=z("pr_source",AM);AQ.push("&source=");AQ.push(AY);var AN="";var AV=z("pr_extra_info",AM);if(AV&&typeof AV=="object"){for(var Af in AV){if(typeof Af=="string"&&AV.hasOwnProperty(Af)){AN+=Af+"^^"+AV[Af];AN+="#";}}}var AP=z("pr_order_id",AM);if(AP){AN+="order_id^^"+AP+"#";}if(AN){AQ.push("&extraInfo=");AQ.push(c(AN));}var AZ=z("pr_reviewer_nickname",AM);if(AZ){AQ.push("&reviewerNickname=");AQ.push(AZ);}var AR=z("pr_reviewer_location",AM);if(AR){AQ.push("&reviewerLocation=");AQ.push(AR);}var AX=z("pr_reviewer_type",AM);if(AX){AQ.push("&reviewerType=");AQ.push(AX);}var An=z("pr_rating",AM);if(An){AQ.push("&reviewRating=");AQ.push(An);}var Ak=z("pr_campaign_id",AM);if(Ak){AQ.push("&campaignId=");AQ.push(Ak);}var AL=z("pr_page_id_variant",AM);if(AL){AQ.push("&variant=");AQ.push(AL);}var Am=z("pr_return_url",AM);if(Am){AQ.push("&returnUrl=");AQ.push(c(Am));}var AU=z("pr_resize_url",AM);if(AU){AQ.push("&resizeUrl=");AQ.push(c(AU));}else{var AW="";var AG=document.getElementsByTagName("script");for(var Ab=0;Ab<AG.length;Ab++){var AO=AG[Ab].getAttribute("src");if(AO&&AO.indexOf("appLaunch.js")>=0){AW=AO;break;}}AQ.push("&windowLocation=");AQ.push(c(window.location));AQ.push("&appLaunchSrc=");AQ.push(c(AW));}var AK=z("pr_unique_review_id",AM);if(AK){AQ.push("&uniqueReviewId=");AQ.push(AK);}return AQ.join("");}I.submission.getIframeSourceUrl=Q;function j(AH){var i=Q(AH);var AG=z("pr_frame_height",AH);document.write("<iframe id='submitReviewIframe' src='"+i+"' frameborder='0' height='"+AG+"' width='100%' allowTransparency='true' scrolling='auto'></iframe>");}I.submission.writeOutIframe=j;function w(AG){var i=0;if(AG&&AG.offsetParent){do{i+=AG.offsetTop;}while(AG=AG.offsetParent);}return i;}function D(AI,AH,AG){if(typeof AI=="number"){document.getElementById("submitReviewIframe").setAttribute("height",AI);}if(typeof AH=="number"&&AH>0){var AJ=0;var i=z("pr_scroll_to_id",AG);if(i){AJ=w(document.getElementById(i));}window.scroll(0,AJ);}}I.submission.updateIframe=D;return I;})();POWERREVIEWS.submission.writeOutIframe();
