// меню - подсветка текущей ссылки
function a_active(blkid)
{try
      {
      var nl=document.getElementById(blkid).getElementsByTagName('a');
      var found=-1;
      var url=document.location.href+'/';
      var len=0;
      for (var i=0;i<nl.length;i++)
        {if(url.indexOf(nl[i].href)>=0)
          {if(found==-1 || len<nl[i].href.length)
            {found=i;len=nl[i].href.length;}
          }
        }
        if(found>=0){nl[found].className='current';}
        }catch(e){}
        }

// меню - кнопочки домой, написать, телефон
function f1(){
document.getElementById('h').style.background="URL('/img/i.gif')"
document.getElementById('h').style.backgroundRepeat="no-repeat"
document.getElementById('h').style.backgroundPosition="top right"
}
function f2(){
document.getElementById('m').style.background="URL('/img/i.gif')"
document.getElementById('m').style.backgroundRepeat="no-repeat"
document.getElementById('m').style.backgroundPosition="top right"
}
function f3(){
document.getElementById('p').style.background="URL('/img/i.gif')"
document.getElementById('p').style.backgroundRepeat="no-repeat"
document.getElementById('p').style.backgroundPosition="top right"
}
function f4(){
document.getElementById('h').style.background="URL('/img/i1.gif')"
document.getElementById('h').style.backgroundRepeat="no-repeat"
document.getElementById('h').style.backgroundPosition="top right"
}
function f5(){
document.getElementById('m').style.background="URL('/img/i1.gif')"
document.getElementById('m').style.backgroundRepeat="no-repeat"
document.getElementById('m').style.backgroundPosition="top right"
}
function f6(){
document.getElementById('p').style.background="URL('/img/i1.gif')"
document.getElementById('p').style.backgroundRepeat="no-repeat"
document.getElementById('p').style.backgroundPosition="top right"
}





// Статистика
 var bV=parseInt(navigator.appVersion);
 NS3=(document.layers) ? noundo : false;
 IE4=((document.all)&&(bV>=4))?true:false;
 ver4 = (NS3 || IE4) ? true : false;

 function expandIt()
  { return }


 isExpanded = false;

 function initIt()
  { tempColl = document.all.tags("DIV");
    for (i=0; i<tempColl.length; i++)
     { if (tempColl(i).className == "child") tempColl(i).style.display = "none";
     }
  }

 function expandIt(el)
  { if (!ver4) return;
    expandIE(el);
  }

 function expandIE(el)
  { whichEl = eval(el + "Child");
    whichIm = eval(el + "Image");
    if (whichEl.style.display == "none")
     { whichEl.style.display = "block";
       whichIm.src = "../img/admin/next_2.gif";
     }
    else
     { whichEl.style.display = "none";
       whichIm.src = "../img/admin/next.gif";
     }
  }

 with (document)
  { write("<STYLE TYPE='text/css'>");
    write(".child {display:none}")
    write(".childo{display:block}")
    write("</STYLE>");
  }

 onload = initIt;

// Год
today=new Date();
// Build an array initializer
function isnArray() {
argnr=isnArray.arguments.length
for (var i=0;i<argnr;i++) {
this[i+1] = isnArray.arguments[i];
}
}
