var currentFAQ = "1";

var faqOn = new Array();
var faqOff = new Array();
for(var z = 0 ; z <= 9 ; z++){
	faqOn[z] = new Image();
	faqOff[z] = new Image();
	faqOn[z].src = root + "images/faq/faq-0" + z + "On.gif";
	faqOff[z].src = root + "images/faq/faq-0" + z + "Off.gif";
}
for(var z = 10 ; z <= 23 ; z++){
	faqOn[z] = new Image();
	faqOff[z] = new Image();
	faqOn[z].src = root + "images/faq/faq-" + z + "On.gif";
	faqOff[z].src = root + "images/faq/faq-" + z + "Off.gif";
}

var textstring1 = '<table cellpadding="0" cellspacing="0" border="0"><tr><td colspan="6"><img src="../images/faq/faq-answer-top.gif" border="0"></td></tr><tr><td width="1" bgcolor="#82BAE5"><img src="../images/global/spacer.gif" border="0"></td><td width="14" valign="top" bgcolor="#FFFFFF"><img src="../images/faq/faq-answer-left.gif" border="0"></td><td width="195" valign="top" class="bodytext" bgcolor="#FFFFFF"><img src="../images/faq/faq-answer-right.gif" border="0" align="left" hspace="0"><span style="line-height:18px;">';
var textstring2 = '</span></td><td width="14" bgcolor="#FFFFFF"><img src="../images/global/spacer.gif" border="0" width="14" height="1"></td><td width="1" bgcolor="#82BAE5"><img src="../images/global/spacer.gif" border="0"></td></tr><tr><td colspan="6"><img src="../images/faq/faq-answer-bottom.gif" border="0"></td></tr></table>';

