
var m0 = new Array(1)

m0[1] = new Array(9,25);
m0[1].base = new Array(12,0);
m0[1].root =0;
m0[1].move =12;
m0[2] = new Array(1,18);
m0[2].base = new Array(13,0);
m0[2].root =0;
m0[2].move =12;
m0[3] = new Array(5,26,59,3,4,3,45,28,3,12,57,51);
m0[3].base = new Array(16,17,18,19,20,21,0);
m0[3].root =0;
m0[3].move =14;
m0[4] = new Array(4,6,71,5,57,42,0,8,42,32);
m0[4].base = new Array(28,28,29,30,31,0);
m0[4].root =0;
m0[4].move =20;
m0[6] = new Array(2,9,58,44);
m0[6].base = new Array(39,40,0);
m0[6].root =5;
m0[6].move =2;
m0[5] = new Array(26,19,59,19,4,12,19,59);
m0[5].base = new Array(36,37,38,41,0);
m0[5].root =0;
m0[5].move =24;
m0[8] = new Array(26,17,51,33);
m0[8].base = new Array(49,50,0);
m0[8].root =7;
m0[8].move =1;
m0[9] = new Array(13,29,36,26,11,26,51,24,10,11,24,33);
m0[9].base = new Array(51,52,53,54,55,56,0);
m0[9].root =7;
m0[9].move =1;
m0[7] = new Array(58,51,2,9,51,24,10,2,59,11,12,11,36,26,2,26,54,9);
m0[7].base = new Array(47,48,57,58,59,60,61,62,63,0);
m0[7].root =0;
m0[7].move =29;
m0[0] = new Array(51,35,11,27,50,34,12,20,62,45,6,21,54,46,27,34,61,54,8,16,60,62,127,61,10,26,35,26,3,59,61,59,5,26,45,28,1,11,28,34,0,8,57,42,9,25,34,19,4,12,42,36,21,36,19,36,8,10,58,51);
m0[0].base = new Array(0,1,2,3,4,5,6,7,8,9,10,10,11,14,15,22,23,24,25,26,27,32,33,34,35,42,43,44,45,46,0);
m0[0].root =0;
m0[0].move =0;
var n0 = new Array();
var b0 = -1;
var pieces = "KQNBR ";
var pos_after = "Position after ";
var start_pos = "Startposition ";
function g0(a,b)
{	gm(m0,n0,0,b0,'catalan_bishopg0.htm',a,b);}
function MB_50()
{b0=MB_5(m0,n0,0,b0,'catalan_bishopg0.htm'); GMS(m0,n0,0,b0,'catalan_bishopg0.htm');}
function MB0()
{b0=MB(m0,n0,0,b0,'catalan_bishopg0.htm'); GMS(m0,n0,0,b0,'catalan_bishopg0.htm');}
function MF_50()
{b0=MF_5(m0,n0,0,b0,'catalan_bishopg0.htm'); GMS(m0,n0,0,b0,'catalan_bishopg0.htm');}
function MF0(bVarWin)
{b0=MF(m0,n0,0,b0,'catalan_bishopg0.htm',bVarWin); GMS(m0,n0,0,b0,'catalan_bishopg0.htm');}

var m1 = new Array(1)

m1[2] = new Array(61,59);
m1[2].base = new Array(84,0);
m1[2].root =1;
m1[2].move =3;
m1[3] = new Array(57,42);
m1[3].base = new Array(85,0);
m1[3].root =1;
m1[3].move =3;
m1[1] = new Array(8,16,34,50,10,26,57,51,26,35,45,35,12,26,51,41,26,17,58,51);
m1[1].base = new Array(80,81,82,83,86,87,88,89,90,91,0);
m1[1].root =0;
m1[1].move =17;
m1[4] = new Array(8,16,34,50,0,8,57,42,9,25,48,32,25,33,45,28);
m1[4].base = new Array(94,95,96,97,98,99,100,101,0);
m1[4].root =0;
m1[4].move =19;
m1[5] = new Array(45,35,5,3);
m1[5].base = new Array(107,108,0);
m1[5].root =0;
m1[5].move =24;
m1[0] = new Array(50,34,12,20,54,46,11,27,61,54,6,21,62,45,5,12,60,62,127,61,4,6,71,5,51,35,1,11,59,50,27,34,50,34,10,26,61,59,3,17,57,42,17,33,34,43,26,35,43,35,33,35,45,35,11,26,58,37,21,4,56,58,14,30,37,44,26,16,35,25,16,26,49,33,8,16,25,8,0,8,33,26,8,0,58,57,0,1,42,36,4,10,44,30,12,30,36,30,13,29,30,45,10,27,57,49,2,11,45,28,11,32,59,35,32,18,54,27,20,27,49,17,5,4,53,37,16,24,62,53,1,2,35,43,4,12,28,18,9,18,43,44);
m1[0].base = new Array(64,65,66,67,68,69,70,71,72,72,73,73,74,75,76,77,78,79,92,93,102,103,104,105,106,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,0);
m1[0].root =0;
m1[0].move =0;
var n1 = new Array();
var b1 = -1;
function g1(a,b)
{	gm(m1,n1,1,b1,'catalan_bishopg1.htm',a,b);}
function MB_51()
{b1=MB_5(m1,n1,1,b1,'catalan_bishopg1.htm'); GMS(m1,n1,1,b1,'catalan_bishopg1.htm');}
function MB1()
{b1=MB(m1,n1,1,b1,'catalan_bishopg1.htm'); GMS(m1,n1,1,b1,'catalan_bishopg1.htm');}
function MF_51()
{b1=MF_5(m1,n1,1,b1,'catalan_bishopg1.htm'); GMS(m1,n1,1,b1,'catalan_bishopg1.htm');}
function MF1(bVarWin)
{b1=MF(m1,n1,1,b1,'catalan_bishopg1.htm',bVarWin); GMS(m1,n1,1,b1,'catalan_bishopg1.htm');}

