
var m0 = new Array(1)

m0[0] = new Array(54,38,12,20,53,37,3,39);
m0[0].base = new Array(0,1,2,3,0);
m0[0].root =0;
m0[0].move =0;
var n0 = new Array();
var b0 = -1;
var pieces = "KQNBR ";
function g0(a,b)
{	gm(m0,n0,0,b0,'foolsmateg0.htm',a,b);}
function MB50()
{b0=MB5(m0,n0,0,b0,'foolsmateg0.htm'); GMS(m0,n0,0,b0,'foolsmateg0.htm');}
function MB0()
{b0=MB(m0,n0,0,b0,'foolsmateg0.htm'); GMS(m0,n0,0,b0,'foolsmateg0.htm');}
function MF50()
{b0=MF5(m0,n0,0,b0,'foolsmateg0.htm'); GMS(m0,n0,0,b0,'foolsmateg0.htm');}
function MF0()
{b0=MF(m0,n0,0,b0,'foolsmateg0.htm',true); ifoolsmate0.value=GMS(m0,n0,0,b0,'foolsmateg0.htm');}

var m1 = new Array(1)

m1[0] = new Array(52,36,14,30,57,42,13,29,59,31);
m1[0].base = new Array(4,5,6,7,8,0);
m1[0].root =0;
m1[0].move =0;
var n1 = new Array();
var b1 = -1;
var pieces = "KQNBR ";
function g1(a,b)
{	gm(m1,n1,1,b1,'foolsmateg1.htm',a,b);}
function MB51()
{b1=MB5(m1,n1,1,b1,'foolsmateg1.htm'); GMS(m1,n1,1,b1,'foolsmateg1.htm');}
function MB1()
{b1=MB(m1,n1,1,b1,'foolsmateg1.htm'); GMS(m1,n1,1,b1,'foolsmateg1.htm');}
function MF51()
{b1=MF5(m1,n1,1,b1,'foolsmateg1.htm'); GMS(m1,n1,1,b1,'foolsmateg1.htm');}
function MF1()
{b1=MF(m1,n1,1,b1,'foolsmateg1.htm',true); ifoolsmate1.value=GMS(m1,n1,1,b1,'foolsmateg1.htm');}

var m2 = new Array(1)

m2[0] = new Array(52,36,12,28,53,37,5,26,37,28,3,39,60,52,39,36);
m2[0].base = new Array(9,10,11,12,13,14,15,16,0);
m2[0].root =0;
m2[0].move =0;
var n2 = new Array();
var b2 = -1;
var pieces = "KQNBR ";
function g2(a,b)
{	gm(m2,n2,2,b2,'foolsmateg2.htm',a,b);}
function MB52()
{b2=MB5(m2,n2,2,b2,'foolsmateg2.htm'); GMS(m2,n2,2,b2,'foolsmateg2.htm');}
function MB2()
{b2=MB(m2,n2,2,b2,'foolsmateg2.htm'); GMS(m2,n2,2,b2,'foolsmateg2.htm');}
function MF52()
{b2=MF5(m2,n2,2,b2,'foolsmateg2.htm'); GMS(m2,n2,2,b2,'foolsmateg2.htm');}
function MF2()
{b2=MF(m2,n2,2,b2,'foolsmateg2.htm',true); ifoolsmate2.value=GMS(m2,n2,2,b2,'foolsmateg2.htm');}

var m3 = new Array(1)

m3[0] = new Array(52,36,14,22,51,35,13,29,36,29,22,29,59,31);
m3[0].base = new Array(17,18,19,20,21,22,23,0);
m3[0].root =0;
m3[0].move =0;
var n3 = new Array();
var b3 = -1;
var pieces = "KQNBR ";
function g3(a,b)
{	gm(m3,n3,3,b3,'foolsmateg3.htm',a,b);}
function MB53()
{b3=MB5(m3,n3,3,b3,'foolsmateg3.htm'); GMS(m3,n3,3,b3,'foolsmateg3.htm');}
function MB3()
{b3=MB(m3,n3,3,b3,'foolsmateg3.htm'); GMS(m3,n3,3,b3,'foolsmateg3.htm');}
function MF53()
{b3=MF5(m3,n3,3,b3,'foolsmateg3.htm'); GMS(m3,n3,3,b3,'foolsmateg3.htm');}
function MF3()
{b3=MF(m3,n3,3,b3,'foolsmateg3.htm',true); ifoolsmate3.value=GMS(m3,n3,3,b3,'foolsmateg3.htm');}

var m4 = new Array(1)

