var currentPosition				= 0;
var MAX							= 9;	
BatteryArray 					= new Array();
BatteryArray[0]					= "BatteryMain.htm";
BatteryArray[1]					= "1.htm";
BatteryArray[2]					= "2.htm";
BatteryArray[3]					= "3.htm";
BatteryArray[4]					= "4.htm";
BatteryArray[5]					= "5.htm";
BatteryArray[6]					= "NoStart.htm";
BatteryArray[7]					= "CarStarts.htm";
BatteryArray[8]					= "Congrats.htm";

function CallLast(){
	if(currentPosition==0){
		top.close()
	}
	else{
		currentPosition--;
		top.BatteryMain.location 		= BatteryArray[currentPosition];
	}	
}

function CallNext(){
	if (currentPosition!=MAX){
		currentPosition++;
		top.BatteryMain.location 		= BatteryArray[currentPosition];
	}	
	if(currentPosition==MAX){
		top.close();
	}		
}

function SetPosition(strThisPosition){
	var thisPosition 					= parseInt(strThisPosition);
	parent.BatteryNav.currentPosition 	= thisPosition;
}
