(function() {
	var questions = { "pro": "Ronald Shelton, MD", "questions": [ { "title": "Can sclerotherapy treat facial veins?", "nid": "59366", "url": "/question/can-sclerotherapy-treat-facial-veins#tip-59596" }, { "title": "Botox lips: is Botox best for lip plumping?", "nid": "59388", "url": "/question/botox-lips-botox-best-lip-plumping#tip-59595" }, { "title": "What is the best Laser resurfacing method for Asian skin?", "nid": "57680", "url": "/question/what-best-laser-resurfacing-method-for-asian-skin#tip-57766" }, { "title": "Confused about Microdermabrasion", "nid": "55371", "url": "/question/confused-about-microderabrasion#tip-57765" }, { "title": "Will Microdermabrasion treatment be helpful for someone with Rosacea?", "nid": "57667", "url": "/question/will-microdermabrasion-be-helpful-for-someone-with-rosacea#tip-57764" }, { "title": "IPL vs. Fraxel - which is best for fine lines around the eyes?", "nid": "57247", "url": "/question/ipl-vs-fraxel-which-best-fine-lines-around-eyes#tip-57420" }, { "title": "Liposuction in a doctor\'s office?", "nid": "56688", "url": "/question/liposuction-doctors-office-safety#tip-57398" }, { "title": "Tissue fillers for the forehead and bridge of nose?", "nid": "56414", "url": "/question/tissue-fillers-forehead-and-bridge-nose#tip-57305" }, { "title": "Is it too late for me to get Restylane shots?", "nid": "56573", "url": "/question/is-it-too-late-get-restylane-shots#tip-57304" }, { "title": "Is Fraxel Re:pair or Re:store recommended for Chicken Pox scars?", "nid": "57179", "url": "/question/is-fraxel-repair-or-restore-recommended-chicken-pox-scars#tip-57303" }, { "title": "Can Juvederm add volume to sunken cheeks?", "nid": "54934", "url": "/question/juvederm-sunken-cheeks-aging-face#tip-56231" }, { "title": "Which is best for lip definition, Juvederm or Restylane?", "nid": "56057", "url": "/question/juvederm-or-restylane-for-lip-definition#tip-56228" }, { "title": "Restylane or Juvederm doctor consultation - what to ask for best results?", "nid": "55760", "url": "/question/restylane-or-juvederm-doctor-consultation-what-ask-best-results#tip-56227" }, { "title": "Laser resurfacing results vs. downtime", "nid": "55610", "url": "/question/laser-resurfacing-results#tip-55702" }, { "title": "What is next when laser tattoo removal does not work?", "nid": "55632", "url": "/question/what-next-laser-tattoo-removal-not-work#tip-55701" }, { "title": "Laser tattoo removal for lips?", "nid": "55405", "url": "/question/laser-tattoo-removal-lips#tip-55678" }, { "title": "Is laser resurfacing an effective treatment for adult acne and blackheads?", "nid": "55281", "url": "/question/laser-resurfacing-blackheads-adult-acne-treatment#tip-55389" }, { "title": "Best treatment for deep acne scars", "nid": "55205", "url": "/question/best-treatment-deep-acne-scars#tip-55387" }, { "title": "Is there an advantage of Portrait plasma skin resurfacing over Fraxel Repair or Active FX?", "nid": "55143", "url": "/question/portrait-plasma-skin-resurfacing-fraxel-repair-active-fx#tip-55242" }, { "title": "How can I minimize pores?", "nid": "8794", "url": "/question/how-can-minimize-pores#tip-55232" }, { "title": "What are the best alternatives to a face lift?", "nid": "8675", "url": "/question/what-best-alternatives-facelift#tip-55231" }, { "title": "How can I tighten sagging skin without surgery?", "nid": "8619", "url": "/question/how-can-tighten-sagging-skin#tip-55230" }, { "title": "Does Fraxel Repair require fewer treatments than Fraxel Restore?", "nid": "54931", "url": "/question/does-fraxel-repair-require-fewer-treatments-than-fraxel-restore#tip-55229" }, { "title": "What can I expect during Mohs Surgery recovery?", "nid": "8616", "url": "/question/what-aftercare-mohs-surgery#tip-54938" }, { "title": "Best filler for eye wrinkles", "nid": "54816", "url": "/question/best-filler-for-eye-wrinkles#tip-54937" } ], "link": "/find/New-York/New-York-City/Dermatologist/Ronald-Shelton" };
	
	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);
})();
