function close_hint(id) {
document.getElementById('hint'+id+'').style.visibility = 'hidden';
Hint3Name = '';
}
function DrawBar(title, id, flags, link_text, link){
var s ='
';
document.writeln(s);
}
function splitstack(title, script, img, st) {
var s;
if (st==1) {
s='';
s = crtmagic(0, '\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C \u043F\u0440\u0435\u0434\u043C\u0435\u0442?', s);
} else {
s='';
s = crtmagic(0, '\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C \u043D\u0430 \u0440\u0430\u0432\u043D\u044B\u0435?', s);
}
document.all("hint3").innerHTML = s;
document.all("hint3").style.visibility = "visible";
document.all("hint3").style.left = 200;
document.all("hint3").style.top = 100;
if (!("autofocus" in document.createElement("input"))) {document.all("tmpname423").focus();}
Hint3Name = name;
}
var sd4 = 0;
function foundmagictype (mtypes) {
if (mtypes) {
mtypes=mtypes+"";
if (mtypes.indexOf(',') == -1) return parseInt(mtypes);
var s=mtypes.split(',');
var found=0;
var doubl=0;
var maxfound=0;
for (i=0; i < s.length; i++) {
var k=parseInt(s[i]);
if (k > maxfound) {
found=i + 1;
maxfound=k;
doubl=0;
} else {
if (k == maxfound) {doubl=1;}
}
}
if (doubl) {return 0};
return found;
}
return 0;
}
function crtmagic(mtype, title, body, subm, noclose) {
return crtmagic_full(mtype, title, body, subm, noclose, 270, 0);
}
function crtmagic_full(mtype, title, body, subm, noclose, dx, dy) {
//name, XYX, X1-X2-Y2, pad.LRU
mtype=foundmagictype(mtype);
var names=new Array(
'neitral',17, 6, 14, 17, 14, 7,0,0, 3,
'fire', 57, 30, 33, 20, 21, 14, 11, 12, 0,
'water', 57, 30, 33, 20, 21, 14, 11, 12, 0,
'air', 57, 30, 33, 20, 21, 14, 11, 12, 0,
'earth', 57,30, 33, 20, 21, 14, 11, 12, 0,
'white', 51, 25, 46, 44, 44, 10, 5, 5, 0,
'gray', 51, 25, 46, 44, 44, 10, 5, 5, 0,
'black', 51, 25, 46, 44, 44, 10, 5, 5, 0);
var colors=new Array('B1A993','DDD5BF', 'ACA396','D3CEC8', '96B0C6', 'BDCDDB', 'AEC0C9', 'CFE1EA', 'AAA291', 'D5CDBC', 'BCBBB6', 'EFEEE9', '969592', 'DADADA', '72726B', 'A6A6A0');
while (body.indexOf('#IMGSRC#')>=0) body = body.replace('#IMGSRC#', '/i/misc/dmagic/'+names[mtype*10]+'_30.gif');
var s=''+
''+
''+
''+
''+
''+
''+
'![](/i/misc/dmagic/b'+names[mtype*10]+'_03.gif) | '+
' | '+
'![](/i/misc/dmagic/b'+names[mtype*10]+'_07.gif) | '+
' '+
' | '+
' '+
''+
''+
''+
(names[mtype*10+7]?' | ':'')+
' | '+
''+
''+
''+
''+title+
' | | '+
' | '+
''+
''+body+
' | '+
' | '+
' | '+
(names[mtype*10+8]?' | ':'')+
' '+
' | '+
' '+
''+
''+
''+
'![](/i/misc/dmagic/b'+names[mtype*10]+'_27.gif) | '+
' | '+
'![](/i/misc/dmagic/b'+names[mtype*10]+'_31.gif) | '+
' '+
' | '+
' '+
' | '+
'
'+
'
';
return s;
}