var m2 = new Array(1)

m2[1] = new Array(9,17,61,54,2,9,60,62,127,61,1,11,58,51,5,12,61,58,10,26,51,37,4,6,71,5,37,19);
m2[1].base = new Array(171,172,173,174,174,175,176,177,178,179,180,181,181,182,0);
m2[1].root =0;
m2[1].move =15;
m2[2] = new Array(45,51);
m2[2].base = new Array(186,0);
m2[2].root =0;
m2[2].move =18;
m2[4] = new Array(45,28,1,18,28,11,21,11);
m2[4].base = new Array(190,191,192,193,0);
m2[4].root =3;
m2[4].move =1;
m2[3] = new Array(2,11,61,54,11,18);
m2[3].base = new Array(188,189,194,0);
m2[3].root =0;
m2[3].move =19;
m2[0] = new Array(51,35,11,27,50,34,12,20,62,45,6,21,54,46,27,34,59,32,3,11,32,34,11,18,57,51,18,34,51,34,5,33,58,51,33,51,34,51,1,18,61,54,2,11,60,62,127,61,4,2,64,3,56,58,7,4,51,34,4,12,48,40,11,4,61,59,21,27,49,33,27,17,33,25,18,1,34,17,8,17,40,32,13,21,54,47,4,11,45,51,3,5,47,54,10,18,51,34,2,10,52,36,18,25,32,25,11,25,35,27,20,27,34,40,25,18,36,27,12,11,40,25,10,3,27,18,9,18,25,35);
m2[0].base = new Array(155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,183,184,185,187,195,196,197,197,198,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,0);
m2[0].root =0;
m2[0].move =0;
var n2 = new Array();
var b2 = -1;
function g2(a,b)
{	gm(m2,n2,2,b2,'catalan_bishopg2.htm',a,b);}
function MB_52()
{b2=MB_5(m2,n2,2,b2,'catalan_bishopg2.htm'); GMS(m2,n2,2,b2,'catalan_bishopg2.htm');}
function MB2()
{b2=MB(m2,n2,2,b2,'catalan_bishopg2.htm'); GMS(m2,n2,2,b2,'catalan_bishopg2.htm');}
function MF_52()
{b2=MF_5(m2,n2,2,b2,'catalan_bishopg2.htm'); GMS(m2,n2,2,b2,'catalan_bishopg2.htm');}
function MF2(bVarWin)
{b2=MF(m2,n2,2,b2,'catalan_bishopg2.htm',bVarWin); GMS(m2,n2,2,b2,'catalan_bishopg2.htm');}

var m3 = new Array(1)

