var symptom_assess_init = function()
{
	$("a.symp_assess_launch").click(launch_assessor);
        
}
                
var launch_assessor = function(event)
{
    switch(this.id)
    {
        case "symptom_assessor_ra":
            file_path = SITEROOT + "/symptom-assessors/rheumatoid-arthritis/";
            mainSymptomAssessorTrack('launch', '', 'ra');
            break;
        case "symptom_assessor_psa":
            file_path = SITEROOT + "/symptom-assessors/psoriatic-arthritis/";
            mainSymptomAssessorTrack('launch', '', 'psa');
            break;
        case "symptom_assessor_pso":
            file_path = SITEROOT + "/symptom-assessors/psoriasis/";
            mecTrack('deienb_NEWEnbrelSymptomProfile_6');
            mainSymptomAssessorTrack('launch', '', 'pso');
            break;        
        default:
            file_path = "";
    }
    
    if (!(newWin)) {
        var newWin = window.open(file_path + "main.html","assessor_window","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600");
        newWin.moveTo((screen.availWidth - 800) / 2, (screen.availHeight - 600) / 2);
    }
}

jQuery().ready(symptom_assess_init);