function replaceSlash(charRep){
		M="\\";
		MM=M+M;
		for(x=0;x<FRIN.length;x++){FRIN[x] = FRIN[x].replace(charRep,MM); }
}
	

speed=200;
debug=false;
function iniFrames(noRows,sp,debug_val){
	debug=debug_val;
	speed=sp;
	FSIZE=0;FPOS=0;
	FRS = new Array();
	for(x=0;x<FRIN.length;x++){
	FRS[FSIZE] = "";
	if(debug)FRS[FSIZE]="Frame : " + FSIZE + "<BR>";
		for(y=1;y<noRows+1;y++){
			
			FRS[FSIZE] +=  FRIN[x];x++; 
			}
	FSIZE++;x--;
	}
	doAnimation();
	}




   function doAnimation(){
	document.getElementById("GAMET").innerHTML = "<PRE>" + FRS[FPOS] + "</pre>";
	FPOS ++
	//if(FPOS==FSIZE)return;
	FPOS = (FPOS==FSIZE)? 0 : FPOS;
	TO = setTimeout("doAnimation();",speed);

   }

