var method1On = new Image();
var method1Off = new Image();
var method1Arrow = new Image();
var method2On = new Image();
var method2Off = new Image();
var method2Arrow = new Image();
var method3On = new Image();
var method3Off = new Image();
var method3Arrow = new Image();
var method4On = new Image();
var method4Off = new Image();
var method4Arrow = new Image();
var method5On = new Image();
var method5Off = new Image();
var method5Arrow = new Image();

method1On.src = root + "images/method/main/main-step1On.gif";
method1Off.src = root + "images/method/main/main-step1Off.gif";
method1Arrow.src = root + "images/method/main/main-step1Arrow.gif";
method2On.src = root + "images/method/main/main-step2On.gif";
method2Off.src = root + "images/method/main/main-step2Off.gif";
method2Arrow.src = root + "images/method/main/main-step2Arrow.gif";
method3On.src = root + "images/method/main/main-step3On.gif";
method3Off.src = root + "images/method/main/main-step3Off.gif";
method3Arrow.src = root + "images/method/main/main-step3Arrow.gif";
method4On.src = root + "images/method/main/main-step4On.gif";
method4Off.src = root + "images/method/main/main-step4Off.gif";
method4Arrow.src = root + "images/method/main/main-step4Arrow.gif";
method5On.src = root + "images/method/main/main-step5On.gif";
method5Off.src = root + "images/method/main/main-step5Off.gif";
method5Arrow.src = root + "images/method/main/main-step5Arrow.gif";

var iconstep1 = new Image();
var iconstep2 = new Image();
var iconstep3 = new Image();
var iconstep4 = new Image();
var iconstep5 = new Image();

iconstep1.src = root + "images/method/main/main-icon-step1.gif";
iconstep2.src = root + "images/method/main/main-icon-step2.gif";
iconstep3.src = root + "images/method/main/main-icon-step3.gif";
iconstep4.src = root + "images/method/main/main-icon-step4.gif";
iconstep5.src = root + "images/method/main/main-icon-step5.gif";

// Defines first arrow
var isArrow = "1";

var methodtext = new Array();
methodtext[0] = "";
methodtext[1] = "Students begin at a comfortable starting point—determined by our placement test—with work that can be easily completed. This way your child will master the basics and gain complete proficiency with each successive step. Kumon students develop better concentration and study habits because they don't get frustrated by our learning process.";
methodtext[2] = "Kumon uses neither a classroom nor a tutoring model, but rather a guided \"self-motivated-learning\" approach. Worksheets assigned by the Instructor provide an example illustrating the concept to be learned. Then a simple exercise modeled after the example is given. Each new assignment is slightly more challenging than the last. The progression is so gradual that students are able to acquire the skills to advance independently.";
methodtext[3] = "Before your child can advance from one assignment to the next, the material should be completed with a perfect score within a prescribed period of time. All work is graded and the results recorded to determine when your child has a total command of the material and is ready to move on.";
if(language == "Canada"){
	methodtext[4] = "Worksheets are assigned daily, even though most children attend the centre just twice a week. An assignment that takes too long or is completed with too many errors is repeated until mastered. That’s how the Kumon Method ensures optimal comprehension and retention of concepts, establishing the strongest possible foundation for more advanced material.";
}else{
	methodtext[4] = "Worksheets are assigned daily, even though most children attend the center just twice a week. An assignment that takes too long or is completed with too many errors is repeated until mastered. That’s how the Kumon Method ensures optimal comprehension and retention of concepts, establishing the strongest possible foundation for more advanced material.";
}
methodtext[5] = "The Kumon Method allows your child to advance steadily at a comfortable pace dictated only by his or her ability and initiative. Your child’s individualized program is never compromised by the needs of a group or a prescribed teaching agenda. The first priority of the Kumon Instructor is to enable each and every child to perform and progress to his or her full potential-including advanced study whenever possible.";

function rollOffArrow(sImageName){
	if(sImageName.charAt(6) == isArrow){
		//document.images[sImageName].src = eval(sImageName+"Arrow").src;
	}else{
		rollOff(sImageName);
	}
}

function highlightMethod(sImageName){
	rollOff("method"+isArrow);
	isArrow = sImageName.charAt(6);
	rollOn("method"+isArrow);
	
	document.images["iconstep"].src = eval("iconstep"+isArrow).src;
	document.getElementById("methodlayer").innerHTML = methodtext[isArrow];
}
