
/***********************************************
* AnyLink Drop Down 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 Services Menu from root level
var services_menu=new Array()
services_menu[0]='<a href="services/index.htm">Services Overview</a>'
services_menu[1]='<a href="services/turnkey.htm">Turnkey Product Development</a>'
services_menu[2]='<a href="services/analog.htm">Analog Hardware</a>'
services_menu[3]='<a href="services/digital.htm">Digital Hardware</a>'
services_menu[4]='<a href="services/rf.htm">RF Hardware</a>'
services_menu[5]='<a href="services/fpga.htm">FPGA Design Services</a>'
services_menu[6]='<a href="services/embedded_sw.htm">Embedded Software</a>'
services_menu[7]='<a href="services/dsp.htm">DSP Design Services</a>'
services_menu[8]='<a href="services/green_design.htm">Green Design Services</a>'
services_menu[9]='<a href="services/power_supply.htm">Power Supply Design</a>'
services_menu[10]='<a href="services/wireless.htm">Wireless Design</a>'
services_menu[11]='<a href="services/marketing.htm">Marketing Services</a>'
services_menu[12]='<a href="services/project_management.htm">Project Management</a>'
services_menu[13]='<a href="services/rfi_emi.htm">RFI/EMI</a>'
services_menu[14]='<a href="services/sustaining_engr.htm">Sustaining Engineering Services</a>'
services_menu[15]='<a href="services/system.htm">System Development Services</a>'
services_menu[16]='<a href="services/tech_service.htm">Engineering Tech Services</a>'

//Contents for Industries Menu from root level
var ind_menu=new Array()
ind_menu[0]='<a href="industries/index.htm">Industries Overview</a>'
ind_menu[1]='<a href="industries/consumer.htm">Consumer</a>'
ind_menu[2]='<a href="industries/industrial.htm">Industrial</a>'
ind_menu[3]='<a href="industries/medical.htm">Medical</a>'
ind_menu[4]='<a href="industries/telecom.htm">Telecommunications</a>'
ind_menu[5]='<a href="industries/test_measurement.htm">Test and Measurement</a>'
ind_menu[6]='<a href="industries/transportation.htm">Transportation</a>'
		
//Contents for Products Menu from root level
var products_menu=new Array()
products_menu[0]='<a href="products/index.htm">Products Overview</a>'
products_menu[1]='<a href="products/fpga_ip_cores/index.htm">FPGA IP Cores</a>'

//Contents for Resources Menu from root level
var res_menu=new Array()
res_menu[0]='<a href="resources/index.htm">Resources Overview</a>'
res_menu[1]='<a href="resources/impedance_calculator.htm">Impedance Calculator</a>'
res_menu[2]='<a href="resources/tech_talk.htm">Tech Talk</a>'

//Contents for About Us Menu from root level
var aboutus_menu=new Array()
aboutus_menu[0]='<a href="aboutus/index.htm">About Us</a>'
aboutus_menu[1]='<a href="aboutus/faqs/index.htm">FAQs</a>'
aboutus_menu[2]='<a href="aboutus/news.htm">News</a>'
aboutus_menu[3]='<a href="aboutus/casestudies.htm">Case Studies</a>'
aboutus_menu[4]='<a href="aboutus/partners.htm">Partners</a>'
aboutus_menu[5]='<a href="aboutus/careers.htm">Careers</a>'

/***********************************************/

//Contents for Services Menu one directory level down
var lv1_services_menu=new Array()
lv1_services_menu[0]='<a href="../services/index.htm">Services Overview</a>'
lv1_services_menu[1]='<a href="../services/turnkey.htm">Turnkey Product Development</a>'
lv1_services_menu[2]='<a href="../services/analog.htm">Analog Hardware</a>'
lv1_services_menu[3]='<a href="../services/digital.htm">Digital Hardware</a>'
lv1_services_menu[4]='<a href="../services/rf.htm">RF Hardware</a>'
lv1_services_menu[5]='<a href="../services/fpga.htm">FPGA Design Services</a>'
lv1_services_menu[6]='<a href="../services/embedded_sw.htm">Embedded Software</a>'
lv1_services_menu[7]='<a href="../services/dsp.htm">DSP Design Services</a>'
lv1_services_menu[8]='<a href="../services/green_design.htm">Green Design Services</a>'
lv1_services_menu[9]='<a href="../services/power_supply.htm">Power Supply Design</a>'
lv1_services_menu[10]='<a href="../services/wireless.htm">Wireless Design</a>'
lv1_services_menu[11]='<a href="../services/marketing.htm">Marketing Services</a>'
lv1_services_menu[12]='<a href="../services/project_management.htm">Project Management</a>'
lv1_services_menu[13]='<a href="../services/rfi_emi.htm">RFI/EMI</a>'
lv1_services_menu[14]='<a href="../services/sustaining_engr.htm">Sustaining Engineering Services</a>'
lv1_services_menu[15]='<a href="../services/system.htm">System Development Services</a>'
lv1_services_menu[16]='<a href="../services/tech_service.htm">Engineering Tech Services</a>'

//Contents for Industries Menu one directory level down
var lv1_ind_menu=new Array()
lv1_ind_menu[0]='<a href="../industries/index.htm">Industries Overview</a>'
lv1_ind_menu[1]='<a href="../industries/consumer.htm">Consumer</a>'
lv1_ind_menu[2]='<a href="../industries/industrial.htm">Industrial</a>'
lv1_ind_menu[3]='<a href="../industries/medical.htm">Medical</a>'
lv1_ind_menu[4]='<a href="../industries/telecom.htm">Telecommunications</a>'
lv1_ind_menu[5]='<a href="../industries/test_measurement.htm">Test and Measurement</a>'
lv1_ind_menu[6]='<a href="../industries/transportation.htm">Transportation</a>'
		
