var bnHS45QYG, btHS45QYG;
function bwcHS45QYG(){
  this.ver=navigator.appVersion
  this.agent=navigator.userAgent
  this.dom=document.getElementById?1:0
  this.opera5=this.agent.indexOf("Opera 5")>-1
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
  this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
  this.ie=this.ie4||this.ie5||this.ie6
  this.mac=this.agent.indexOf("Mac")>-1
  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5)
  return this
}
bwHS45QYG=new bwcHS45QYG() //Browsercheck object

//Debug function ******************
function lmHS45QYG(txt){alert(txt); return false}

function loHS45QYG(obj,nest){
  if(!bwHS45QYG.bw) return lmHS45QYG('Old browser')
  nest=(!nest) ? "":'document.'+nest+'.'
  this.evnt=bwHS45QYG.dom? document.getElementById(obj):
    bwHS45QYG.ie4?document.all[obj]:bwHS45QYG.ns4?eval(nest+"document.layers." +obj):0;
  if(!this.evnt) return lmHS45QYG('The layer does not exist ('+obj+')'
    +'- \nIf your using Netscape please check the nesting of your tags!')
  this.css=bwHS45QYG.dom||bwHS45QYG.ie4?this.evnt.style:this.evnt;
  this.ref=bwHS45QYG.dom||bwHS45QYG.ie4?document:this.css.document;
  this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;
  this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0
  this.w=this.evnt.offsetWidth||this.css.clip.width||
    this.ref.width||this.css.pixelWidth||0;
  this.h=this.evnt.offsetHeight||this.css.clip.height||
    this.ref.height||this.css.pixelHeight||0
  this.c=0 //Clip values
  if((bwHS45QYG.dom || bwHS45QYG.ie4) && this.css.clip) {
  this.c=this.css.clip; this.c=this.c.slice(5,this.c.length-1);
  this.c=this.c.split(' ');
  for(var i=0;i<4;i++){this.c[i]=parseInt(this.c[i])}
  }
  this.ct=this.css.clip.top||this.c[0]||0;
  this.cr=this.css.clip.right||this.c[1]||this.w||0
  this.cb=this.css.clip.bottom||this.c[2]||this.h||0;
  this.cl=this.css.clip.left||this.c[3]||0
  this.obj = obj + "Object"; eval(this.obj + "=this")
  return this
}
loHS45QYG.prototype.moveIt = function(x,y){
  this.x=x;this.y=y; this.css.left=x;this.css.top=y
}
loHS45QYG.prototype.showIt = function(){this.css.visibility="visible"}
loHS45QYG.prototype.hideIt = function(){this.css.visibility="hidden"}
loHS45QYG.prototype.clipTo = function(t,r,b,l,setwidth){
  this.ct=t; this.cr=r; this.cb=b; this.cl=l
  if(bwHS45QYG.ns4){
    this.css.clip.top=t;this.css.clip.right=r
    this.css.clip.bottom=b;this.css.clip.left=l
  }else{
    if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0
    this.css.clip="rect("+t+","+r+","+b+","+l+")";
    if(setwidth){this.css.pixelWidth=this.css.width=r;
    this.css.pixelHeight=this.css.height=b}
  }
}
function ldsHS45QYG(){
  this.w = bwHS45QYG.ie?document.body.offsetWidth-20:window.innerWidth;
  this.h = bwHS45QYG.ie?document.body.offsetHeight-5:window.innerHeight;
  return this;
}

var dHS45QYG=new ldsHS45QYG();

function StHS45QYG(){
 if(bwHS45QYG.ns4&&(top.frames.length>0))  return top.frames[0];
 else  return top;
}

var stHS45QYG=StHS45QYG();

