var rv_do_reviews=false;var rv_do_summary=false;var rv_do_rating=false;var rv_do_questions=false;var rv_site_id=0;var rv_rating_item_codes=new Array();var rv_suppress_css=false;var rv_do_reviews_inline=false;var rv_do_questions_inline=false;var rv_loading=false;function rv_load(){if(rv_loading){return}rv_loading=true;if(typeof $rvj=="undefined"){var a=document.createElement("script");a.type="text/javascript";a.src=location.protocol+"//staging.services.ratevoice.com/js/lib/jquery.js";document.body.appendChild(a);rv_wait()}else{rv_run()}}function rv_wait(){if(typeof $rvj=="undefined"){window.setTimeout(rv_wait,50)}else{rv_run()}}function rv_run(){if(!rv_suppress_css){var c=document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=location.protocol+"//staging.services.ratevoice.com/css/"+rv_site_id+"/style.css";document.body.appendChild(c)}if(rv_do_reviews){if(window.rv_item_code){var b=document.createElement("script");b.type="text/javascript";b.src=location.protocol+"//staging.services.ratevoice.com/js/reviews.js?site_id="+rv_site_id+"&item_code="+rv_item_code+"&hostname="+location.hostname+"&r="+rv_rand();if(rv_do_reviews_inline){b.src+="&inline=true"}document.body.appendChild(b)}}if(rv_do_summary){if(window.rv_item_code){var b=document.createElement("script");b.type="text/javascript";b.src=location.protocol+"//staging.services.ratevoice.com/js/summary.js?site_id="+rv_site_id+"&item_code="+rv_item_code+"&hostname="+location.hostname+"&r="+rv_rand();document.body.appendChild(b)}}if(rv_do_rating){for(var a=0;a<rv_rating_item_codes.length;a++){var b=document.createElement("script");b.type="text/javascript";b.src=location.protocol+"//staging.services.ratevoice.com/js/rating.js?site_id="+rv_site_id+"&item_code="+rv_rating_item_codes[a]+"&i="+(a+1)+"&hostname="+location.hostname+"&r="+rv_rand();document.body.appendChild(b)}}if(rv_do_questions){if(window.rv_item_code){var b=document.createElement("script");b.type="text/javascript";b.src=location.protocol+"//staging.services.ratevoice.com/js/questions.js?site_id="+rv_site_id+"&item_code="+rv_item_code+"&hostname="+location.hostname+"&r="+rv_rand();if(rv_do_questions_inline){b.src+="&inline=true"}document.body.appendChild(b)}}}function rv_rand(){return parseInt(Math.random()*99999999)}function rv_get_cookie(a){var b=document.cookie.match("(^|;) ?"+a+"=([^;]*)(;|$)");if(!b){b=document.cookie.match("(^|;) ?"+a.toLowerCase()+"=([^;]*)(;|$)")}if(!b){b=document.cookie.match("(^|;) ?"+a.toUpperCase()+"=([^;]*)(;|$)")}if(b){return(unescape(b[2]))}else{return null}}function rv_set_cookie(b,c){var a=b+"="+escape(c)+"; path=/";document.cookie=a}function rv_validate_email(a){var b=/^(([^<>()[\]\\.,;:\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 b.test(a)}function rv_wc_domain(c){var b="";var a=c.indexOf(".");if(a>-1){if(a!=c.lastIndexOf(".")){b="*."+c.substr(a+1,c.length-a+1)}else{b="*."+c}}return b}function rv_get_url_param(c,b){var f=window.location.search.substring(1);var g=f.split("&");var a=b;for(var e=0;e<g.length;e++){var d=g[e].split("=");if(d[0]==c){a=d[1];break}}return a}function rv_site(a){if(!rv_site_id){rv_site_id=a}}function rv_reviews(a){if(!rv_do_reviews){if(a){rv_item_code=a}if(!rv_do_reviews_inline){document.write('<div id="ratevoice-reviews"></div>')}}rv_do_reviews=true}function rv_summary(a){if(!rv_do_summary){if(a){rv_item_code=a}document.write('<div id="ratevoice-summary"></div>')}rv_do_summary=true}function rv_rating(a){if(a){rv_rating_item_codes[rv_rating_item_codes.length]=a;document.write('<div id="ratevoice-rating-'+(rv_rating_item_codes.length)+'" class="ratevoice-rating"></div>')}rv_do_rating=true}function rv_questions(a){if(!rv_do_questions){if(a){rv_item_code=a}if(!rv_do_questions_inline){document.write('<div id="ratevoice-questions"></div>')}}rv_do_questions=true}(function(){var g=window.RVDomReady={};var i=navigator.userAgent.toLowerCase();var c={version:(i.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(i),opera:/opera/.test(i),msie:(/msie/.test(i))&&(!/opera/.test(i)),mozilla:(/mozilla/.test(i))&&(!/(compatible|webkit)/.test(i))};var d=false;var e=false;var h=[];function a(){if(!e){e=true;if(h){for(var j=0;j<h.length;j++){h[j].call(window,[])}h=[]}}}function f(j){var k=window.onload;if(typeof window.onload!="function"){window.onload=j}else{window.onload=function(){if(k){k()}j()}}}function b(){if(d){return}d=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);a()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(e){return}try{document.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);return}a()})()}}}f(a)}g.ready=function(k,j){b();if(e){k.call(window,[])}else{h.push(function(){return k.call(window,[])})}};b()})();RVDomReady.ready(function(){rv_load()});
