<!--
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function StartSearch()
{
OpenSearchWindow=open("","SearchWindow","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,left=50,top=50,width=700,height=500");
OpenSearchWindow.focus();
OpenSearchWindow.document.open();
OpenSearchWindow.document.write(
"<html>  <head>  <title>Идёт поиск, подождите пожалуйста......</title>  <meta http-equiv=\"pragma\" content=\"no-cache\">  <meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1251\">  <script language=\"javascript\" type=\"text/javascript\">  function StartLoad()  {  var ie=document.all?1:0;     if(ie)   {   document.all.loading.innerText+=\"·\";   document.all.loading2.innerText+=\"·\";      if((document.all.loading.innerText.length||document.all.loading2.innerText.length)>10)    {    document.all.loading.innerText=\"·\";    document.all.loading2.innerText=\"·\";    }   }     else   {   document.getElementById(\"loading\").innerHTML+=\"·\";   document.getElementById(\"loading2\").innerHTML+=\"·\";    if((document.getElementById(\"loading\").innerHTML.length||document.getElementById(\"loading2\").innerHTML.length)>10)    {    document.getElementById(\"loading\").innerHTML=\"·\";    document.getElementById(\"loading2\").innerHTML=\"·\";    }   }   setTimeout(\"StartLoad()\",100);  }  </script>  </head>  <body background=images/background.gif onload=StartLoad()>  <table border=0 width=100% height=100%>  <tr><td align=center><font face=verdana size=4 color=green><i><span id=loading></span>&nbsp;Поиск...&nbsp;<span id=loading2></span></td></tr>  </table>  </body>  </html>"
);
OpenSearchWindow.document.close();
}
//-->