function NewErrorTrap() { return true; }
function errtrap(nick)
{
var OldErrorTrap = window.onerror;
window.onerror = NewErrorTrap;
if (window.opener) { // && window.opener.top.delay) {
document.write('');
}
if (document.log != null) { window.top.location="/index.htm"; }
window.onerror = OldErrorTrap;
}
function fastshow (content) {
var el = document.getElementById("mmoves");
var o = window.event.srcElement;
if (content!='' && el.style.visibility != "visible") {el.innerHTML = ''+content+'';}
var x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft + 3;
var y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop+5;
el.style.left = x + "px";
el.style.top = y + "px";
if (el.style.visibility != "visible") {
el.style.visibility = "visible";
}
}
var gift = new Array('','',''); // gift_from_before, gift_from_after, gift_from_anonym;
function quoteString(str){
str = str.replace(/\\/g,'\\\\');
str = str.replace(/\'/g,'\\\'');
str = str.replace(/\"/g,'\\"');
str = str.replace(/\n/g,'\\n');
return "'" + str + "'";
}
function DrawGift(name, flag, title, text, from, uid, width, height){
var s = ('';
document.writeln(s);
}
function DG1(name, flag, title, text, from, uid){
DrawGift(name, flag, title, text, from, uid, 61, 60);
}
function DG2(name, flag, title, text, from, uid){
DrawGift(name, flag, title, text, from, uid, 80, 74);
}
function DF(name, flag, title, text, from, uid){
DrawGift(name, flag, title, text, from, uid, 60, 60);
}
function quote_url(s){
var from = Array('+', ' ', '#');
var to = Array('%2B', '+', '%23');
for(var i=0;i=0) s= s.replace(from[i],to[i]);
return s;
}
function ShowGift(title, name, img, text, from, y, uid) {
var el = document.getElementById("mgift");
var o = window.event.srcElement;
var stitle = (img & 8)?
'' + title + '':
((img & 2)?'' + title + '':
title);
if (el.style.visibility !='visible'){
if (uid){
if (parseInt(uid))from = gift[0] + '' + from + '' + gift[1];
else from = gift[0] + '' + from + '' + gift[1];
}else if (from) from = gift[0] + ((from == 'АНТИБК Online')?from:'' + from + '') + gift[1];
if (!from) from = gift[2];
document.getElementById("mgift_sign").innerHTML = '' + (text?text+'
':'') + from + '';
document.getElementById("mgift_title").innerHTML = '' + stitle + '';
var eimg = document.getElementById("mgift_pict");
if (!(img & 6)){
eimg.innerHTML = '
';
} else {
var s = ((img & 4)?'middle/':'big/3d');
eimg.innerHTML = '';
}
}
var x = 15;
// var y = y; # window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
el.style.left = x + "px";
el.style.top = y + "px";
if (el.style.visibility != "visible") {
el.style.visibility = "visible";
}
}
function hideshow () {
document.getElementById("mmoves").style.visibility = 'hidden';
}
function HideGift () {
document.getElementById("mgift").style.visibility = 'hidden';
}
function drawDivs(){
document.writeln('');
document.writeln('');
document.writeln('
' +
' | '+
'x'+
' |
'+
' |
'+
' | |
' +
' |
');
}