// <!-- 
_width="96%";
function line(procent)
{
 st="<table width=\""+procent+"\" background=\"http://ya.md/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=\"http://ya.md/images/spacer_up.gif\" nowrap></td>"; else spacer = "";
  document.write(ttable+"<tr><td width=1 background=\"http://ya.md/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=\"http://ya.md/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=\"#EFEFEF\" 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=\"http://ya.md/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=\"#EFEFEF\"></td><td class=d10 width=\"100%\" align="+_align+"><B>");
}
function write_html_right() 
{ 
  document.write("</B></td><td nowrap width=1 bgcolor=\"#EFEFEF\"></td></tr></table>");
}
function hmnu(obj, m) 
{
  if (document.all || document.getElementById()) 
  {
    if (m=='on') obj.className = 'tdtxt2';
    if (m=='off') obj.className = 'tdtxt';
  }
}
function checkform (form) {
 if (form["query"].value == "") {
  alert("Please insert keyword(s) to search for");
  form["query"].focus();
  return false ; }
 return true; 
 }
function MenuRedirect(menu){
var itemselected=menu.options[menu.options.selectedIndex].value;
if(itemselected=="") return;
if(!(itemselected=="1")) { wait_visibility('serp', 0); } else if(itemselected=="1") { wait_visibility('serp', 1); }
if(itemselected=="2") { document.googleFrm.action="http://films.ya.md/search.php"; }
else if(itemselected=="3") { document.googleFrm.action="http://soft.ya.md/search.php"; }
else if(itemselected=="4") { document.googleFrm.action="http://cd.ya.md/search.php"; }
else if(itemselected=="5") { document.googleFrm.action="http://games.ya.md/search.php"; }
else { document.googleFrm.action="http://www.ya.md/dir/search.php"; }
}
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 openVMenu(idd)
{
  if(!document.all[idd]) return false;
  if(document.all[idd].style.display == "none") { document.all[idd].style.display = ""; }  else { document.all[idd].style.display = "none"; }
  return false;
}
function close_all()
{
 for(i=1;i<4;i++) document.all['ob'+i].style.display = "none";
 return false;
}
textads_width = "100%";
textads_height = "60";
textads_color_border = "#66CCFF";
textads_color_bg = "";
textads_color_headline = "black";
textads_color_url = "black";
textads_color_text = "black";
function _bb(_begin,bn,userid,vbn,page,rnd,num,w,h,_end)
{
  document.write(_begin + '<iframe src="http://ad' + bn + '.bannerbank.ru/bb.cgi?cmd=ad&hreftarget=_blank&pubid=' + userid + '&pg=' + page + '&vbn=' + vbn + '&w=' + w + '&h=' + h + '&num=' + num + '&r=ssi&ssi=nofillers&r=ssi&nocache=' + rnd + '&ref=' + escape(document.referrer) + '&loc=' + loc + '" frameborder=0 vspace=0 hspace=0 width=' + w + ' height=' + h + ' marginwidth=0 marginheight=0 scrolling=no><a href="http://ad' + bn + '.bannerbank.ru/bb.cgi?cmd=go&pubid=' + userid + '&pg=' + page + '&vbn=' + vbn + '&num=' + num + '&w=' + w + '&h=' + h + '&nocache=' + rnd + '&loc=' + loc + '&ref=' + escape(document.referrer) + '" target="_blank"><img src="http://ad' + bn + '.bannerbank.ru/bb.cgi?cmd=ad&pubid=' + userid + '&pg=' + page + '&vbn=' + vbn + '&num=' + num + '&w=' + w + '&h='+ h +'&nocache=' + rndnum + '&ref=' + escape(document.referrer) + '&loc=' + loc + '" width=' + w + ' height=' + h + ' Alt="JBE.RU Банерная сеть." border=0></a></iframe>' + _end);
}
// -->
