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 = rs_questions.questions[i]; i++) {
		content += '<p><a href="' + domain + q.url + '" target="_blank">' + q.title + '</a></p>';
	}
	content += '<div>';
	content += '<p><a href="' + domain + rs_questions.link + '" target="_blank">All answers from ' + rs_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';
	}
}

var rs_questions =
{ "questions": [ { "title": "Does SmartLipo or CoolLipo work on people with darker skin?", "nid": "32084", "url": "/question/who-expertise-smartlipo-coollipo-darker-skin#tip-32089" }, { "title": "How can I tighten sagging skin without surgery?", "nid": "8619", "url": "/question/how-can-tighten-sagging-skin#tip-25429" }, { "title": "With CoolLipo, what happens to the fat melted by the laser?", "nid": "10430", "url": "/question/coollipo-what-happens-fat-melted-laser#tip-25427" }, { "title": "How is Cool Lipo different than traditional liposuction?", "nid": "25333", "url": "/question/cool-lipo-different-tumescent-liposuction-or-traditional-liposuction#tip-25426" }, { "title": "Can Cool Lipo or Smart Lipo be combined with other laser treatments?", "nid": "10432", "url": "/question/can-cool-lipo-be-combined-other-laser-treatments#tip-25425" }, { "title": "Is Cool Lipo better than Smart Lipo?", "nid": "10345", "url": "/question/coollipo-better-smartlipo#tip-25424" }, { "title": "What is Smart Lipo or Cool Lipo?", "nid": "10344", "url": "/question/what-coollipo-laser-lipolysis#tip-25423" }, { "title": "Cool Lipo - when is it most effective?", "nid": "10436", "url": "/question/when-cool-lipo-most-effective#tip-25422" }, { "title": "How can I prevent stretch marks?", "nid": "10341", "url": "/question/can-prevent-stretch-marks#tip-10342" }, { "title": "What\'s the best laser for hair removal?", "nid": "9177", "url": "/question/whats-best-laser-hair-removal#tip-10340" } ], "pro": "Dr. Mitchel Goldman", "link": "/professional/la-jolla-spa-md/mitchel-goldman" };

window.onload = parse_questions;