m4[0] = new Array(52,36,6,21,36,28,21,27,51,35,13,29,28,21,93,93,14,21,59,31);
m4[0].base = new Array(24,25,26,27,28,29,30,30,31,32,0);
m4[0].root =0;
m4[0].move =0;
var n4 = new Array();
var b4 = -1;
var pieces = "KQNBR ";
function g4(a,b)
{	gm(m4,n4,4,b4,'foolsmateg4.htm',a,b);}
function MB54()
{b4=MB5(m4,n4,4,b4,'foolsmateg4.htm'); GMS(m4,n4,4,b4,'foolsmateg4.htm');}
function MB4()
{b4=MB(m4,n4,4,b4,'foolsmateg4.htm'); GMS(m4,n4,4,b4,'foolsmateg4.htm');}
function MF54()
{b4=MF5(m4,n4,4,b4,'foolsmateg4.htm'); GMS(m4,n4,4,b4,'foolsmateg4.htm');}
function MF4()
{b4=MF(m4,n4,4,b4,'foolsmateg4.htm',true); ifoolsmate4.value=GMS(m4,n4,4,b4,'foolsmateg4.htm');}

var m5 = new Array(1)

m5[0] = new Array(53,37,11,27,49,41,2,38,58,49,12,20,62,45,38,45,54,45,3,39);
m5[0].base = new Array(33,34,35,36,37,38,39,40,41,42,0);
m5[0].root =0;
m5[0].move =0;
var n5 = new Array();
var b5 = -1;
var pieces = "KQNBR ";
function g5(a,b)
{	gm(m5,n5,5,b5,'foolsmateg5.htm',a,b);}
function MB55()
{b5=MB5(m5,n5,5,b5,'foolsmateg5.htm'); GMS(m5,n5,5,b5,'foolsmateg5.htm');}
function MB5()
{b5=MB(m5,n5,5,b5,'foolsmateg5.htm'); GMS(m5,n5,5,b5,'foolsmateg5.htm');}
function MF55()
{b5=MF5(m5,n5,5,b5,'foolsmateg5.htm'); GMS(m5,n5,5,b5,'foolsmateg5.htm');}
function MF5()
{b5=MF(m5,n5,5,b5,'foolsmateg5.htm',true); ifoolsmate5.value=GMS(m5,n5,5,b5,'foolsmateg5.htm');}

var m6 = new Array(1)

m6[0] = new Array(52,36,12,28,61,34,1,18,62,45,13,21,45,39,14,30,59,31,4,12,39,29);
m6[0].base = new Array(43,44,45,46,47,48,49,50,51,52,53,0);
m6[0].root =0;
m6[0].move =0;
var n6 = new Array();
var b6 = -1;
var pieces = "KQNBR ";
function g6(a,b)
{	gm(m6,n6,6,b6,'foolsmateg6.htm',a,b);}
function MB56()
{b6=MB5(m6,n6,6,b6,'foolsmateg6.htm'); GMS(m6,n6,6,b6,'foolsmateg6.htm');}
function MB6()
{b6=MB(m6,n6,6,b6,'foolsmateg6.htm'); GMS(m6,n6,6,b6,'foolsmateg6.htm');}
function MF56()
{b6=MF5(m6,n6,6,b6,'foolsmateg6.htm'); GMS(m6,n6,6,b6,'foolsmateg6.htm');}
function MF6()
{b6=MF(m6,n6,6,b6,'foolsmateg6.htm',true); ifoolsmate6.value=GMS(m6,n6,6,b6,'foolsmateg6.htm');}

var m7 = new Array(1)

m7[0] = new Array(51,35,9,25,58,30,2,9,52,44,15,23,30,39,13,21,59,31,14,22,31,22);
m7[0].base = new Array(54,55,56,57,58,59,60,61,62,63,64,0);
m7[0].root =0;
m7[0].move =0;
var n7 = new Array();
var b7 = -1;
var pieces = "KQNBR ";
function g7(a,b)
{	gm(m7,n7,7,b7,'foolsmateg7.htm',a,b);}
function MB57()
{b7=MB5(m7,n7,7,b7,'foolsmateg7.htm'); GMS(m7,n7,7,b7,'foolsmateg7.htm');}
function MB7()
{b7=MB(m7,n7,7,b7,'foolsmateg7.htm'); GMS(m7,n7,7,b7,'foolsmateg7.htm');}
function MF57()
{b7=MF5(m7,n7,7,b7,'foolsmateg7.htm'); GMS(m7,n7,7,b7,'foolsmateg7.htm');}
function MF7()
{b7=MF(m7,n7,7,b7,'foolsmateg7.htm',true); ifoolsmate7.value=GMS(m7,n7,7,b7,'foolsmateg7.htm');}

var m8 = new Array(1)

m8[0] = new Array(53,37,12,28,37,28,11,19,28,19,5,19,57,42,3,39,54,46,39,46,55,46,19,46);
m8[0].base = new Array(65,66,67,68,69,70,71,72,73,74,75,76,0);
m8[0].root =0;
m8[0].move =0;
var n8 = new Array();
var b8 = -1;
var pieces = "KQNBR ";
function g8(a,b)
{	gm(m8,n8,8,b8,'foolsmateg8.htm',a,b);}
function MB58()
{b8=MB5(m8,n8,8,b8,'foolsmateg8.htm'); GMS(m8,n8,8,b8,'foolsmateg8.htm');}
function MB8()
{b8=MB(m8,n8,8,b8,'foolsmateg8.htm'); GMS(m8,n8,8,b8,'foolsmateg8.htm');}
function MF58()
{b8=MF5(m8,n8,8,b8,'foolsmateg8.htm'); GMS(m8,n8,8,b8,'foolsmateg8.htm');}
function MF8()
{b8=MF(m8,n8,8,b8,'foolsmateg8.htm',true); ifoolsmate8.value=GMS(m8,n8,8,b8,'foolsmateg8.htm');}