function cdHS45QYG(nHS45QYG,cHS45QYG){
  if (bwHS45QYG.ns4) document.write('<layer id="'+nHS45QYG+'" left=0 top=0 visibility=hide z-index=999>');
  else document.write('<div style="position: absolute; left: 0; top: 0;'+(bwHS45QYG.ie?" width: 1;":"")+' visibility: hidden; z-index: 999;" id="'+nHS45QYG+'">');

  var strHS45QYG="";
  if (nHS45QYG=='bn') strHS45QYG = '<table border="0" cellspacing="0" cellpadding="0">'+
    '<tr>'+
      '<td><img src="http://tut.by/at/11.gif" width="4" height="20"></td>'+
      '<td background="http://tut.by/at/12.gif"><a href=http://tut.by target=blank><img src="http://tut.by/at/logo.gif" width=75 height=14 border=0 alt="Белорусский портал TUT.BY"></a></td>'+
      '<td align="right" background="http://tut.by/at/12.gif">'+
        '<a href="#" onclick="showHide_HS45QYG(bnHS45QYG,btHS45QYG); return false;">'+
          '<img src="http://tut.by/at/but2.gif" title="Скрыть" alt="Скрыть" border="0" width="14" height="13">'+
		'</a>'+
      '</td>'+
      '<td><img src="http://tut.by/at/13.gif" width="3" height="20"></td>'+
    '</tr>'+
    '<tr>'+
      '<td background="http://tut.by/at/21.gif"><img src="http://tut.by/at/pix.gif" width="1" height="1"></td>'+
      '<td colspan="2">'+cHS45QYG+'</td>'+
      '<td background="http://tut.by/at/23.gif"><img src="http://tut.by/at/23.gif" width="3" height="1"></td>'+
    '</tr>'+
    '<tr>'+
      '<td><img src="http://tut.by/at/31.gif" width="4" height="20"></td>'+
      '<td colspan="2" align="center" valign="middle" background="http://tut.by/at/32.gif"><a href="http://www.tutby.com/service/advert" target=blank1 class="rek10125300"><img src="http://tut.by/at/rekl.gif" title="Реклама на TUT.BY" width="81" height="12" border="0"></a></td>'+
      '<td><img src="http://tut.by/at/33.gif" width="3" height="20"></td>'+
    '</tr>'+
  '</table>'
  else if (nHS45QYG=='bt') {
    strHS45QYG = '<table border="0" cellspacing="0" cellpadding="0">'+
	'<tr>'+
      '<td><img src="http://tut.by/at/s11.gif" width="4" height="20"></td>'+
      '<td background="http://tut.by/at/s12.gif"><a href=http://tut.by target=blank><img src="http://tut.by/at/logo.gif" width=75 height=14 border=0 alt="Белорусский портал TUT.BY"></a></td>'+
      '<td align="right" background="http://tut.by/at/s12.gif">'+
	    '<a href="#" onclick="showHide_HS45QYG(btHS45QYG,bnHS45QYG); return false;">'+
          '<img src="http://tut.by/at/but.gif" title="Показать" alt="Показать" width="14" height="13" hspace="2" border="0">'+
        '</a>'+
	    '<a href="#" onclick="showHide_HS45QYG(btHS45QYG);return false;">'+
          '<img src="http://tut.by/at/but3.gif" title="Закрыть" alt="Закрыть" width="14" height="13" border="0">'+
	    '</a>'+
      '<td><img src="http://tut.by/at/s13.gif" width="3" height="20"></td>'+
    '</tr>'+
	'<tr>'+
      '<td background="http://tut.by/at/s21.gif"><img src="http://tut.by/at/pix.gif" width="1" height="1"></td>'+
	  '<td colspan="2" align="center" background="http://tut.by/at/s22.gif"><a href="http://www.tutby.com/service/advert" target=blank1 class="rek10125300"><img src="http://tut.by/at/rekl.gif" width="81" height="12" title="Реклама на TUT.BY" border="0"></a></td>'+
	  '<td background="http://tut.by/at/s23.gif"><img src="http://tut.by/at/pix.gif" width="1" height="1"></td>'+
    '</tr>'+
	'<tr>'+
      '<td><img src="http://tut.by/at/s31.gif" width="4" height="3"></td>'+
      '<td colspan="2" background="http://tut.by/at/s32.gif"><img src="http://tut.by/at/pix.gif" width="109" height="1"></td>'+
      '<td><img src="http://tut.by/at/s33.gif" width="3" height="3"></td>'+
    '</tr>'+
  '</table>'
  }
  document.write(strHS45QYG);
  if (bwHS45QYG.ns4) document.writeln('</layer>');
  else document.writeln('</div>');
}
function showHide_HS45QYG(){
  if(arguments.length>0)arguments[0].hideIt();
  if(arguments.length>1)arguments[1].showIt();
}
function wdHS45QYG(){
 cdHS45QYG('bn', '<IFRAME src="http://www.red.by/redban/banner?place=3878&cpy=1" width="100" height="100" scrolling="no" frameborder="0"><SCRIPT>// <!-- var rndnum = Math.round(Math.random() * 1000); document.write('+"'<A href="+'"http://www.red.by/redban/href?place=3878&rnd='+"' + rndnum + '"+'" target="_blank">'+"'); document.write('<IMG src="+'"http://www.red.by/redban/banner?img&place=3878&rnd='+"' + rndnum + '"+'" width="100" height="100" border="0" alt="Красная Баннерная" ismap></A>'+"'); // --></SCRIPT><NOSCRIPT><A href="+'"http://www.red.by/redban/href?place=3878&rnd=1000"  target="_blank"><IMG src="http://www.red.by/redban/banner?img&place=3878&rnd=1000" width="100" height="100" border="0" alt="Красная Баннерная" ismap></A></NOSCRIPT></IFRAME>');
 cdHS45QYG('bt');
 bnHS45QYG=new loHS45QYG('bn');
 btHS45QYG=new loHS45QYG('bt');
 bnHS45QYG.moveIt(dHS45QYG.w-120,0)
 btHS45QYG.moveIt(dHS45QYG.w-120,0)
 setTimeout('bnHS45QYG.showIt();',40);
}
//alert("dHS45QYG.w: "+dHS45QYG.w+"\n dHS45QYG.h: "+dHS45QYG.h+"\n stHS45QYG.slHS45QYG: "+stHS45QYG.slHS45QYG)
if (dHS45QYG.w>120&&dHS45QYG.h>170&&((stHS45QYG.slHS45QYG+"")=="undefined" || stHS45QYG.slHS45QYG==window)){
  stHS45QYG.slHS45QYG=window;
  wdHS45QYG();
}

