");
anawin.document.writeln(" Click on the piece you wish to move and then click on its destination square. ");
anawin.document.write("
");}
function initdia(){
if (dummy1 == 1) return;
window.status = "Init. diagrams...";
j=0;
for(i=0;i
");}
function st(id,t){
document.getElementById(id).firstChild.nodeValue=t;}
function st2(id,t){
var e=document.getElementById(id);
e.style.fontSize="8pt";
e.style.fontFamily="MS Sans Serif";
e.style.fontWeight="bold";
return st(id,t);}
function paintframe(ibrd){
if(!document.getElementById)return;
var i=0;
var l=ibrd*100;
if(!rotated[ibrd]){
i=9;
st2(l+140,"a");st2(l+141,"b");st2(l+142,"c");st2(l+143,"d");st2(l+144,"e");st2(l+145,"f");st2(l+146,"g");st2(l+147,"h");
st2(l+130,"a");st2(l+131,"b");st2(l+132,"c");st2(l+133,"d");st2(l+134,"e");st2(l+135,"f");st2(l+136,"g");st2(l+137,"h");
i=0;}
else{
st2(l+140,"h");st2(l+141,"g");st2(l+142,"f");st2(l+143,"e");st2(l+144,"d");st2(l+145,"c");st2(l+146,"b");st2(l+147,"a");
st2(l+130,"h");st2(l+131,"g");st2(l+132,"f");st2(l+133,"e");st2(l+134,"d");st2(l+135,"c");st2(l+136,"b");st2(l+137,"a");
i=9;}
for (j=0; j<8; j++){
st2(l+100+j,Math.abs(i-(8-j)));
st2(l+110+j,Math.abs(i-(8-j)));}}
var fa = "";
var fe = "";
var dc = "#D5D5D5";
function koord(idxbrd, iid) {
var k = "abcdefgh";
document.write("
");
for (i = 0; i < 8; i++) {
wfc(dc, (idxbrd * 100) + iid + i, fa + k.charAt(i) + fe); }
document.write("
"); }
var x="x";
var goback=-1;
var goahead=-2;
var idx=0;
var bidx=0;
var lastidx=new Array(0, 46, 124, 215, 0);
var lastcolor="#000000";
var movebgcol="#FF0000";
var movecol="#00FFFF";
var bgcolor="#ECECEC";
var maxvar=10;
var engl=2;
var lang=new Array("¢","£","¦","¥","¤","");
var nbgames = 4;
var diagram=self;
var timer=null;
var dummy2=0;
var dummy3=0;
zg=new Array(
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5236","1228","5337","0118","6245","1119","3728pAA","b5 13 11 ","1828PAA","r1bqkbnr/ppp2ppp/2np4/4P3/4P3/5N2/PPPP2PP/RNBQKB1R 4 8","1928PAA","r1bqkbnr/ppp2ppp/3p4/4n3/4P3/5N2/PPPP2PP/RNBQKB1R 5 9","5135","2822","6134","0512","60626361","0621","5742","04060705",
"5960","b10 27 25 ","0504","r1bq1rk1/ppp1bppp/3p1nn1/8/2BPP3/2N2N2/PPP3PP/R1B1QRK1 9 22","1018","r1bqr1k1/ppp1bppp/3p1nn1/8/2BPP3/2N2N2/PPP3PP/R1B1QRK1 10 23","4530","1927","4227pAA","2127NAA","w12 36 34 ","3427nAA","r1bqr1k1/ppp1bppp/6n1/3n2N1/2BPP3/8/PPP3PP/R1B1QRK1 12 31","3013pAA","r1bqr1k1/ppp1bppp/6n1/3B2N1/3PP3/8/PPP3PP/R1B1QRK1 12 32","1230NAA","2713pAA","0607","1304rAA","3058BAA","0422nAA",
"5849PAA","6039","0339QAA","6105"
,
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5135","1127","5034","1220","5742","0621","6245","0512","5830","04060705","5244","0111","5658","0917","3427pAA","2027PAA","5932","0209","6116","0916BAA",
"3216bAA","1026","3021nAA","1121BAA","3526pAA","1726PAA","60626361","0317","1652","2634","6159","0503","4535","1233","4941","0002","4134pAA","2734PAA","5850","3342NAA","5042bAA",
"2127","w22 95 92 ","4250","2rr2k1/p4ppp/1q6/3n4/2pN4/2R1P3/P3QPPP/3R2K1 22 89","4234pAA","2742","2rr2k1/p4ppp/1q6/3n4/2pN4/4P3/P1R1QPPP/3R2K1 22 90","3442","5958","0226","3541","2618","4135","1810","3525","1026","w27 109 107 ","2542pAA","3r2k1/p4ppp/1q6/1Nrn4/8/2p1P3/P1R1QPPP/2R3K1 27 104","2535","3r2k1/p4ppp/1q6/2rn4/8/2N1P3/P1R1QPPP/2R3K1 27 105",
"2742NAA","5042nAA","2642RAA","5842rAA","b30 0 116 ","1749","3r2k1/p4ppp/1q6/8/8/2R1P3/P3QPPP/6K1 29 113","1749","w30 123 120 ","4202","3r2k1/p4ppp/8/8/8/2R1P3/Pq2QPPP/6K1 30 117","5249qAA","0359","2Rr2k1/p4ppp/8/8/8/4P3/Pq2QPPP/6K1 30 118","4957"
,
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR 1 x","5236","1228","6245","0118","6125","0816","2532","0621","60626361","2136PAA","5135","0925","3241","1127","3528pAA","0220","5042","0512","4832","2533",
"4535","1828PAA","5337","2038","5950","1026","3728nAA","2635NAA","4235pAA","0002","5043","04060705","5751","3630","6153","0218","5161","3831","6146","3122","4629",
"0607","5844","3020","4351","1230","2919","3044BAA","5144bAA","2010","3224","0312","4451","0501","4132","b29 188 183 ","1834","1r5k/2n1qppp/p1rN2b1/P2pP3/Bp1P4/8/1P1Q1RPP/R5K1 28 180","1025","3225nAA","1625BAA","5133pAA",
"1r5k/2n1qppp/p2N2b1/P2pP3/BprP4/8/1P1Q1RPP/R5K1 29 181","1934rAA","2734NAA","5658","1220","3527","1027PAA","5834pAA","2712","3241","2028PAA","5352","2821","w35 0 203 ","5133pAA","1r5k/4nppp/p4qb1/P7/1pR5/1B6/1P1QR1PP/6K1 35 200","5133pAA","b36 210 207 ","0133QAA","1r5k/4nppp/p4qb1/P7/1QR5/1B6/1P2R1PP/6K1 35 204","0104",
"3312nAA","7k/4nppp/p4qb1/P7/1rR5/1B6/1P2R1PP/6K1 36 205","3402","1206","0206nAA","0706RAA","5204"
,
"1r1r2k1/2q2ppp/p3b3/4p3/1p6/5B2/PPPRPQPP/3R3K 1 x","5308","1024","0816pAA","2410","1608"
);
br=new Array(
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
),
new Array(
x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
)
);
//-->