var RS = RS || function() {
	var questions = { "pro": "Dr. Virginia Stevens", "questions": [ { "title": "Thermage treatments - other Thermage information", "nid": "41256", "url": "/question/thermage-treatments-other-thermage-information-thermage-providers#tip-41424" }, { "title": "Barbie turns 49: Looking like Barbie a reality or hype?", "nid": "40600", "url": "/question/barbie-reality-or-hype#tip-40628" }, { "title": "Does SmartLipo or CoolLipo work on people with darker skin?", "nid": "32084", "url": "/question/who-expertise-smartlipo-coollipo-darker-skin#tip-32086" }, { "title": "What are the best alternatives to a face lift?", "nid": "8675", "url": "/question/what-best-alternatives-facelift#tip-25344" }, { "title": "What is recovery like after Smart Lipo or Cool Lipo?", "nid": "25342", "url": "/question/what-recovery-after-cool-lipo-or-smart-lipo-laser-lipolysis#tip-25343" }, { "title": "Can LipoDissolve be combined with other fat loss treatments?", "nid": "25340", "url": "/question/can-cool-lipo-be-comined-other-fat-loss-treatments-lipodissolve#tip-25341" }, { "title": "Can laser liposuction procedures like Cool Lipo be combined with a tummy tuck?", "nid": "25338", "url": "/question/can-laser-lipolysis-procedures-cool-lipo-be-combined-tummy-tuck#tip-25339" }, { "title": "How is Cool Lipo different than traditional liposuction?", "nid": "25333", "url": "/question/cool-lipo-different-tumescent-liposuction-or-traditional-liposuction#tip-25337" }, { "title": "Is tumescent liposuction different than regular liposuction?", "nid": "25334", "url": "/question/tumescent-liposuction-different-regular-liposuction#tip-25335" }, { "title": "Do CoolLipo and SmartLipo have the same indications?", "nid": "25331", "url": "/question/do-coollipo-and-smartlipo-have-same-indications#tip-25332" } ], "link": "/beauty-professional/virginia-stevens" };
	
	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);
}();
