(function() {
	var questions = { "pro": "Joel Caschette, MD", "questions": [ { "title": "Can I get Radiesse removed?", "nid": "9123", "url": "/question/can-get-radiesse-removed#tip-47903" }, { "title": "What causes fainting from a wrinkle filler injection?", "nid": "47427", "url": "/question/cosmetic-injection-faint#tip-47902" }, { "title": "Juvederm - What technique should I use to massage Juvederm into place?", "nid": "47608", "url": "/question/technique-how-massage-juvederm#tip-47901" }, { "title": "Does Botox work on horizontal forehead creases?", "nid": "47005", "url": "/question/horizontal-forehead-creases-will-botox-work#tip-47051" }, { "title": "Should I go to a medical spa franchise?", "nid": "46976", "url": "/question/should-go-medical-spa-franchise#tip-47047" } ], "link": "/find/Florida/Cape-Coral/Doctor/Joel-Caschette" };
	
	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);
})();
