﻿var calloutText = {
	checkLoc: null,
	ecksLoc: null,
	twoYearLoc: null,
	threeYearLoc: null,
	// Met AYP
	'1': function() { return 'The "<img alt="" src="' + calloutText.checkLoc + '" />" indicates that the AYP target was met for the subgroup, school or district.'; },
	// CI
	'2': function() { return 'Confidence intervals take into account the fact that the students tested in any particular year might not be representative of students in that school across the years. Confidence intervals control for this sampling error or variation across years by promoting schools or subgroups that come very close to achieving their performance goals, thus meeting their specific goal. In 2004, the United States Department of Education approved a 95% Confidence Interval (C.I.) in Pennsylvania for AYP performance calculations.' },
	// SH
	'3': function() { return 'Schools or subgroups that do not achieve Performance thresholds can still meet AYP by meeting the Safe Harbor requirements. To make Safe Harbor, a school or subgroup must reduce its percentage of students who performed below proficient in the previous year by at least 10%.'; },
	// SH w/ CI
	'4': function() { return 'Confidence intervals take into account the fact that the students tested in any particular year might not be representative of students in that school across the years. Confidence intervals control for this sampling error or variation across years by promoting schools or subgroups that come very close to achieving their performance goals, thus meeting their specific goal. In 2004, the United States Department of Education approved a 95% Confidence Interval (C.I.) in Pennsylvania for AYP performance calculations. A 75% C.I. can be used for meeting the Safe Harbor target.'; },
	// GM
	'5': function() { return 'The Growth Model recognizes the efforts of schools whose students have not achieved proficiency but are on trajectories towards proficiency on future PSSA exams. The Growth Model will be calculated for Performance Indicators (i.e., the all student group and up to nine subgroups). Projected scores are <em>calculated</em> for all students - including students who are proficient. If a projected score cannot be calculated for a particular student, the student’s actual score is used. The Growth Model will be <em>applied</em> to an AYP Performance Indicator <strong><em><u>only</u></em></strong> if the indicator cohort has not met AYP performance by any of the existing goals or targets. Actual, not projected, PASA scores, PSSA-M scores, 3rd grade scores, and 11th grade scores are always used, as well as the scores for any students with insufficient data points to make a projection. '; },
	// PPI (unused after 2009)
	'6': function() { return 'Schools or subgroups that do not achieve the Performance thresholds or make Safe Harbor can still meet AYP by demonstrating significant growth through the use of the Pennsylvania Performance Index (PPI).  PPI measures growth across all levels of the PSSA, not just from Basic to Proficient, and starts each school and subgroup at its own baseline. Since this index shows significant growth including growth at the lowest levels, it is a good indication that low performing schools are building a foundation to meet AYP objectives.' },
	// Appeal
	'7': function() { return 'NCLB allows districts/schools the opportunity to appeal the AYP rulings through the Pennsylvania Department of Education if they believe their AYP identification was in error for statistical or other substantive reasons.'; },
	// Proxy (unused after 2010)
	'8': function() { return 'If a district/school fails to make AYP based solely on the performance of its IEP subgroup, <span style="background-color: #ffff00">13%</span> can be added to the IEP subgroup’s percentage of Advanced and Proficient.  If the addition of the proxy percentage allows the IEP subgroup to meet the performance threshold; then, the school would make AYP.  This was done as a proxy for students who will be eligible to take a new modified assessment.'; },
	// Did not meet AYP
	'9': function() { return 'The "<img alt="" src="' + calloutText.ecksLoc + '" />" indicates that the AYP target was not met for the subgroup, school or district with any provision or by any of the calculations performed.' },
	// < 40 students
	'20': function() { return 'Results for subgroups are used only when there are 40 or more students in the group (although a school with fewer than 40 students is still accountable at the overall level). A " <span class="no_data">–</span> " indicates that a subgroup had fewer than 40 students; therefore, this subgroup is not counted when determining AYP.'; },
	// 2 years
	'21': function() { return 'In Pennsylvania a school or district can make AYP by using two or three consecutive years of data if the result is better than a single current year calculation. A " <img alt="" src="' + calloutText.twoYearLoc + '" /> " indicates that two years of data was used.'; },
	// 3 years
	'22': function() { return 'In Pennsylvania a school or district can make AYP by using two or three consecutive years of data if the result is better than a single current year calculation.  A " <img alt="" src="' + calloutText.threeYearLoc + '" /> " indicates that three years of data was used.'; }
};

$(function() {
	$.extend(calloutText, calloutImageLocs);
	$('div[id^=calloutText]').each(function() {
		var num = $(this).attr('id').replace('calloutText', '');
		if (calloutText[num]) {
			$(this).html(calloutText[num]());
		}
	});
})
