﻿// Symptoms div popups (ensure the ISI is not covered when pop-ups appear)

function symptomscopy2() {

	/* Change the style of the symptoms link */
	$("a.symptomscopy2").css({'border-bottom' : '1px dashed #d23a85', 'text-decoration' : 'none'});
	
	
	/* Add the symptoms div */
	$('div#seroquel-xr').before('\
	   <div class="symptomscopy2 symptomscopy3 clinical"><div><div>\
	        <img class="close" src="/images/icon/close.png" />\
	        <p>SEROQUEL XR was studied in more than 900 patients with depression. The patients in those studies had been on an antidepressant for at least 6 weeks but were still experiencing symptoms of depression.* Those antidepressants included:</p>\
	        <ul style="float:left">\
	            <li>Cymbalta<sup>&reg;</sup> (duloxetine) </li>\
	            <li>Effexor<sup>&reg;</sup> (venlafaxine) </li>\
	            <li>Paxil<sup>&reg;</sup> (paroxetine) </li>\
	            <li>Prozac<sup>&reg;</sup> (fluoxetine) </li>\
	        </ul>\
	        <ul style="float: left; margin-left:25px">\
	            <li>Zoloft<sup>&reg;</sup> (sertraline) </li>\
	            <li>Lexapro<sup>&reg;</sup> (escitalopram) </li>\
	            <li>Celexa<sup>&reg;</sup> (citalopram) </li>\
	            <li>Wellbutrin<sup>&reg;</sup> (bupropion) </li>\
	        </ul>\
	        <ul style="float: left; margin-left:50px">\
	            <li>Amitriptyline </li>\
	        </ul>\
	        <p style="clear:both;"><br />Patients may have received generic versions of these products.</p>\
	        <p>All patients continued to take their antidepressant. Some of the patients were given a sugar pill (placebo) to add to their antidepressant, and the other patients were given SEROQUEL XR to add to their antidepressant.</p>\
	        <p>The results of the studies showed that many patients taking SEROQUEL XR with an antidepressant had greater improvement in their depressive symptoms* than patients taking a sugar pill with an antidepressant. </p>\
	        <br><p style="padding-right: 0.25em; font-size: 0.85em;">*The test that was used is called the MADRS, which is a standard rating scale that measures a patient\'s level of depression.</p>\
	        <p style="padding-right: 0.25em; font-size: 0.85em;">Trademarks listed are owned by their respective companies.</p>\
	   </div></div></div>\
	');
	
}


$(document).ready(function() {
	if($('a.symptomscopy2')) {
		symptomscopy2();
		$('a.symptomscopy2').click(function (e) {
			$("div.symptomscopy2").hide();
			var symptomsclinicalClass = $(this).attr("class").split(' '); /* get class of clicked link */
			var divSymptomsclinical = "div."+symptomsclinicalClass[0]+"."+symptomsclinicalClass[1]; /* open correct layer box */
			var divCenter = $(divSymptomsclinical).width() / 3; /* find center of layer box */
			$(divSymptomsclinical).css({'left' : '300px', 'top' : e.pageY}); /* off-set left position to center layer box */
			$(divSymptomsclinical).show();
			return false;
		});
		$('img.close').click(function () {
			$("div.symptomscopy2").hide();
		});
	}
});




