Just put an if conditional statement inside the for loop containing the helpover and helpout arrays like this:
for(var n=1;n<=7;n++)
{
ftover[n]=new Image();
ftout[n]=new Image();
ftover[n].src="images/nav01_0"+n+"r.gif";
ftout[n].src="images/nav01_0"+n+"n.gif";
if(n<7){
helpover[n]=new Image();
helpout[n]=new Image();
helpover[n].src="images/nav2_0"+n+"r.gif";
helpout[n].src="images/nav2_0"+n+"n.gif";
}
}
}
Also, doesn't creating an array(7) give you 0 - 6? If so, aren't you going past the end of both arrays? Sorry if I'm wrong here, I program in C++ for class a lot
