var defaultMenuWidth="150px"
var linkset=new Array()

linkset[0]=' '
linkset[0]+='<a href="../dvrst.html">Готовая система</a>'
linkset[0]+='<a href="../usb.html">USB DVR</a>'
linkset[0]+='<a href="../acecop-a.html">Платы AceCop А</a>'
linkset[0]+='<a href="../acecop-b.html">Платы AceCop B</a>'
linkset[0]+='<a href="../acecop-bp.html">Платы AceCop B+</a>'
linkset[0]+='<a href="../acecop-c.html">Платы AceCop C</a>'
linkset[0]+='<a href="../acecop-cp.html">Платы AceCop C+</a>'
linkset[0]+='<a href="../hicap.html">Платы Hicap</a>'
linkset[0]+='<a href="../ezdvr.html">Платы EZ DVR</a>'

linkset[1]=' '
linkset[1]+='<a href="../board.html">Модульные</a>'
linkset[1]+='<a href="../vquad.html">Квадратные</a>'
linkset[1]+='<a href="../bulet.html">Цилиндрические</a>'
linkset[1]+='<a href="../weather.html">Погодозащищенные</a>'
linkset[1]+='<a href="../cctv.html">CCTV</a>'
linkset[1]+='<a href="../doom.html">Купольные</a>'
linkset[1]+='<a href="../ptz.html">Поворотные</a>'
linkset[1]+='<a href="../vn.html">с ИК подсветкой</a>'
linkset[1]+='<a href="../ip.html">IP видеокамеры</a>'
linkset[1]+='<a href="../dv.html">Видеоглазки</a>'

linkset[2]=' '
linkset[2]+='<a href="../vdomofon.html">Видеодомофоны</a>'
linkset[2]+='<a href="../adomofon.html">Аудиодомофоны</a>'
linkset[2]+='<a href="../dvs.html">Дверные станции</a>'

linkset[3]=' '
linkset[3]+='<a href="../monitor-bw.html">Монохромные</a>'
linkset[3]+='<a href="../monitor-color.html">Цветные</a>'
linkset[3]+='<a href="../monitor-lcd.html">Цветные LCD</a>'

linkset[4]=' '
linkset[4]+='<a href="../lens.html">Объективы</a>'
linkset[4]+='<a href="../box.html">Защитные кожухи</a>'
linkset[4]+='<a href="../kd.html">Контроль доступа</a>'
linkset[4]+='<a href="../ik.html">ИК прожекторы</a>'
linkset[4]+='<a href="../lock.html">Замки, доводчики</a>'
linkset[4]+='<a href="../jack.html">Разъемы</a>'
linkset[4]+='<a href="../power.html">Блоки питания</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