var faqtext = new Array();
if(language == "Canada"){
	faqtext[1] = 'Kumon is an after-school math and reading program that employs a unique learning method designed to help each child develop the skills needed to perform to his or her full potential. It is also the largest and most established program of its kind in the world.';
	faqtext[2] = 'Children may enroll as early as preschool, and Kumon is attended by students throughout primary and secondary school. It’s always preferable to start young and begin developing skills early to get the greatest cumulative benefit.';
	faqtext[3] = 'Kumon can help children who may be struggling and need to catch up, as well as those who are seeking enrichment. Our goal is for all students to begin studying above their school grade, and to always have opportunities to reach their full potential.';
	faqtext[4] = 'Schools must cover material according to age or grade, and classes must advance as a group. Needless to say, not all children grasp all concepts at the same pace. Kumon allows the individual needs and abilities of each child to govern his or her own progress. That’s why Kumon students can perform at 100% of their potential.';
	faqtext[5] = 'Some children progress very rapidly; others take longer. We view education as an ongoing process, and Kumon is not meant to be a "quick-fix" solution. We encourage parents to keep their children enrolled for at least six months to a year before judging the effectiveness of the program. Many children stay with Kumon for years thereafter.';
	faqtext[6] = 'The Kumon Method facilitates self-acquisition of the skills and study habits needed to improve academic performance. This empowers children to succeed on their own, giving them a sense of accomplishment that fosters further achievement. A child who develops learning tools in this way may never have to rely on costly tutoring.';
	faqtext[7] = 'Most students attend Kumon twice a week year-round and do brief daily assignments the other five days. Kumon sessions and assignments can usually be completed in less than twenty minutes, for math or reading. Parental involvement is strongly encouraged and recommended for optimal results.';
	faqtext[8] = 'Kumon specializes in nurturing skills that improve all aspects of academic performance, including test-taking. Through daily timed assignments, students become thoroughly accustomed to working under test-taking conditions, developing key time management and problem-solving skills. Few students are as well prepared for standardized tests as long-term Kumon students.';
	faqtext[9] = 'Kumon has chosen to devote most of its resources to developing rather than promoting its programs. While Kumon has grown steadily in North America since the early 1980s, it has been mainly through word of mouth referrals from satisfied parents.';
	faqtext[10] = 'It’s easy. Just call our 1-800 number or visit our web site for more information and to find a Kumon Centre near you. We’ll direct you to an Instructor who will be happy to speak with you about how Kumon can address your child’s particular needs and conduct a free placement test. Students may enroll at any time throughout the year, even summer.';
}else{
	faqtext[1] = 'Kumon is an after-school math and reading program that employs a unique learning method designed to help each child develop the skills needed to perform to his or her full potential. It is also the largest and most established program of its kind in the world.';
	faqtext[2] = 'Children may enroll as early as preschool, and Kumon is attended by students throughout primary and secondary school. It’s always preferable to start young and begin developing skills early to get the greatest cumulative benefit. ';
	faqtext[3] = 'Kumon can help children who may be struggling and need to catch up, as well as those who are seeking enrichment. Our ultimate goal is for all students to study above their school grade, and to always have opportunities to reach their full potential.';
	faqtext[4] = 'Schools must cover material according to age or grade, and classes must advance as a group. Needless to say, not all children grasp all concepts at the same pace. Kumon allows the individual needs and abilities of each child to govern his or her own progress. That’s why Kumon students can perform at 100% of their potential.';
	faqtext[5] = 'Some children progress very rapidly; others take longer. We view education as an ongoing process, and Kumon is not meant to be a "quick-fix" solution. We encourage parents to keep their children enrolled for at least six months to a year before judging the effectiveness of the program. Many children stay with Kumon for years thereafter.';
	faqtext[6] = 'The Kumon Method facilitates self-acquisition of the skills and study habits needed to improve academic performance. This empowers children to succeed on their own, giving them a sense of accomplishment that fosters further achievement. A child who develops learning tools in this way may never have to rely on costly tutoring.';
	faqtext[7] = 'Most students attend Kumon twice a week year-round and do brief daily assignments the other five days. Kumon sessions and assignments can usually be completed in less than twenty minutes, for math or reading. Parental involvement is strongly encouraged and recommended for optimal results.';
	faqtext[8] = 'Kumon specializes in nurturing skills that improve all aspects of academic performance, including test-taking. Through daily timed assignments, students become thoroughly accustomed to working under test-taking conditions, developing key time management and problem-solving skills. Few students are as well prepared for major standardized exams like the SAT as long-term Kumon students.';
	faqtext[9] = 'Kumon has chosen to devote most of its resources to developing rather than promoting its programs. While Kumon has grown steadily in North America—largely by word-of-mouth—it has been a household name primarily in the Asian-American community.';
	faqtext[10] = 'It\'s easy. Just go to our Getting Started Page and begin by finding the Kumon Center nearest you. We\'ll direct you to an Instructor who will be happy to speak with you about how Kumon can address your child\'s particular needs and conduct a free placement test. Students may enroll at any time throughout the year, even summer.';
}

function rollOnFAQ(sIndex){
	document.images["faq"+sIndex].src = faqOn[sIndex].src;
}

function rollOffFAQ(sIndex){
	if(sIndex == currentFAQ){
		document.images["faq"+sIndex].src = faqOn[sIndex].src;
	}else{
		document.images["faq"+sIndex].src = faqOff[sIndex].src;
	}
}

function highlightFAQ(sIndex){
	document.images["faq"+currentFAQ].src = faqOff[currentFAQ].src;
	currentFAQ = sIndex;
	rollOnFAQ(currentFAQ);
	
	if(sIndex < 5){
		document.getElementById("faqlayer").style.top = 270;
	}else if(sIndex >= 5 && sIndex < 9){
		document.getElementById("faqlayer").style.top = 380;
	}else{
		document.getElementById("faqlayer").style.top = 415;
	}
	
	// fix for Mac IE
	if((navigator.platform.toLowerCase().indexOf("mac") != -1) && (navigator.appVersion.indexOf("MSIE") != -1)){
		if(sIndex < 5){
		document.getElementById("faqlayer").style.top = 177;
		}else if(sIndex >= 5 && sIndex < 9){
			document.getElementById("faqlayer").style.top = 287;
		}else{
			document.getElementById("faqlayer").style.top = 407;
		}
	}
	// end fix for Mac IE
	
	var sHTML = textstring1 + faqtext[sIndex] + textstring2;

	document.getElementById("faqlayer").innerHTML = sHTML;
}
