// <!-- 
var loc = "";
var rndnum=Math.round(Math.random() * 999111);
var rnd = Math.round(Math.random() * 10000000000);
_edr = escape(document.referrer);
_width="96%";
function line(procent)
{
 st="<table width=\""+procent+"\" background=\"./images/spacer.gif\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr height=1><td></td></tr></table>";
 return st;
}
ttable = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
function write_html_up(name, not_right) 
{ 
  if (not_right != "no_padding")  { padding = "style=\"PADDING-LEFT: 5px;PADDING-RIGHT: 5px;\"";  } else padding = "";
  n = name;
  name = " " + name + " ";
  if (not_right == "no_padding") not_right = false;
  if(n) 
  {
	  write_html_left("center");
      document.write(name);
	  write_html_right();
  }
  document.write(ttable);
  if (!not_right) spacer ="<td width=1 background=\"./images/spacer_up.gif\" nowrap></td>"; else spacer = "";
  document.write(ttable+"<tr><td width=1 background=\"./images/spacer.gif\" nowrap></td><td width=\"100%\" class=d1>"+line("100%")+ttable+"<tr><td class=d1 "+ padding + ">"); 
}
function write_html_down(name, not_left) 
{ 
  if (!name) {name =  "&nbsp;"}
  document.write("</td></tr></table></td><td width=1 background=\"./images/spacer.gif\" nowrap></td>"); 
  document.write("</tr></table>"+line("100%")+ttable+"");
  document.write("</td></tr></table>");	
}
function write_Shadow_up(_break,_w) 
{ 
	if (!_w) _w="98%";
	if (_break) document.write("<div style=\"padding-top: 20px;\">"); else document.write("<div>");
	document.write("<table cellpadding=0 cellspacing=0 border=0 width=\""+_w+"\" align=\"center\"><tr><td><table class=d7 border=1 cellpadding=0 cellspacing=0 bordercolor=\"#E1E1E1\" border=0 width=\"100%\"><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td class=d1 style='padding-bottom:5px;padding-left:5px;padding-right:5px'>");
}
function write_Shadow_down() 
{ 
	document.write("</td></tr></table></td></tr></table></td></tr><tr><td align=right><img src=\"./images/shadow.gif\" width=90 height=20></td></tr></table></div>");
}
function write_html_left(_align, _t5) 
{ 
  if (!_align) _align="center";
  if (!_t5) _t5="";
  document.write(_t5+ttable+"<tr height=19><td nowrap width=1 bgcolor=\"#E1E1E1\"></td><td class=d10 width=\"100%\" align="+_align+"><B>");
}
function write_html_right() 
{ 
  document.write("</B></td><td nowrap width=1 bgcolor=\"#E1E1E1\"></td></tr></table>");
}
function write_down() 
{ 
  document.write(ttable+"<tr><td align=right><img src=\"./images/shadow.gif\" width=90 height=20></td></tr></table>");
}
function gclBanner(num, _width, _height, ifr, bannum) {
var rnd = Math.round(Math.random()*10000);
var _elh = escape("http://art-soft.ru/index.php?id=module&name=soft");
if (!(bannum)) bannum=1;
if (ifr) document.write("<IFRAME src=\"http://br.gcl.ru/cgi-bin/br/br15453_" + num + ".cgi?1&"+ bannum +"&" + rnd + "&iframe&ref=" + _elh + "\"; frameborder=0 vspace=0 hspace=0 width=" + _width + " height=" + _height + " marginwidth=0 marginheight=0 scrolling=no>");
document.write("<scr" + "ipt src=\"http://br.gcl.ru/cgi-bin/br/br15453_" + num + ".cgi?1&1&" + rnd + "\"></scr" + "ipt>");
if (ifr) document.write("</IFRAME>");
}
var IE = document.all;
function openVMenu(ID)
{
  if(!IE[ID]) return false;
  if(IE[ID].style.display == "none") { IE[ID].style.display = ""; }  else { IE[ID].style.display = "none"; }
  return false;
}
function openMenu(ID)
{
  id_ = ID.substr(0,ID.length-1);
  n = ID.substr(ID.length-1,1);
  if (ID.substr(0,4) != "Down") for (i=0;i<9;i++) 
  { 
	  if (i != n) 
	  { 
		  id_b = id_ + i.toString();
		  if (IE[id_b].style.display == "") openVMenu(id_b); 
	  } 
  }
  if (ID.substr(0,4) == "Down") for (i=0;i<10;i++) 
  { 
	  if (i != n) 
	  { 
		  id_b = id_ + i.toString();
		  if (IE[id_b].style.display == "none") openVMenu(id_b); 
	  } 
  }
  _menu = openVMenu(ID);
  return _menu;
}
function MakeMenu()
{
  for(var i=0;i<Menu.childNodes.length;i++)
    with(Menu.childNodes[i])
      if(nodeName=="LI"){
        onmouseover=function(){this.className="Hover";};
        onmouseout=function(){this.className="";};
      }
}
function spaizGetElementById(id) {if (document.getElementById(id)) {return document.getElementById(id);} else if (document.all[id]) {return document.all[id];} else if (document.layers && document.layers[id]) {return (document.layers[id]);} else {return false;}}
function wait_visibility(id, flag){if (spaizGetElementById(id)) { spaizGetElementById(id).style.visibility = (flag) ? "visible" : "hidden"; }}
function write_BB(head,host,pubid,vbn,_w,_h,num,_alt,foot){document.write(head+'<iframe src="http://'+host+'/bb.cgi?cmd=ad&hreftarget=_blank&pubid='+pubid+'&pg=1&vbn='+vbn+'&w='+_w+'&h='+_h+'&num='+num+'&r=ssi&ssi=nofillers&r=ssi&nocache='+rndnum+'&ref='+_edr+'&loc='+loc+'" frameborder=0 vspace=0 hspace=0 width='+_w+' height='+_h+' marginwidth=0 marginheight=0 scrolling=no><a href="http://'+host+'/bb.cgi?cmd=go&pubid='+pubid+'&pg=1&vbn='+vbn+'&num='+num+'&w='+_w+'&h='+_h+'&nocache='+rndnum+'&loc='+loc+'&ref='+_edr+'" target="_blank"><img src="http://'+host+'/bb.cgi?cmd=ad&pubid='+pubid+'&pg=1&vbn='+vbn+'&num='+num+'&w='+_w+'&h='+_h+'&nocache='+rndnum+'&ref='+_edr+'&loc='+loc+'" width=120 height=60 Alt="'+_alt+'" border=0></a></iframe>'+foot);}
function hmnu(obj, m) 
{
  if (document.all || document.getElementById()) 
  {
    if (m=='on') obj.className = 'tdtxt2';
    if (m=='off') obj.className = 'tdtxt';
  }
}
// -->