m3[2] = new Array(0,1,51,43,9,25,58,37,1,17,48,32,25,33,42,59,21,27,37,51,12,21,59,44,2,16,56,57,27,42,49,42,33,42,41,50,42,51,45,51);
m3[2].base = new Array(257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,0);
m3[2].root =1;
m3[2].move =9;
m3[1] = new Array(32,34,10,26,34,41,5,12,57,42,4,6,71,5,60,62,127,61,8,16,48,32,11,1,45,28,3,10,28,34,1,18,41,17,10,11,54,18,11,18,17,18,9,18,51,43,21,27,58,51);
m3[1].base = new Array(249,250,251,252,253,254,254,255,255,256,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,0);
m3[1].root =0;
m3[1].move =11;
m3[3] = new Array(45,35,11,28,35,18,28,34,18,3,21,27,57,42,4,3,42,27,2,9,27,42,9,54,62,54,34,28,49,41,28,18);
m3[3].base = new Array(296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,0);
m3[3].root =0;
m3[3].move =15;
m3[4] = new Array(49,33,2,9,33,25,5,12,58,49,4,6,71,5,48,32);
m3[4].base = new Array(312,313,314,315,316,317,317,318,0);
m3[4].root =0;
m3[4].move =15;
m3[5] = new Array(8,16);
m3[5].base = new Array(322,0);
m3[5].root =0;
m3[5].move =18;
m3[6] = new Array(26,12);
m3[6].base = new Array(329,0);
m3[6].root =0;
m3[6].move =24;
m3[7] = new Array(4,6,71,5,58,30,26,12,45,28,9,54,62,54,15,23,42,36);
m3[7].base = new Array(330,330,331,332,333,334,335,336,337,0);
m3[7].root =0;
m3[7].move =24;
m3[8] = new Array(33,26,18,26,32,16,26,50);
m3[8].base = new Array(359,360,361,362,0);
m3[8].root =0;
m3[8].move =45;
m3[9] = new Array(10,2,53,45);
m3[9].base = new Array(368,369,0);
m3[9].root =0;
m3[9].move =50;
m3[10] = new Array(26,11,40,16,25,33,16,20,11,21);
m3[10].base = new Array(378,379,380,381,382,0);
m3[10].root =0;
m3[10].move =58;
m3[11] = new Array(27,3,16,8,3,6);
m3[11].base = new Array(391,392,393,0);
m3[11].root =0;
m3[11].move =66;
m3[0] = new Array(62,45,6,21,50,34,12,20,54,46,11,27,61,54,27,34,59,32,1,11,60,62,127,61,10,26,32,34,9,17,51,35,2,9,57,42,0,2,61,59,8,16,35,26,5,26,34,39,17,25,45,28,9,54,28,11,21,11,39,3,4,3,62,54,3,12,42,36,2,18,58,51,7,2,48,32,25,32,56,32,13,29,36,26,11,26,51,33,12,21,32,40,2,10,33,42,21,22,42,28,10,11,59,58,11,27,28,37,18,17,37,44,17,25,49,33,26,36,40,16,25,33,58,10,36,21,16,20,33,36,20,16,15,23,55,39,27,3,39,31,22,31,10,14,36,44,16,21,44,28,54,47,3,35,53,37);
m3[0].base = new Array(238,239,240,241,242,243,244,245,246,247,248,248,292,293,294,295,319,320,321,323,324,325,326,327,328,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,363,364,365,366,367,370,371,372,373,374,375,376,377,383,384,385,386,387,388,389,390,394,395,396,397,398,399,400,401,402,403,404,0);
m3[0].root =0;
m3[0].move =0;
var n3 = new Array();
var b3 = -1;
function g3(a,b)
{	gm(m3,n3,3,b3,'catalan_bishopg3.htm',a,b);}
function MB_53()
{b3=MB_5(m3,n3,3,b3,'catalan_bishopg3.htm'); GMS(m3,n3,3,b3,'catalan_bishopg3.htm');}
function MB3()
{b3=MB(m3,n3,3,b3,'catalan_bishopg3.htm'); GMS(m3,n3,3,b3,'catalan_bishopg3.htm');}
function MF_53()
{b3=MF_5(m3,n3,3,b3,'catalan_bishopg3.htm'); GMS(m3,n3,3,b3,'catalan_bishopg3.htm');}
function MF3(bVarWin)
{b3=MF(m3,n3,3,b3,'catalan_bishopg3.htm',bVarWin); GMS(m3,n3,3,b3,'catalan_bishopg3.htm');}

var m4 = new Array(1)

