function mOvr(src,clrOver)
{
  if (!src.contains(event.fromElement)) {
    src.style.cursor = 'hand';
    src.style.backgroundColor = clrOver;
    //src.children.tags('A')[0].className='menu:hover';
  }
}
function mOut(src,clrIn)
{
  if (!src.contains(event.toElement)) {
    src.style.cursor = 'default';
    src.style.backgroundColor = clrIn;
    //src.children.tags('A')[0].className='menu';
  }
}

function mClk(src) {
  if(event.srcElement.tagName=='TD'){
        src.children.tags('A')[0].click();
  }
}

function sendsearch()
{
  if (document.web.q.value == "") {
    alert("\nОшибка запроса!");
  }
  else {
    document.web.submit();
  }
}

function newwin(url,width,height) {
  window.open(url, 'window', 'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
}
function spam_protect(object, to, domain){object.href="mailto:"+to+"@"+domain;}









//Всплывающее меню




startList = function() {
      if (document.all&&document.getElementById) {
            navRoot = document.getElementById("nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              this.className+=" over";
                        }
                        node.onmouseout=function() {
                              this.className=this.className.replace »
                              (" over", "");
                        }
                  }
            }
      }
}
window.onload=startList;


