//Если у нас Експлорер - истинно, а если нетскейп - ложно
function printh(tex,idt){if(document.all){idt.innerHTML=tex;
} else if(document.layers){document.idt.document.open();
document.idt.document.write(tex); document.idt.document.close();};}

// Проверяем броузер
if (navigator.appName == "Netscape") {
  layerRef="document.layers";
  styleSwitch="";
 }else{
  layerRef="document.all";
  styleSwitch=".style";
 }

//

//get date (to print on page)
var put1="../";

var dayNames = new Array(7);
dayNames[0] = "воскресенье"; dayNames[1] = "понедельник";
dayNames[2] = "вторник"; dayNames[3] = "среда";
dayNames[4] = "четверг"; dayNames[5] = "пятница";
dayNames[6] = "суббота";

var monthN = new Array(12);
monthN[0] = "января";monthN[1] = "февраля";
monthN[2] = "марта";monthN[3] = "апреля";
monthN[4] = "мая";monthN[5] = "июня";
monthN[6] = "июля";monthN[7] = "августа";
monthN[8] = "сентября";monthN[9] = "октября";
monthN[10] = "ноября";monthN[11] = "декабря";

var now = new Date();
var day = now.getDay();
var month = now.getMonth();
var year = now.getYear();
var date = now.getDate();

function SayDate(os1,os2,os3){
if(month == 1){date = date+31};
if(month == 2){date = date+59};
if(month == 3){date = date+90};
if(month == 4){date = date+120};
if(month == 5){date = date+151};
if(month == 6){date = date+180};
if(month == 7){date = date+212};
if(month == 8){date = date+242};
if(month == 9){date = date+273};
if(month == 10){date = date+303};
if(month == 11){date = date+334};
if(month == 0){document.write(os3);}else{document.write(os1,365-date,os2);}
}


function rand(n,type){
if (type) return ((Math.round(1e6*Math.random() ) % n) + 1);
else return (Math.round(1e6*Math.random() ) % n);}

function okoshki(){
con=0;}

function openXwin(url,wwidth,wheight){
sbar='scrollbars=no';
wwidth = wwidth+17;
wheight = wheight+23;
con=con+1;
if(wwidth >= screen.width){wwidth = screen.width - 50;sbar='scrollbars=yes';wheight=wheight+15;};
if(wheight >= screen.height){wheight = screen.height - 80;sbar='scrollbars=yes';wwidth=wwidth+15;};
var xp = (screen.width - wwidth)/2 ;var yp = (screen.height - wheight)/2 ;
var okoshk = window.open(url,'a'+con,'height='+wheight+',width='+wwidth+',toolbar=no,menubar=no,status=no,'+sbar+',resizable=no,screenX='+xp+',screenY='+yp+',top='+yp+',left='+xp+'');}

function sayimg(nam,wid,hei,tex){
var put ="'/kartinki/";var ras =".jpg'";
cl1 = 'Показать большую картинку';cl2='';
document.write('<td align="center"><table border="1" bordercolor="#BBBBEE" bordercolordark="#222266" bordercolorlight="#8888AA"><tr><td><a href="javascript://" onclick="openXwin('+put+bigco+nam+ras+','+wid+','+hei+');" onMouseOver="window.status=cl1;return true;" onMouseOut="window.status=cl2; return true;" onFocus="this.blur()">');
document.write('<img src="/gallery/'+smco+nam+'.jpg" alt="'+tex+'" border="0" width="127" height="96"></a></td></tr></table></td>');}

function sayhed(te){
document.write('<td align="center"><font color="#00FFFF" size="4" face="Verdana, Arial, Helvetica, Sans-Serif">'+te.bold()+'</font></td>');}

function df(){
document.write('<div align="center"><font color="#667EB2" size="2">© <a href="mailto:Sergey Doroshenko <bierck@iname.com>">Bierck Haarn</a></font><div>');}

//SpyLOG v2 f:1210
function spyend(){
onr();
lis();
u="u1189.66.spylog.com";d=document;nv=navigator;na=nv.appName;p=1;
bv=Math.round(parseFloat(nv.appVersion)*100);
n=(na.substring(0,2)=="Mi")?0:1;rn=Math.random();z="p="+p+"&rn="+rn;y="";
y+="<a href='http://"+u+"/cnt?f=3&p="+p+"&rn="+rn+"' target=_blank>";
y+="<img src='http://"+u+"/cnt?"+z+"&r1="+escape(d.referrer)+"&r="+escape(parent.document.referrer)+"&pg="+escape(window.location.href)+"' border=0 width=88 height=31 alt='SpyLOG'>";
y+="</a>";d.write(y);}
//SpyLOG