m4[1] = new Array(45,28);
m4[1].base = new Array(418,0);
m4[1].root =0;
m4[1].move =13;
m4[2] = new Array(9,25,34,43,0,2,35,26,5,26,57,42,25,33,42,25,4,6,71,5,58,44,26,44,43,44,18,12,61,59,12,27,44,43,3,17);
m4[2].base = new Array(422,423,424,425,426,427,428,429,430,430,431,432,433,434,435,436,437,438,0);
m4[2].root =0;
m4[2].move =16;
m4[3] = new Array(18,35);
m4[3].base = new Array(443,0);
m4[3].root =0;
m4[3].move =20;
m4[4] = new Array(18,33,26,11,10,34,11,28);
m4[4].base = new Array(462,463,464,465,0);
m4[4].root =0;
m4[4].move =38;
m4[0] = new Array(50,34,12,20,62,45,6,21,54,46,11,27,61,54,10,26,60,62,127,61,1,18,51,35,27,34,59,32,2,11,32,34,26,35,45,35,0,2,57,42,3,24,58,51,24,26,34,26,5,26,35,41,26,19,61,59,4,12,42,25,19,1,41,26,8,16,25,40,2,10,40,34,1,8,49,33,21,27,48,40,13,21,54,27,20,27,51,37,10,2,34,19,8,26,19,2,11,2,33,26,12,20,56,57,14,30,37,19,9,25,57,41,18,24,41,44,20,13,44,12,13,22,59,27,2,9,27,59);
m4[0].base = new Array(405,406,407,408,409,410,411,412,413,413,414,415,416,417,419,420,421,439,440,441,442,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,0);
m4[0].root =0;
m4[0].move =0;
var n4 = new Array();
var b4 = -1;
function g4(a,b)
{	gm(m4,n4,4,b4,'catalan_bishopg4.htm',a,b);}
function MB_54()
{b4=MB_5(m4,n4,4,b4,'catalan_bishopg4.htm'); GMS(m4,n4,4,b4,'catalan_bishopg4.htm');}
function MB4()
{b4=MB(m4,n4,4,b4,'catalan_bishopg4.htm'); GMS(m4,n4,4,b4,'catalan_bishopg4.htm');}
function MF_54()
{b4=MF_5(m4,n4,4,b4,'catalan_bishopg4.htm'); GMS(m4,n4,4,b4,'catalan_bishopg4.htm');}
function MF4(bVarWin)
{b4=MF(m4,n4,4,b4,'catalan_bishopg4.htm',bVarWin); GMS(m4,n4,4,b4,'catalan_bishopg4.htm');}

var m5 = new Array(1)

m5[1] = new Array(44,17,11,17,41,17,19,26,17,9,21,38,52,44,5,3,54,45,38,28,45,52,3,51,9,1,26,5);
m5[1].base = new Array(534,535,536,537,538,539,540,541,542,543,544,545,546,547,0);
m5[1].root =0;
m5[1].move =44;
m5[2] = new Array(19,10,8,25,10,3,25,42);
m5[2].base = new Array(549,550,551,552,0);
m5[2].root =0;
m5[2].move =45;
m5[3] = new Array(13,29,18,12,27,12,8,10,5,4,10,9);
m5[3].base = new Array(563,564,565,566,567,568,0);
m5[3].root =0;
m5[3].move =55;
m5[0] = new Array(51,35,6,21,50,34,12,20,54,46,11,27,62,45,27,34,61,54,10,26,60,62,127,61,1,11,57,40,26,35,40,34,5,12,45,35,4,6,71,5,35,25,11,26,25,19,21,4,19,2,0,2,59,3,2,3,58,44,9,17,34,28,12,21,28,18,3,11,56,59,21,49,59,11,26,11,18,8,4,21,61,57,49,40,57,41,40,19,54,18,19,1,18,11,21,11,8,18,1,10,41,40,11,21,40,8,21,27,44,35,10,3,52,36,27,21,8,0);
m5[0].base = new Array(491,492,493,494,495,496,497,498,499,500,501,501,502,503,504,505,506,507,508,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,548,553,554,555,556,557,558,559,560,561,562,569,570,571,0);
m5[0].root =0;
m5[0].move =0;
var n5 = new Array();
var b5 = -1;
function g5(a,b)
{	gm(m5,n5,5,b5,'catalan_bishopg5.htm',a,b);}
function MB_55()
{b5=MB_5(m5,n5,5,b5,'catalan_bishopg5.htm'); GMS(m5,n5,5,b5,'catalan_bishopg5.htm');}
function MB5()
{b5=MB(m5,n5,5,b5,'catalan_bishopg5.htm'); GMS(m5,n5,5,b5,'catalan_bishopg5.htm');}
function MF_55()
{b5=MF_5(m5,n5,5,b5,'catalan_bishopg5.htm'); GMS(m5,n5,5,b5,'catalan_bishopg5.htm');}
function MF5(bVarWin)
{b5=MF(m5,n5,5,b5,'catalan_bishopg5.htm',bVarWin); GMS(m5,n5,5,b5,'catalan_bishopg5.htm');}
var nMoves = new Array(0,0,0,0,0,0);
var nLevels = new Array(0,0,0,0,0,0);
var nNameCount = new Array(0,0,0,0,0,0);
var nOld = new Array(-1,-1,-1,-1,-1,-1);
baseName = 'catalan_bishop';
var EmptyWhitePath = "../gif/w.gif";
var EmptyBlackPath = "../gif/b.gif";
var gifPath  = '../gif/';
var BackColor = "#FEFDF0";
var leftWindow		= this;
var rightWindow		= this;
var bFrames = 0;
var leftDocument		= leftWindow.document;
var rightDocument	= rightWindow.document;

