var RS = RS || function() {
	var questions = { "pro": "Michael Sinclair, MD", "questions": [ { "title": "Will Radiesse injected in my cheeks help hollowness under my eyes?", "nid": "52551", "url": "/question/will-radiesse-injected-cheeks-help-hollowness-under-eyes#tip-52575" }, { "title": "Is Botox poisonous?", "nid": "52472", "url": "/question/is-botox-poisonous#tip-52502" }, { "title": "Does shaving make your hair grow back thicker and faster?", "nid": "52473", "url": "/question/does-shaving-make-your-hair-grow-back-thicker-and-faster#tip-52500" }, { "title": "What is Radiance?", "nid": "52358", "url": "/question/what-is-radiance#tip-52402" }, { "title": "Reloxin vs. Botox - What\'s the difference?", "nid": "52398", "url": "/question/reloxin-vs-botox-whats-difference#tip-52399" } ], "link": "/pro/Michael-Sinclair-MD/Wellington-FL-33414/Family-physician" };
	
	function parse_questions() {
		var domain = 'http://www.realself.com';
		var img_src = domain + '/widget_logo.png';
		var img_alt = 'RealSelf.com - Answers, tips, reviews for beauty, anti-aging skin care, cosmetic plastic surgery';
		
		
		var content = '<div>';
		var q;
		for (var i = 0; q = questions.questions[i]; i++) {
			content += '<p><a href="' + domain + q.url + '" target="_blank">' + q.title + '</a></p>';
		}
		content += '<div>';
		content += '<p><a href="' + domain + questions.link + '" target="_blank">All answers from ' + questions.pro + '</a></p>';
		content += '<a href="' + domain + '" target="_blank"><img src="' + img_src + '" alt="' + img_alt + '" style="border: none" /></a>';
		
		var cont = document.getElementById('rs_questions');
		cont.innerHTML = content;
		
		if (navigator.userAgent.match(/MSIE [5|6]/)) {
			var img = cont.getElementsByTagName('IMG')[0];
			img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.src + "', sizingMethod='image')";
			img.src = domain + '/themes/renewal/img/ie_fix.gif';
			img.parentNode.style.width = '121px';
			img.parentNode.style.height = '31px';
		}
	}
	
	function add_event(el, type, listener) {
		if (document.addEventListener) {
			el.addEventListener(type, listener, true);
		}
		else {
			el.attachEvent('on' + type, listener);
		}
	}
	
	add_event(window, 'load', parse_questions);
}();