//Contents for Products Menu from one directory level down
var lv1_products_menu=new Array()
lv1_products_menu[0]='<a href="../products/index.htm">Products Overview</a>'
lv1_products_menu[1]='<a href="../products/fpga_ip_cores/index.htm">FPGA IP Cores</a>'

//Contents for Resources Menu from one directory level down
var lv1_res_menu=new Array()
lv1_res_menu[0]='<a href="../resources/index.htm">Resources Overview</a>'
lv1_res_menu[1]='<a href="../resources/impedance_calculator.htm">Impedance Calculator</a>'
lv1_res_menu[2]='<a href="../resources/tech_talk.htm">Tech Talk</a>'

//Contents for About Us Menu one directory level down
var lv1_aboutus_menu=new Array()
lv1_aboutus_menu[0]='<a href="../aboutus/index.htm">About Us</a>'
lv1_aboutus_menu[1]='<a href="../aboutus/faqs/index.htm">FAQs</a>'
lv1_aboutus_menu[2]='<a href="../aboutus/news.htm">News</a>'
lv1_aboutus_menu[3]='<a href="../aboutus/casestudies.htm">Case Studies</a>'
lv1_aboutus_menu[4]='<a href="../aboutus/partners.htm">Partners</a>'
lv1_aboutus_menu[5]='<a href="../aboutus/careers.htm">Careers</a>'

/***********************************************/

//Contents for Services Menu two directory levels down
var lv2_services_menu=new Array()
lv2_services_menu[0]='<a href="../../services/index.htm">Services Overview</a>'
lv2_services_menu[1]='<a href="../../services/turnkey.htm">Turnkey Product Development</a>'
lv2_services_menu[2]='<a href="../../services/analog.htm">Analog Hardware</a>'
lv2_services_menu[3]='<a href="../../services/digital.htm">Digital Hardware</a>'
lv2_services_menu[4]='<a href="../../services/rf.htm">RF Hardware</a>'
lv2_services_menu[5]='<a href="../../services/fpga.htm">FPGA Design Services</a>'
lv2_services_menu[6]='<a href="../../services/embedded_sw.htm">Embedded Software</a>'
lv2_services_menu[7]='<a href="../../services/dsp.htm">DSP Design Services</a>'
lv2_services_menu[8]='<a href="../../services/green_design.htm">Green Design Services</a>'
lv2_services_menu[9]='<a href="../../services/power_supply.htm">Power Supply Design</a>'
lv2_services_menu[10]='<a href="../../services/wireless.htm">Wireless Design</a>'
lv2_services_menu[11]='<a href="../../services/marketing.htm">Marketing Services</a>'
lv2_services_menu[12]='<a href="../../services/project_management.htm">Project Management</a>'
lv2_services_menu[13]='<a href="../../services/rfi_emi.htm">RFI/EMI</a>'
lv2_services_menu[14]='<a href="../../services/sustaining_engr.htm">Sustaining Engineering Services</a>'
lv2_services_menu[15]='<a href="../../services/system.htm">System Development Services</a>'
lv2_services_menu[16]='<a href="../../services/tech_service.htm">Engineering Tech Services</a>'

//Contents for Industries Menu two directory levels down
var lv2_ind_menu=new Array()
lv2_ind_menu[0]='<a href="../../industries/index.htm">Industries Overview</a>'
lv2_ind_menu[1]='<a href="../../industries/consumer.htm">Consumer</a>'
lv2_ind_menu[2]='<a href="../../industries/industrial.htm">Industrial</a>'
lv2_ind_menu[3]='<a href="../../industries/medical.htm">Medical</a>'
lv2_ind_menu[4]='<a href="../../industries/telecom.htm">Telecommunications</a>'
lv2_ind_menu[5]='<a href="../../industries/test_measurement.htm">Test and Measurement</a>'
lv2_ind_menu[6]='<a href="../../industries/transportation.htm">Transportation</a>'
		
//Contents for Products Menu from two directory levels down
var lv2_products_menu=new Array()
lv2_products_menu[0]='<a href="../../products/index.htm">Products Overview</a>'
lv2_products_menu[1]='<a href="../../products/fpga_ip_cores/index.htm">FPGA IP Cores</a>'

//Contents for Resources Menu from two directory levels down
var lv2_res_menu=new Array()
lv2_res_menu[0]='<a href="../../resources/index.htm">Resources Overview</a>'
lv2_res_menu[1]='<a href="../../resources/impedance_calculator.htm">Impedance Calculator</a>'
lv2_res_menu[2]='<a href="../../resources/tech_talk.htm">Tech Talk</a>'

//Contents for About Us Menu two directory levels down
var lv2_aboutus_menu=new Array()
lv2_aboutus_menu[0]='<a href="../../aboutus/index.htm">About Us</a>'
lv2_aboutus_menu[1]='<a href="../../aboutus/faqs/index.htm">FAQs</a>'
lv2_aboutus_menu[2]='<a href="../../aboutus/news.htm">News</a>'
lv2_aboutus_menu[3]='<a href="../../aboutus/casestudies.htm">Case Studies</a>'
lv2_aboutus_menu[4]='<a href="../../aboutus/partners.htm">Partners</a>'
lv2_aboutus_menu[5]='<a href="../../aboutus/careers.htm">Careers</a>'

/***********************************************/
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?


/////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:'+menuwidth+';background-color:'+menubgcolor+'" 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="-700px"
if (menuwidth!=""){
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 < 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=130
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
else if (ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=150
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
