 //加入標籤
function addFavorite(add_url,add_title)
{
  if(window.external)
  {
    window.external.AddFavorite(add_url, add_title);
  }
  else if(window.sidebar)
  {
    window.sidebar.addPanel(add_title, add_url, '');
  }
  else
  {
    alert('系統無法支援您目前所使用的書籤系統！\n請手動操作您的書簽功能，將本站加入您的瀏覽器書籤中。');
  }
}

<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
 
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

//========================== 版權 BEGIN ==========================//
function Copyright(leg) {
  var Output = "";

  if(leg == 0)
  {
    Output += '&copy; 2000 - 2012 金百達科技有限公司 版權所有';
  }
  else
  {
    Output += 'Copyright &copy; 2000 - 2012 BPPOWER INC. All rights reserved.';
  }
  document.write(Output);
}
//=========================== 版權 END ===========================//

//========================== 網頁LOGO BEGIN ==========================//
function Web_logo(ck) {
  var Output = "";

  if(ck == 1)
  {
    var AA = "../";
  }
  else
  {
    var AA = "";
  }

  Output += '<td width="482"><img src="' + AA + 'images/index_logo.gif" width="482" height="75" title="BPPOWER INC."/></td>';
  document.write(Output);
}
//=========================== 網頁LOGO END ===========================//

//========================== 語系切換 BEGIN ==========================//
function Language_switching(URL,ck,leg) {
  var Output = "";

  if(ck == 1)
  {
    var AA = "../";
  }
  else
  {
    var AA = "";
  }

  if(leg == 0)
  {
    BB = '<img src="' + AA + 'images/icon_02.gif" width="8" height="8" />';
    CC = '&nbsp;&nbsp;';
  }
  else
  {
    BB = '&nbsp;&nbsp;';
    CC = '<img src="' + AA + 'images/icon_02.gif" width="8" height="8" />';
  }

  Output += '<td width="70">';
  Output += BB;
  Output += '<a href="' + URL + '.html" class="font12" title="Language">繁體中文</a><br />';
  Output += CC;
  Output += '<a href="' + URL + '_en.html" class="font12" title="Language">English</a>';
  Output += '</td>';

  document.write(Output);
}
//=========================== 語系切換 END ===========================//

//========================== 頂部選項 BEGIN ==========================//
function top_Options(ck,leg) {
  //定義頂部選項顯示內容
  var Options = "";

  if(ck == 1)
  {
    var AA = "../";
  }
  else
  {
    var AA = "";
  }

  if(leg == 0)
  {
    var BB = "";
    var CC = "";
    var DD = "_cn";
  }
  else
  {
    var BB = "en/";
    var CC = "_en";
    var DD = "";
  }

  Options += '<tr>';
  Options += '<td height="31" background="' + AA + 'images/menu_bg.gif"><table border="0" cellpadding="0" cellspacing="0">';
  Options += '<tr>';
  Options += '<td width="135"><a href="' + AA + 'index' + DD + '.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image0\',\'\',\'' + AA + 'images/' + BB + 'menu00-c.gif\',1)"><img title="HOME" src="' + AA + 'images/' + BB + 'menu00.gif" name="Image0" width="135" height="31" border="0" id="Image0" /></a></td>';
  Options += '<td width="93"><img src="' + AA + 'images/menu99.gif" name="Image99" width="93" height="31" border="0" id="Image99" /></td>';
  Options += '<td width="93"><img src="' + AA + 'images/menu99.gif" name="Image99" width="93" height="31" border="0" id="Image99" /></td>';
  Options += '<td width="93"><img src="' + AA + 'images/menu99.gif" name="Image99" width="93" height="31" border="0" id="Image99" /></td>';
  Options += '<td width="135"><a href="' + AA + 'aboutus' + CC + '.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image5\',\'\',\'' + AA + 'images/' + BB + 'menu01-c.gif\',1)"><img title="About BPPOWER" src="' + AA + 'images/' + BB + 'menu01.gif" name="Image5" width="135" height="31" border="0" id="Image5" /></a></td>';
  Options += '<td width="130"><a href="' + AA + 'product' + CC + '.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image7\',\'\',\'' + AA + 'images/' + BB + 'menu03-c.gif\',1)"><img title="Products" src="' + AA + 'images/' + BB + 'menu03.gif" name="Image7" width="130" height="31" border="0" id="Image7" /></a></td>';
  Options += '<td><a href="' + AA + 'ContactUs' + CC + '.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image11\',\'\',\'' + AA + 'images/' + BB + 'menu07-c.gif\',1)"><img title="Contact Us" src="' + AA + 'images/' + BB + 'menu07.gif" name="Image11" width="78" height="31" border="0" id="Image11" /></a></td>';
  Options += '</tr>';
  Options += '</table></td>';
  Options += '</tr>';

  //寫入定義好的頂部選項內容
  document.write(Options);
}
//=========================== 頂部選項 END ===========================//

