/***********************************************
* 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 menu 1
var menu1=new Array()
menu1[0]='<a href="job/welcome.html">事业发展</a>'
menu1[1]='<a href="aboutIDT/Welcome.html">公司介绍</a>'
menu1[2]='<a href="tools/contact.html">联系IDT</a>'
menu1[3]='<a href="executives/index.html">公司领导层</a>'
menu1[4]='<a href="http://www.idt.com/?id=3243&source=aboutidt_menu">投资者信息</a>'
menu1[5]='<a href="pressroom/index.html">新闻 / 媒体报道</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="products/amb.html">先进存储缓冲器</a>'
menu2[1]='<a href="products/timing_solutions.html">时钟/计时器件</a>'
menu2[2]='<a href="products/digital_logic.html">数字逻辑集成电路</a>'
menu2[3]='<a href="products/display_solutions.html">显示解决方案</a>'
menu2[4]='<a href="products/fifo.html">FIFO 产品</a>'
menu2[5]='<a href="products/integrated_processors.html">集成通信处理器</a>'
menu2[6]='<a href="products/multi_port.html">多端口存储器</a>'
menu2[7]='<a href="products/pc_audio.html">PC 音频解决方案</a>'
menu2[8]='<a href="products/pci_express.html">PCI Express 交换器</a>'
menu2[9]='<a href="products/physical_layer.html">物理层</a>'
menu2[10]='<a href="products/pll_registers.html">PLL 与缓冲器</a>'
menu2[11]='<a href="products/saw_filter.html">SAW 滤波器产品</a>'
menu2[12]='<a href="products/search_engines.html">搜索引擎</a>'
menu2[13]='<a href="products/serial_rapidio.html">Serial RapidIO&reg; 解决方案</A>'
menu2[14]='<a href="products/sram.html">SRAMs</a>'
menu2[15]='<a href="products/telecom.html">电信集成电路</a>'
menu2[16]='<a href="products/other_products.html">其他产品</a>'
menu2[17]='<a href="#" class="nohover">产品类型:</a>'
menu2[18]='<a href="applications/index.html" class="padleft">按应用分类</a>'
menu2[19]='<a href="applications/end_market.html" class="padleft">按终端市场</a>'
menu2[20]='<a href="http://www.idt.com/?app=search&searchType=partNumber" class="nohover">搜索产品</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="applications/audio.html">音频</a>'
menu3[1]='<a href="applications/memory.html">存储器</a>'
menu3[2]='<a href="applications/networking.html">网络</a>'
menu3[3]='<a href="applications/switching.html">交换</a>'



//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://www.idt.com/askidt.cfm" target="_blank">问 IDT</a>'
menu4[1]='<a href="tools/shipping_container_label.html">发货和包装标签</a>'
menu4[2]='<a href="green_initiative/index.html">绿色项目和 RoHS, 无铅</a>'
menu4[3]='<a href="purchasing/welcome.html">购买/查询分销商库存</a>'
menu4[4]='<a href="tools/knowledge.html">知识库</a>'
menu4[5]='<a href="quality/welcome.html">产品可靠性与质量信息</a>'
menu4[6]='<a href="tools/supwelcome.html">销售办事处</a>'
menu4[7]='<a href="tools/supwelcome.html">支持信息</a>'
menu4[8]='<a href="products/thermalintro.html">热量数据</a>'







//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="https://my.idt.com/?&source=myidt_menu">登陆我的IDT</a>'
menu5[1]='<a href="http://www.idt.com/?app=register&source=myidt_menu" class="padleft">新用户注册</a>'
menu5[2]='<a href="http://www.idt.com/?app=register&function=forgotPassword&source=myidt_menu" class="padleft">忘记密码</a>'
menu5[3]='<a href="https://my.idt.com/2_0/?id=2&source=myidt_menu" class="padleft">更新档案信息</a>'
menu5[4]='<a href="http://www.idt.com/?app=knowledgebase&contentID=4740&parentID=4740&parentPath=1210-4740&source=myidt_menu">myIDT 问答和支持信息</a>'
menu5[5]='<a href="http://www.idt.com/?app=register&source=myidt_menu">注册更新</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<div id="advanced_menu">'
menu6[1]='<div id="adv_men">'
menu6[2]='<a href="products/amb.html">先进存储缓冲器</a>'
menu6[3]='<a href="http://www.idt.com/?catID=18442816&source=all_products_menu">模拟 USB 交换器</a>'
menu6[4]='<a href="products/pc_audio.html">音频解决方案</a>'
menu6[5]='<a href="products/timing_solutions.html">时钟/计时器件</a>'
menu6[6]='<a href="products/ddr.html">DDR 产品</a>'
menu6[7]='<a href="products/digital_logic.html">数字逻辑集成电路</a>'
menu6[8]='<a href="products/display_solutions.html">显示解决方案</a>'
menu6[9]='<a href="products/fifo.html">FIFO 产品</a>'
menu6[10]='<a href="products/integrated_processors.html">集成通信处理器</a>'
menu6[11]='<a href="products/multi_port.html">多端口存储器</a>'
menu6[12]='<a href="products/pci_express.html">PCI Express 交换器</a>'
menu6[13]='<a href="products/physical_layer.html">物理层</a>'
menu6[14]='<a href="products/pll_registers.html">PLL 与缓冲器</a>'
menu6[15]='<a href="products/serial_rapidio.html">预处理交换芯片 (RapidIO&reg;)</a>'
menu6[16]='<a href="products/saw_filter.html">SAW 滤波器产品</a>'
menu6[17]='<a href="products/search_engines.html">搜索引擎</a>'
menu6[18]='<a href="products/serial_rapidio.html">Serial RapidIO&reg; 解决方案</A>'
menu6[19]='<a href="products/sram.html">SRAMs</a>'
menu6[20]='<a href="products/telecom.html">电信集成电路</a>'
menu6[21]='<a href="products/other_products.html">其他产品 (SwitchStar, 流量管理器等)</a>'
menu6[22]='</div>'
menu6[23]='</div>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="siteinfo/trademarks.html">商标</a>'
menu7[1]='<a href="siteinfo/privacy.html">隐私政策</a>'
menu7[2]='<a href="http://www.idt.com/?id=3243&investorID=1&source=footer">公司管理方法</a>'

//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="green_initiative/index.html">绿色项目和 RoHS</a>'
menu8[1]='<a href="products/thermalintro.html">热量数据</a>'
menu8[2]='<a href="quality/welcome.html">产品可靠性与质量信息</a>'
menu8[3]='<a href="tools/shipping_container_label.html">发货和包装标签</a>'

//Contents for menu 9
var menu9=new Array()
menu9[0]='<div id="popup">'
menu9[1]='注册 myIDT 帐户，可以及时收到注册后内容，例如白皮书和设计指南。注册加入 IDT 产品和活动的电邮通知。'
menu9[2]='</div>'

//Contents for menu 10
var menu10=new Array()
menu10[0]='<div id="popup">'
menu10[1]='点击此处提问或发表意见'
menu10[2]='</div>'
		
var menuwidth='151px' //default menu width
var menubgcolor='#cccccc'  //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="-500px"
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||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
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

