/***********************************************
* Pop-it menu- ?Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
//Contents for menu home
linkset[0]='<a href="http://www.virtins.com/indexENUS.shtml">&#33521;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexFRFR.shtml">&#27861;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexDEDE.shtml">&#24503;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexITIT.shtml">&#24847;&#22823;&#21033;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexESES.shtml">&#35199;&#29677;&#29273;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexPTPT.shtml">&#33889;&#33796;&#29273;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/cn/index.shtml">&#31616;&#20307;&#20013;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexZHCHT.shtml">&#32321;&#20307;&#20013;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexJAJP.shtml">&#26085;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexKOKR.shtml">&#38889;&#25991;&#39318;&#39029;</a>'
linkset[0]+='<a href="http://www.virtins.com/indexRURU.shtml">&#20420;&#25991;&#39318;&#39029;</a>'


//Contents for menuProducts
linkset[1]='<a href="page2.shtml#Instrument">Multi-Instrument&#19975;&#29992;&#20202;</a>'
linkset[1]+='<a href="page2.shtml#Oscilloscope">-&#31034;&#27874;&#22120;</a>'
linkset[1]+='<a href="page2.shtml#Spectrum Analyzer">-&#39057;&#35889;&#20998;&#26512;&#20202;</a>'
linkset[1]+='<a href="page2.shtml#Signal Generator">-&#20449;&#21495;&#21457;&#29983;&#22120;</a>'
linkset[1]+='<a href="page2.shtml#Multimeter">-&#19975;&#29992;&#34920;</a>'
linkset[1]+='<a href="page2.shtml#Spectrum 3D Plot">-&#39057;&#35889;3D&#22270;</a>'
linkset[1]+='<a href="page2.shtml#Data Logger">-&#25968;&#25454;&#35760;&#24405;&#20202;</a>'
linkset[1]+='<a href="page2.shtml#LCR Meter">-LCR&#34920;</a>'
linkset[1]+='<a href="page2.shtml#Device Test Plan">-&#35774;&#22791;&#26816;&#27979;&#35745;&#21010;</a>'
linkset[1]+='<a href="page2.shtml#Pocket Instrument">&#25484;&#19978;&#19975;&#29992;&#20202;</a>'
linkset[1]+='<a href="page2.shtml#Pocket Oscilloscope">&#25484;&#19978;&#31034;&#27874;&#22120;</a>'
linkset[1]+='<a href="page2.shtml#Pocket Spectrum Analyzer">&#25484;&#19978;&#39057;&#35889;&#20998;&#26512;&#20202;&#22120;</a>'
linkset[1]+='<a href="page2.shtml#Pocket Signal Generator">&#25484;&#19978;&#20449;&#21495;&#21457;&#29983;&#22120;</a>'
linkset[1]+='<a href="page2.shtml#Sound Card Oscilloscope Probe">&#22768;&#21345;&#31034;&#27874;&#22120;&#25506;&#22836;</a>'
linkset[1]+='<a href="VTRTA168.shtml">VT RTA-168</a>'
linkset[1]+='<a href="VTDSO2810F.shtml">VT DSO-2810F</a>'
linkset[1]+='<a href="VTDSO2810H.shtml">VT DSO-2810H</a>'
linkset[1]+='<a href="VTDSO2815H.shtml">VT DSO-2815H</a>'


//Contents for menu download
linkset[2]='<a href="page3.shtml">&#19979;&#36733;</a>'

//Contents for menu order
linkset[3]='<a href="page4.shtml">&#36141;&#20080;</a>'

//Contents for menu support
linkset[4]='<a href="page5.shtml">&#24120;&#35265;&#38382;&#39064;&#35299;&#31572;</a>'
linkset[4]+='<a href="http://www.virtins.com/cn/activate.shtml">&#30005;&#33041;&#36719;&#20214;&#27880;&#20876;</a>'
linkset[4]+='<a href="http://www.virtins.com/cn/pactivate.shtml">&#25484;&#19978;&#30005;&#33041;&#36719;&#20214;&#27880;&#20876;</a>'
linkset[4]+='<a href="http://www.virtins.com/cn/HardwareUpgrade.shtml">&#30828;&#20214;&#36828;&#31243;&#21319;&#32423;</a>'
linkset[4]+='<a href="http://www.virtins.com/cn/Upgrade.shtml">&#36719;&#20214;&#20813;&#36153;&#21319;&#32423;&#36890;&#30693;</a>'

//Contents for menu Applications
linkset[5]='<a href="applications.shtml">&#24212;&#29992;</a>'

//Contents for menu forum
linkset[6]='<a href="http://www.virtins.com/cn/forum">&#35770;&#22363;</a>'

//Contents for menu testimonials
linkset[7]='<a href="testmonials.shtml">&#29992;&#25143;&#35780;&#20215;</a>'

//Contents for menu Company
linkset[8]='<a href="page7.shtml">&#20851;&#20110;&#25105;&#20204;</a>'
linkset[8]+='<a href="SalesNetwork.shtml">&#38144;&#21806;&#32593;&#32476;</a>'
linkset[8]+='<a href="page8.shtml">&#30456;&#20851;&#36830;&#25509;</a>'

//Contents for menu contact us
linkset[9]='<a href="http://www.virtins.com/cn/page9.shtml">&#32852;&#31995;&#25105;&#20204;</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){
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
//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+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

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


