﻿
/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.at-systems.co.il/support.htm#lexicon">מילון מונחים</a>'
menu1[1]='<a href="http://www.at-systems.co.il/support.htm#FAQ">שאלות ותשובות</a>'
menu1[2]='<a href="http://www.at-systems.co.il/support.htm">תמיכה טכנית</a>'
menu1[3]='<a href="http://www.at-systems.co.il/articles/index.htm" title="מאמרי מצלמות אבטחה">מאמרים</a>'
menu1[4]='<a href="#" onclick="window.open(&quot;http://www.at-systems.co.il/storagecalc.htm&quot;,&quot;&quot;,&quot;menubar=no,toolbar=no,location=no,resizable=no,width=590,height=570, scrollbars=yes&quot;);" title="מה עלי לעשות בכדי לבחור את ה-HDD">מחשבון HDD</a>'
menu1[5]='<a href="#" onclick="window.open(&quot;http://www.at-systems.co.il/LensCalc.htm&quot;,&quot;&quot;,&quot;menubar=no,toolbar=no,location=no,resizable=no,width=500,height=560&quot;);">מחשבון עדשות</a>'
menu1[6]='<a href="http://www.xn----3hcbm6akye4d.com/phpbb/" target=_blank">פורום מעגל-סגור</a>'
menu1[7]='<a href="http://www.xn----0hcdmbpg1arb0g6b.com/" target=_blank">בלוג מצלמות-אבטחה.קום</a>'
menu1[8]='<a href="http://www.at-systems.co.il/sitemap.htm">מפת האתר</a>'


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.at-systems.co.il/dvr cards.htm">כרטיסי DVR</a>'
menu2[1]='<a href="http://www.at-systems.co.il/dvr stand alone.htm">מכשירי DVR</a>'
menu2[2]='<a href="http://www.at-systems.co.il/dvr systems.htm">מערכות משולבות</a>'
menu2[3]='<a href="http://www.at-systems.co.il/ir cams.htm">מצלמות IR</a>'
menu2[4]='<a href="http://www.at-systems.co.il/box cams.htm">מצלמות גוף</a>'
menu2[5]='<a href="http://www.at-systems.co.il/hide cams.htm">מצלמות מוסלקות</a>'
menu2[6]='<a href="http://www.at-systems.co.il/doom cams.htm">מצלמות DOOM</a>'
menu2[7]='<a href="http://www.at-systems.co.il/ptz cams.htm">מצלמות PTZ</a>'
menu2[8]='<a href="http://www.at-systems.co.il/intercom.htm">אינטרקום</a>'
menu2[9]='<a href="http://www.at-systems.co.il/product_id61.htm">אזעקה</a>'
menu2[10]='<a href="http://www.at-systems.co.il/eavesdrop.htm">ציוד האזנה</a>'
menu2[11]='<a href="http://www.at-systems.co.il/equipment.htm">ציוד נלווה</a>'

var menu3=new Array()
menu3[0]='<a href="http://www.at-systems.co.il/friends.htm">קישורים</a>'
menu3[1]='<a href="http://www.at-systems.co.il/friends2.htm">קישורים 2</a>'
menu3[2]='<a href="http://www.at-systems.co.il/friends3.htm">קישורים 3</a>'

var menu4=new Array()
menu4[0]='<a href="http://www.at-systems.co.il/articles/ccd_vs_cmos.htm">CCD נגד CMOS</a>'
menu4[1]='<a href="http://www.at-systems.co.il/articles/ddns.htm">IP קבוע ללא ספק האינטרנט</a>'
menu4[2]='<a href="http://www.at-systems.co.il/articles/dynamic_dns.htm">IP קבוע ללא ספק האינטרנט 2</a>'
menu4[3]='<a href="http://www.at-systems.co.il/articles/geo_backup">גיבוי אירועים GeoVision</a>'
menu4[4]='<a href="http://www.at-systems.co.il/articles/gv_webcam.htm">צפייה מרחוק GeoVision</a>'
menu4[5]='<a href="http://www.at-systems.co.il/articles/missing_object.htm">חיפוש אובייקט GeoVision</a>'
menu4[6]='<a href="http://www.at-systems.co.il/articles/infrared.htm">מה זה אינפרא-אדום?</a>'
menu4[7]='<a href="http://www.at-systems.co.il/articles/nannycam.htm">מצלמה נסתרת למטפלת</a>'
menu4[8]='<a href="http://www.at-systems.co.il/articles/optimize.htm">אופטימיזציה למחשב אבטחה</a>'
menu4[9]='<a href="http://www.at-systems.co.il/articles/port_forwarding.htm">פתיחת פורטים לצפייה מרחוק</a>'
menu4[10]='<a href="http://www.at-systems.co.il/articles/security_camera.htm">מצלמות אבטחה</a>'
menu4[11]='<a href="http://www.at-systems.co.il/articles/security_cams.htm">זהירות מצלמים</a>'
menu4[12]='<a href="http://www.at-systems.co.il/articles/twisted_pair.htm">כבלים זוגות שזורים</a>'
menu4[13]='<a href="http://www.at-systems.co.il/articles/linkexc.htm">יישום למחליף קישורים</a>'
menu4[14]='<a href="http://www.at-systems.co.il/articles/wiretap.htm">ציטוט והאזנת סתר</a>'
menu4[15]='<a href="http://www.at-systems.co.il/articles/home_security_cams.htm">מצלמות אבטחה לבית</a>'
menu4[16]='<a href="http://www.at-systems.co.il/articles/school_security_cams.htm">מצלמות אבטחה בבתי-הספר</a>'
menu4[17]='<a href="http://www.at-systems.co.il/articles/surveillance_pc.htm">כיצד לבחור מחשב אבטחה</a>'
		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-dropmenuobj.offsetWidth+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
