var RS = RS || function() {
	var questions = { "pro": "Jonathan Hoenig, MD", "questions": [ { "title": "Botox side effects - Can Botox injections cause blurry vision?", "nid": "48597", "url": "/question/botox-side-effects-can-botox-injections-cause-blurry-vision#tip-48658" }, { "title": "Restylane side effects - Can Restylane be combined with other fillers to lessen side effects?", "nid": "48640", "url": "/question/can-restylane-be-combined-with-other-fillers#tip-48655" }, { "title": "What are some natural treatments for tired eyes?", "nid": "39992", "url": "/question/what-some-natural-treatments-tired-eyes#tip-47433" }, { "title": "How can I choose between the different treatments for crow\'s feet?", "nid": "9395", "url": "/question/how-can-choose-between-different-treatments-crows-feet#tip-47432" }, { "title": "Can I change my eye shape?", "nid": "45937", "url": "/question/can-change-eye-shape#tip-47431" } ], "link": "/pro/jonathan-hoenig/beverly-hills-ca" };
	
	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);
}();
