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;function rv_load(){if(typeof $rvj=="undefined"){var a=document.createElement("script");a.type="text/javascript";a.src=location.protocol+"//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+"//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+"//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+"//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+"//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+"//services.ratevoice.com/js/questions.js?site_id="+rv_site_id+"&item_code="+rv_item_code+"&hostname="+location.hostname+"&r="+rv_rand();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}document.write('<div id="ratevoice-questions"></div>')}rv_do_questions=true}if(window.addEventListener){window.addEventListener("load",rv_load,false)}else{window.attachEvent("onload",rv_load)};