var defaultMenuWidth="150px"
var linkset=new Array()

linkset[0]=' '
linkset[0]+='<a href="dvrst.htm">Готовая система</a>'
linkset[0]+='<a href="ezdvr.htm">Платы EZ DVR</a>'
linkset[0]+='<a href="dvr_auto.htm">Автомобильные DVR</a>'

linkset[1]=' '
linkset[1]+='<a href="board.htm">Модульные</a>'
linkset[1]+='<a href="quad.htm">Квадратные</a>'
linkset[1]+='<a href="bulet.htm">Цилиндрические</a>'
linkset[1]+='<a href="weather.htm">Погодозащищенные</a>'
linkset[1]+='<a href="cctv.htm">CCTV</a>'
linkset[1]+='<a href="doom.htm">Купольные</a>'
linkset[1]+='<a href="ptz.htm">Поворотные</a>'
linkset[1]+='<a href="vn.htm">с ИК подсветкой</a>'

linkset[2]=' '
linkset[2]+='<a href="ip_camera.htm">IP камеры</a>'
linkset[2]+='<a href="ip_soft.htm">Программное обеспечение</a>'

linkset[3]=' '
linkset[3]+='<a href="vdomofon.htm">Видеодомофоны</a>'
linkset[3]+='<a href="adomofon.htm">Аудиодомофоны</a>'
linkset[3]+='<a href="dvs.htm">Дверные станции</a>'

linkset[4]=' '
linkset[4]+='<a href="monitor.htm">Мониторы</a>'
linkset[4]+='<a href="lens.htm">Объективы</a>'
linkset[4]+='<a href="box.htm">Защитные кожухи</a>'
linkset[4]+='<a href="kd.htm">Контроль доступа</a>'
linkset[4]+='<a href="lock.htm">Замки, доводчики</a>'
linkset[4]+='<a href="power.htm">Блоки питания</a>'


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
   return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth,imgElem){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
getImageX(imgElem)
getImageY(imgElem)
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+xPos+0-menuobj.contentwidth+"px" : window.pageXOffset+xPos+27+"px"
else
//position the horizontal position of the menu where the mouse was clicked (27 wmesto 0)
menuobj.style.left=ie5? iecompattest().scrollLeft+xPos-5+"px" : window.pageXOffset+xPos+10+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+yPos+55-document.body.scrollTop-menuobj.contentheight+"px" : window.pageYOffset+yPos+55-document.body.scrollTop+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+yPos+55-document.body.scrollTop+"px" : window.pageYOffset+yPos+55-document.body.scrollTop+"px"
menuobj.style.visibility="visible"
return false
}
function getImageX(imgElem) {
  xPos = eval(imgElem).offsetLeft;
  tempEl = eval(imgElem).offsetParent;
    while (tempEl != null) {
     xPos += tempEl.offsetLeft;
     tempEl = tempEl.offsetParent;
    }
  return xPos;
}
function getImageY(imgElem) {
   yPos = eval(imgElem).offsetTop;
   tempEl = eval(imgElem).offsetParent;
     while (tempEl != null) {
      yPos += tempEl.offsetTop;
      tempEl = tempEl.offsetParent;
     }
   return yPos;
}




function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
} 

if (ie5||ns6)
document.onclick=hidemenu

