divnum=7;
index='0';
var divary=new Array(7);
divary[1]="Products";
divary[2]="PressRoom";
divary[3]="Partner";
divary[4]="Purchase";
divary[5]="Support";
divary[6]="Company";
divary[7]="GlobalSite";
subnum=2;
var divsub=new Array(3);
divsub[1]="sub1";
divsub[2]="sub2";

function hideall()
{
for (i=1;i<=divnum;i++)

 { 
 document.getElementById(divary[i]).style.display="none";
 }
}
function hideallsub()
{
for (i=1;i<=subnum;i++)

 { 
 document.getElementById(divsub[i]).style.display="none";
 }
}
function show(i){
if (index!=i)
{hideall();}
e=document.getElementById(divary[i]);
e.style.position="absolute";
e.style.top=getTop(document.getElementById("nav"+i))+50+'px';
e.style.left=getLeft(document.getElementById("nav"+i))+'px';
e.style.display="";
index=i
}
function showsub(i){
hideallsub();
e=document.getElementById(divsub[i]);
e.style.position="absolute";
e.style.top=getTop(document.getElementById("isub"+i))+'px';
e.style.left=getLeft(document.getElementById("isub"+i))+155+'px';
e.style.display="";
index=i
}
//获取元素的纵坐标
function getTop(e){
var offset=e.offsetTop;
if(e.offsetParent!=null) offset+=getTop(e.offsetParent);
return offset;
}
//获取元素的横坐标
function getLeft(e){
var offset=e.offsetLeft;
if(e.offsetParent!=null) offset+=getLeft(e.offsetParent);
return offset;
}
function onDownloadDone(downDate){
showImport.innerHTML=downDate
} 

oDownload.startDownload('/pulldowmlist.html',onDownloadDone)