function symptoms() {

	/* Change the style of the symptoms link */
	$("a.symptoms").css({'border-bottom' : '1px dashed #d23a85', 'text-decoration' : 'none'});
	
	
	/* Add the symptoms div */
	$('div#seroquel-xr').before('\
		<div class="symptoms depression"><div>\
			<img class="close" src="/images/icon/close.png" />\
			<h2>Symptoms of Bipolar Depression Include</h2>\
			<ul>\
				<li>Sadness</li>\
				<li>Feelings of worthlessness</li>\
				<li>Losing interest in things and activities you once enjoyed</li>\
				<li>Being overcome by feelings of guilt, failure, and hopelessness</li>\
				<li>Becoming sad and unable to concentrate, remember things, or even make simple decisions</li>\
				<li>Experiencing physiological changes like differences in appetite or weight, energy levels, and sleep schedules</li>\
				<li>Possibly thinking about death or suicide, in extreme cases</li>\
			</ul>\
			<p><a href="/bipolar-disorder/bipolar-depression-symptoms.aspx">Learn more</a></p>\
		</div></div>\
		<div class="symptoms mania"><div>\
			<img class="close" src="/images/icon/close.png" />\
			<h2>Symptoms of Bipolar Mania Include</h2>\
			<ul>\
				<li>Feeling unusually great and launching into several new projects at once</li>\
				<li>Sleeping a lot less, acting more fidgety, and talking much more</li>\
				<li>Mixing up thoughts and being easily distracted</li>\
				<li>Taking unnecessary risks</li>\
				<li>Going to extremes sexually, financially, and socially</li>\
			</ul>\
			<p><a href="/bipolar-disorder/bipolar-mania-symptoms.aspx">Learn more</a></p>\
		</div></div>\
		<div class="symptoms madrs"><div>\
			<img class="close" src="/images/icon/close.png" />\
			<p>On a standard depression rating scale, the improvement in the <span class="sxr">Seroquel XR</span> group was statistically significant compared to placebo (sugar pill).</p>\
		</div></div>\
	');
	/* wrap each LI text in a span to control bullet/text colors */
	$('div.symptoms ul li').each(function(i) {
		$(this).html('<span>'+$(this).html()+'</span>');
	});

}



$(document).ready(function() {
	if($('a.symptoms')) {
		symptoms();
		$('a.symptoms').click(function (e) {
			$("div.symptoms").hide();
			var symptomClass = $(this).attr("class").split(' '); /* get class of clicked link */
			var divSymptoms = "div."+symptomClass[0]+"."+symptomClass[1]; /* open correct layer box */
			var divCenter = $(divSymptoms).width() / 2; /* find center of layer box */
			$(divSymptoms).css({'left' : e.pageX-divCenter, 'top' : e.pageY}); /* off-set left position to center layer box */
			$(divSymptoms).show();
			return false;
		});
		$('img.close').click(function () {
			$("div.symptoms").hide();
		});
	}
});