/*<!--*/
var e = document.getElementById("rp_testimonials");
var f = document.createElement("iframe");
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=getFFVersion>=0.1? 16 : 16 //extra height in px to add to iframe in FireFox 1.0+ browsers

var iframeids=["rpi_testimonials_iframe"]

f.width="700px";f.height="600px";f.style.border="none";f.frameBorder="0";f.src="about:blank";f.name="rpi_testimonials_iframe";f.id="rpi_testimonials_iframe";f.scrolling="no";
e.appendChild(f);
var iframeDoc;
if (f.contentDocument) {
  iframeDoc = f.contentDocument;
} else if (f.contentWindow) {
  iframeDoc = f.contentWindow.document;
} else if (window.frames[f.name]) {
  iframeDoc = window.frames[f.name].document;
}
if (iframeDoc) {
//  f.onDomReady = dyniframesize;
  f.onload = dyniframesize;
  iframeDoc.open();
  iframeDoc.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n	\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head>\n	<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\n	<title  >RatePoint Spotlight Testimonials</title>\n  <style>\n * { padding: 0; margin: 0; font-size: 1em; outline: none; }\n  body {background-color: white}\n  a img {border:none}\n  </style>\n  <link href=\"//sitetools.ratepoint.com/stylesheets/testimonials.css\" media=\"screen\" rel=\"Stylesheet\" type=\"text/css\" />\n</head>\n\n<body>\n\n          <script type=\"text/javascript\">\n          var _rp_uth = ((\"https:\" == document.location.protocol) ? \"https://\" : \"http://\");\n          document.write(unescape(\"<img width=\'1\' height=\'1\' src=\'\" + _rp_uth + \"ut.ratepoint.com\" + \"/items/\" +  \"5f4878b26d2f4a0ca21a8daf5f62b28f\" + \"/trace.png?t=\" + Number(new Date()) + \"\' alt=\'\' />\"));\n        </script>\n<div class=\"testimonial_wrapper non-column\"  >\n\n\n	<div class=\"title title_star\">\n		<div class=\"title-container\">\n					<span class=\"rating\" t9n:p=\"1\"  ><span t9n:w=\"1\" >Average Rating with 10 reviews</span> <img alt=\"Testimonial_header_star\" class=\"star\" src=\"//sitetools.ratepoint.com/images/testimonial_header_star.gif\" /><img alt=\"Testimonial_header_star\" class=\"star\" src=\"//sitetools.ratepoint.com/images/testimonial_header_star.gif\" /><img alt=\"Testimonial_header_star\" class=\"star\" src=\"//sitetools.ratepoint.com/images/testimonial_header_star.gif\" /><img alt=\"Testimonial_header_star\" class=\"star\" src=\"//sitetools.ratepoint.com/images/testimonial_header_star.gif\" /><img alt=\"Testimonial_header_star\" class=\"star\" src=\"//sitetools.ratepoint.com/images/testimonial_header_star.gif\" /></span>\n					<h3  >Testimonials for HAPPYneuron</h3>\n		</div>\n	</div><!-- title -->\n\n    <ul id=\"testimonials\">\n	    </ul>\n\n    <div class=\"bottom\">\n      <a href=\"http://www.ratepoint.com\" class=\"logo\" target=\"_blank\" t9n:i=\"1\"> powered by <img src=\"//sitetools.ratepoint.com/images/logo_small.gif\" alt=\"logo\" /></a>\n      <span class=\"buttons\">\n        <a href=\"http://www.ratepoint.com/tellus/8122\" class=\"b my gray\" target=\"_blank\"><span><span>Provide Feedback</span></span></a>        <a href=\"http://www.ratepoint.com/seereviews/8122\" class=\"b my gray\" target=\"_blank\"><span><span>See more</span></span></a>      </span>\n    </div><!--bottom-->\n\n\n</div>\n\n<script type=\"text/javascript\">\n\n  var rp_reviews_per_page = 2;\n  var rp_reviews_count = 10\n  var rp_fill_lis = \'\';\n  \n  var rp_reviews = [{\"author_name\":\"jeton kellogg\",\"text\":\"Since everyone in my family gets Altzheimer\'s Disease this game gives me a measuring stick to see how I am doing. I recently found out that benadryl affects your memory. After I stopped taking it my scores improved. I am a very happy player of this game. I always tell people that I hate playing computer games but Happy-Neuron is a must play set of games. \",\"date\":\"12\\/14\\/2009\",\"rating\":5},{\"author_name\":\"merrymary\",\"text\":\"I\'m 56 and thought I was doing quite well -- just because I fogot my keys or a few other mistakes didn\'t think anything was wrong. I got HAppy Neuron as part of a Hallmark greeting card upgrade and loaded it anyway. I failed miserably at first but stuck with it with impressive results. Thank you for an incredible product that\'s easy to use and a program I\'m not embarassed to use\",\"date\":\"09\\/08\\/2009\",\"rating\":5},{\"author_name\":\"Chuck\",\"text\":\"HAPPYneuron has put a huge effort into making their games and support into the most user friendly, useful, and fun brain fitness center there is.  I have enjoyed and benefited from the opportunity to work with HAPPYneuron.\",\"date\":\"08\\/06\\/2009\",\"rating\":5},{\"author_name\":\"JasperNicky\",\"text\":\"I have already shared your site with a half-dozen of my friends and they love it too!\",\"date\":\"08\\/06\\/2009\",\"rating\":5},{\"author_name\":\"ABVEN\",\"text\":\"I was diagnosed last winter as possibly suffering from mild cognitive impairment, benchmarked, and told to return for more tests at the end of this year. \\r\\n \\r\\nTaking a doctor\'s advice that it wouldn\'t hurt to exercise my brain, in fact that it might actually do some good,  by nothing more than dumb luck I progressed  from &quot;MyBrainTrainer.com&quot; through &quot;Lumosity.com&quot; into &quot;Happy-Neuron.com&quot;.  Thi...\",\"date\":\"08\\/05\\/2009\",\"rating\":5},{\"author_name\":\"Pamela\",\"text\":\"At age 46 I\'m frustrated with the lack of help my neurologist can offer for the cognitive issues I deal with daily due to RR Multiple Sclerosis. I researched and tested many &quot;brain fitness&quot; websites before I purchased a subscription from Happy Neuron Jan 2008...I couldnt be more delighted!  The games challenge and work my brain in ways that nothing else I\\u2019ve found so far compares too.  Utilizin...\",\"date\":\"06\\/09\\/2009\",\"rating\":5},{\"author_name\":\"Rhedbud\",\"text\":\"I love the games and the ongoing progress report. Being able to pinpoint weaknesses and have a customized gaming session made for me to work them is AWESOME!!! I have not found this degree of personalization anywhere else. HAPPYneuron.com puts me in control of my brain atrophy and allows me to fight the ravages of age and environment; I love it.\",\"date\":\"06\\/04\\/2009\",\"rating\":5},{\"author_name\":\"Rell Sanderson\",\"text\":\"Of the many brain fitness websites that I have found on the internet, Happy Neuron is in a league of it\'s own. The exercises are fun, interesting and challenging. The animation is smooth, sophisticated, and works correctly. If one is interested, there are explanations of how each exercise benefits the brain as well as a &quot;coach&quot; who will tell you which exercises should be played in order to reac...\",\"date\":\"06\\/02\\/2009\",\"rating\":5},{\"author_name\":\"meg arteaga\",\"text\":\"I took the trial membership about 4 days ago having grown tired of another Brain Games website. So far I am very pleased with this one. I was shocked to find myself in the very low ratings which was a great motivator. I enjoy the immediate display of my standing also the graphics are very pleasing and the tone of the comments very friendly and respectful\",\"date\":\"03\\/16\\/2009\",\"rating\":4},{\"author_name\":\"Pete\",\"text\":\"I love the challenge that I feel when I cross training my brain with Happy Neuron. It definitely pushes you past your comfort zone. I like that I have a good visual feedback of my performance in each sector. I find the personalized written feedback to be very helpful also.\\r\\n\",\"date\":\"03\\/13\\/2009\",\"rating\":5}]\n  var rp_star_url = \'//sitetools.ratepoint.com/images/widget_star.gif\'\n  var rp_nostar_url = \'//sitetools.ratepoint.com/images/widget_star_gray.gif\'\n  \n\n	rp_randomize_ids = function(page, level, count, max)\n	{\n      if (level == count) return page;\n      id = Math.round(Math.random() * (max-1))\n      if ( id >= max || page[id]) { // retry\n        return rp_randomize_ids(page, level, count, max)\n      } else {\n        page[id] = id\n        return rp_randomize_ids(page, level + 1, count, max)\n      }\n	};\n	\n	rp_render_rating = function(count, url) {\n    var star = \'<img class=\"star\" src=\"\' + url + \'\" />\';\n    var stars = [];\n    for(var i = 0; i< count; i++) { stars.push(star) }\n    return stars.join(\' \');\n  };\n  \n\n  rp_generate_page = function(reviews, page)\n  {\n    var result = \'\';\n    var j = 0;\n    for (var i in page) {\n      reviews[i]\n      result += \'<li class=\"\' + (j % 2 ? \'\' : \'odd\') + \'\" t9n:i=\"1\">\' +\n        \'<span class=\"text\">\' + reviews[i].text + \' <span class=\"quote_end\"> </span></span>\' +\n                \'<div class=\"rate block\">\' + rp_render_rating(reviews[i].rating, rp_star_url) + rp_render_rating(5 - reviews[i].rating, rp_star_url) + \'</div>\' +\n                        \'<span class=\"grey\">by </span><span class=\"strong\">\' + reviews[i].author_name +\'</span><br />\' +\n                        \'<span class=\"grey\">on </span>\' + reviews[i].date +\n                \'</li>\';\n      j++;\n    }\n    return result;\n  };\n  \n	rp_render_page = function()\n	{\n    if (document.getElementById(\'testimonials\')) {\n      var page = rp_randomize_ids({}, 0, rp_reviews_per_page, rp_reviews_count);\n      var reviews = rp_generate_page(rp_reviews, page);\n      document.getElementById(\'testimonials\').innerHTML = reviews + rp_fill_lis;\n    }\n	};\n	\n  rp_render_page();\n\n  rp_apply_styles = function()\n  {\n    var first_entries_count = 1;\n    if(document.getElementById(\'testimonials\')){\n     var lis = document.getElementById(\'testimonials\').getElementsByTagName(\'li\')\n     for (var i = 0; i < first_entries_count; i +=1 ) {\n       var li = lis[i]\n       if (li) li.className += \' first\'\n     } \n    }\n  };\n\n  rp_apply_styles();\n</script>\n    \n\n</body>\n</html>\n")
  iframeDoc.close();
  if (typeof iframeDoc.addEventListener != "undefined") {
    iframeDoc.addEventListener("DOMContentLoaded", dyniframesize, null);
  }
}

function dyniframesize() {
	var dyniframe=new Array()
	for (i=0; i<iframeids.length; i++){
		if (document.getElementById){ //begin resizing iframe procedure
			dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
			if (dyniframe[i]){
				dyniframe[i].style.display="block"
				if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntax
					dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight; 
				else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //ie5+ syntax
					dyniframe[i].height = dyniframe[i].Document.body.scrollHeight;
			}
		}
	}
}
/*-->*/