var m9 = new Array(1)

m9[0] = new Array(51,35,13,29,58,30,15,23,30,39,14,30,39,46,29,37,52,44,37,46,59,31);
m9[0].base = new Array(77,78,79,80,81,82,83,84,85,86,87,0);
m9[0].root =0;
m9[0].move =0;
var n9 = new Array();
var b9 = -1;
var pieces = "KQNBR ";
function g9(a,b)
{	gm(m9,n9,9,b9,'foolsmateg9.htm',a,b);}
function MB59()
{b9=MB5(m9,n9,9,b9,'foolsmateg9.htm'); GMS(m9,n9,9,b9,'foolsmateg9.htm');}
function MB9()
{b9=MB(m9,n9,9,b9,'foolsmateg9.htm'); GMS(m9,n9,9,b9,'foolsmateg9.htm');}
function MF59()
{b9=MF5(m9,n9,9,b9,'foolsmateg9.htm'); GMS(m9,n9,9,b9,'foolsmateg9.htm');}
function MF9()
{b9=MF(m9,n9,9,b9,'foolsmateg9.htm',true); ifoolsmate9.value=GMS(m9,n9,9,b9,'foolsmateg9.htm');}

var m10 = new Array(1)

m10[1] = new Array(22,31,27,13,14,22,46,28,2,29,28,29,31,39,62,45);
m10[1].base = new Array(104,105,106,107,108,109,110,111,0);
m10[1].root =0;
m10[1].move =15;
m10[2] = new Array(38,20);
m10[2].base = new Array(115,0);
m10[2].root =0;
m10[2].move =18;
m10[0] = new Array(52,36,12,28,51,35,13,21,35,28,21,28,59,31,4,12,31,28,12,13,61,34,11,27,34,27,13,22,28,46,2,38,46,38,22,21,38,30);
m10[0].base = new Array(88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,112,113,114,0);
m10[0].root =0;
m10[0].move =0;
var n10 = new Array();
var b10 = -1;
var pieces = "KQNBR ";
function g10(a,b)
{	gm(m10,n10,10,b10,'foolsmateg10.htm',a,b);}
function MB510()
{b10=MB5(m10,n10,10,b10,'foolsmateg10.htm'); GMS(m10,n10,10,b10,'foolsmateg10.htm');}
function MB10()
{b10=MB(m10,n10,10,b10,'foolsmateg10.htm'); GMS(m10,n10,10,b10,'foolsmateg10.htm');}
function MF510()
{b10=MF5(m10,n10,10,b10,'foolsmateg10.htm'); GMS(m10,n10,10,b10,'foolsmateg10.htm');}
function MF10()
{b10=MF(m10,n10,10,b10,'foolsmateg10.htm',true); ifoolsmate10.value=GMS(m10,n10,10,b10,'foolsmateg10.htm');}

var m11 = new Array(1)

m11[1] = new Array(11,19,39,30,23,14,29,13);
m11[1].base = new Array(134,135,136,137,0);
m11[1].root =0;
m11[1].move =17;
m11[0] = new Array(52,36,12,28,53,37,13,21,37,28,21,28,59,31,4,12,31,28,12,13,61,34,13,22,28,29,22,23,51,35,14,30,55,39,23,14,29,13,14,23,39,30);
m11[0].base = new Array(116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,138,139,140,0);
m11[0].root =0;
m11[0].move =0;
var n11 = new Array();
var b11 = -1;
var pieces = "KQNBR ";
function g11(a,b)
{	gm(m11,n11,11,b11,'foolsmateg11.htm',a,b);}
function MB511()
{b11=MB5(m11,n11,11,b11,'foolsmateg11.htm'); GMS(m11,n11,11,b11,'foolsmateg11.htm');}
function MB11()
{b11=MB(m11,n11,11,b11,'foolsmateg11.htm'); GMS(m11,n11,11,b11,'foolsmateg11.htm');}
function MF511()
{b11=MF5(m11,n11,11,b11,'foolsmateg11.htm'); GMS(m11,n11,11,b11,'foolsmateg11.htm');}
function MF11()
{b11=MF(m11,n11,11,b11,'foolsmateg11.htm',true); ifoolsmate11.value=GMS(m11,n11,11,b11,'foolsmateg11.htm');}
var nAnimate = new Array(1,1,1,1,1,1,1,1,1,1,1,1);
var nMoves = new Array(0,0,0,0,0,0,0,0,0,0,0,0);
var nLevels = new Array(0,0,0,0,0,0,0,0,0,0,0,0);
var nNameCount = new Array(0,0,0,0,0,0,0,0,0,0,0,0);
var nOld = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
baseName = 'foolsmate';
var EmptyWhitePath = "gif/w.gif";
var EmptyBlackPath = "gif/b.gif";
