/**************************************************************
//適用瀏覽器:Mozilla,IE
****************************************************************/
//選單相關css定義:
document.write("\n");
var menu_top=42; //選單X座標
var menu_left=2; //選單Y座標
var menu_but="img/but.gif"; //選單按鈕底圖
var menu_font="Verdana"; //選單字型
var menu_fontsize=7 //選單字型大小
var menu_item_width=90; //選單項目寬度
var smenu_font="Verdana"; //子選單字型
var smenu_width=111; //子選單預設最小寬度
/*----主選單設定----*/
//類別內容
var mmenu=new Array(
/*Array(
"HOME",
"index.eng.html",
Array(
),
""
),*/
Array(
'ABOUT','about_yoda.eng.php',
Array(Array('About YODA','about_yoda.eng.php','_self'),Array('Service_Commitment','about_yoda_CompanyProfile.eng.php','_self')
),
'img/but_aboutus.gif',
1
),Array(
"NEWS",
"news_press_release.eng.php",
Array(
Array("Press Releases","news_press_release.eng.php","_self"),
Array("Event","news_event.eng.php","_self")
),
"img/but_news.gif",
1
),
Array(
'PRODUCTS','product.php?type=IP-Phone_ATA',
Array(Array('IP-Phone_ATA','product.php?type=IP-Phone_ATA','_self'),Array('IP-PBX_Gateway','product.php?type=IP-PBX_Gateway','_self'),Array('VDSL_DSLAM','product.php?type=VDSL_DSLAM','_self'),Array('SHDSL_EFM','product.php?type=SHDSL_EFM','_self'),Array('ADSL_DSLAM','product.php?type=ADSL_DSLAM','_self'),Array('PoE','product.php?type=PoE','_self'),Array('PLC_HomePlug','product.php?type=PLC_HomePlug','_self'),Array('EoC_CableModem','product.php?type=EoC_CableModem','_self'),Array('TDMoIP_IMUX','product.php?type=TDMoIP_IMUX','_self'),Array('SDH_ADM_FOM','product.php?type=SDH_ADM_FOM','_self'),Array('WiFi-Mesh_AP','product.php?type=WiFi-Mesh_AP','_self'),Array('Router_Switch_Hub','product.php?type=Router_Switch_Hub','_self'),Array('56K_Dial-Up-Modem','product.php?type=56K_Dial-Up-Modem','_self'),Array('Stock_On-Sale','product.php?type=Stock_On-Sale','_self')
),
'img/but_products.gif',1
),
Array(
'SUPPORT','support_rma.eng.php',
Array(Array('RMA Support','support_rma.eng.php','_self')
),
'img/but_support.gif',1
),
Array(
'CAREER','job_opening.eng.php',
Array(Array('JOB_OPENING','job_opening.eng.php','_self'),Array('國防訓儲','dirs/index.php','_self')
),
'img/but_support.gif',1
),
Array(
"CONTACT",
"contact_us.eng.php",
Array(
Array("YODA Locations","contact_us.eng.php","_self"),
Array("How to Buy","contact_us_buy.eng.php","_self")
),
"img/but_contact.gif",
1
)
);
//印出主選單
var text=String("")
var HREF=String("");
text+="
"+
"  | ";
for(i=0;i<=mmenu.length-1;i++)
{
if(!mmenu[i][4])continue;// If disable , print without it
HREF=(mmenu[i][1]!="")?mmenu[i][1]:"javascript:doing_nothing()";
CURSOR=(mmenu[i][1]!="")?"hand":"default";
text+="";
}
//把menu寬度填滿
text+= ""+
" | ";
text+="
";
document.write(text);
//印副選單副程式...
function c_div(num,smenu,div_top,div_left)
{
var text=String();
var d_id="smenu"+num;
text+="";
text+="
";
for(a=0;a| ";
text+=" | | ";
}
text+=" |
";
if(smenu.length!=0){
document.write(text);
}
}
//印出副選單
var tmp_top=menu_top+29;
var tmp_left=menu_left;
for(i=0;i<=mmenu.length-1;i++){
if(!mmenu[i][4])continue; // If disable , print without it
c_div(i,mmenu[i][2],tmp_top,tmp_left);
tmp_left+=menu_item_width;
}
function show(id_name)//顯示layer
{
//alert(document.getElementById(id_name).style.visibility);
document.getElementById(id_name).style.visibility="visible";
}
function hide(id_name)//隱藏layer
{
document.getElementById(id_name).style.visibility="hidden";
}
function doing_nothing()//為了怕按到分類按鈕所做的function
{
}
function cons()
{
alert("under construction...");
}