//========================== 產品類別 BEGIN ==========================//
function addcategory(ck,leg) {
  //定義分類按鍵顯示內容
  var category = "";

  if(ck == 1)
  {
    var AA = "";
    var BB = "../";
  }
  else
  {
    var AA = "product/";
    var BB = "";
  }

  if(leg == 0)
  {
    var CC = "";
    var DD = "AA 系列";
    var EE = "BB 系列";
    var FF = "";
  }
  else
  {
    var CC = "_en";
    var DD = "AA Models";
    var EE = "BB Models";
    var FF = "_en";
  }

  //AA系列
  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<table width="208" height="23" border="0" cellpadding="0" cellspacing="0">';
  category += '<tr>';
  category += '<td width="40" align="right"><img src="' + BB + 'images/0blt3.jpg" width="13" height="11" />&nbsp;&nbsp;</td>';
  category += '<td width="168" ><span class="font_green">' + DD + '</span></td>';
  category += '</tr>';
  category += '</table>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'AA1000-RP' + CC + '.html" class="font12"><span class="about_menu2" >AA1000-RP</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'AA360-RP' + CC + '.html" class="font12"><span class="about_menu2" >AA360-RP</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'AA500PWP' + CC + '.html" class="font12"><span class="about_menu2" >AA500PWP</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'AA500P' + CC + '.html" class="font12"><span class="about_menu2" >AA500P</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'AA400' + CC + '.html" class="font12"><span class="about_menu2" >AA400</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'AA350' + CC + '.html" class="font12"><span class="about_menu2" >AA350</span></a></span>';
  category += '</td>';
  category += '</tr>';

  //BB系列
  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<table width="208" height="23" border="0" cellpadding="0" cellspacing="0">';
  category += '<tr>';
  category += '<td width="40" align="right"><img src="' + BB + 'images/0blt3.jpg" width="13" height="11" />&nbsp;&nbsp;</td>';
  category += '<td width="168" ><span class="font_green">' + EE + '</span></td>';
  category += '</tr>';
  category += '</table>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'BB-SBM12' + CC + '.html" class="font12"><span class="about_menu2" >BB-SBM12</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'BB-SBM12-PS' + CC + '.html" class="font12"><span class="about_menu2" >BB-SBM12-PS</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'BB-DCM12-300' + CC + '.html" class="font12"><span class="about_menu2" >BB-DCM12-300</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'BB-DCM12-150' + CC + '.html" class="font12"><span class="about_menu2" >BB-DCM12-150</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="' + BB + 'images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'BB-DCM12-100' + CC + '.html" class="font12"><span class="about_menu2" >BB-DCM12-100</span></a></span>';
  category += '</td>';
  category += '</tr>';

  category += '<tr>';
  category += '<td height="23" align="left" background="../images/about_menu_bg.gif">';
  category += '<a href="' + AA + 'BB-DCM12-90' + CC + '.html" class="font12"><span class="about_menu2" >BB-DCM12-90</span></a></span>';
  category += '</td>';
  category += '</tr>';

  //寫入定義好的分類按鍵內容
  document.write(category);
}
//=========================== 產品類別 END ===========================//


















