<!--
function getQueryVariable(variable) {
  var query = unescape(window.location.search.substring(1));
  var vars = query.split("&");
  var result = "";

  for (var i = 0; i < vars.length; i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      result = pair[1];
    }
  }

  return result;
}

var folder_name = 'digital';
var CFName, rcat
CFName = document.URL;

rcat=getQueryVariable("cat");
 
document.write('<table width="1054" height="25" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('  <td bgcolor="#00a69c" width="830" align="left" valign="top">');
document.write('    <table  border="0" cellspacing="0" cellpadding="0"><tr>');
document.write('      <td width="20"><img src="images/shim.gif" width="20" height="25" alt="" align="top"></td>');

if(  CFName.indexOf("/" + folder_name + "/top_list.asp") > 0 || CFName.indexOf("/" + folder_name + "/mobile_detail.asp") > 0 || CFName.indexOf("/" + folder_name + "/mobile_detail.asp") > 0 )
{
  document.write('      <td width="45" class="f13w_b"><a href="/' + folder_name + '/top_list.asp" class="topsection_03"><font color="#FF0000">排行榜</font></a></td>');
}else
{
  document.write('      <td width="45" class="f13w_b"><a href="/' + folder_name + '/top_list.asp" class="topsection_03">排行榜</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');
if(  CFName.indexOf("/" + folder_name + "/mobile_seque.asp") > 0)
{
  document.write('      <td width="72" class="f13w_b"><a href="/' + folder_name + '/mobile_seque.asp" class="topsection_03"><font color="#FF0000">資料及報價</font></a></td>');
}else
{
  document.write('      <td width="72" class="f13w_b"><a href="/' + folder_name + '/mobile_seque.asp" class="topsection_03">資料及報價</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');
if( (CFName.indexOf("/" + folder_name + "/comparison.asp") > 0 || (getQueryVariable("id").indexOf("d")>0 || getQueryVariable("id").indexOf("h")>0) && rcat=="" || rcat=="d" || rcat=="h") &&  ( CFName.indexOf("/instantnews/instant_news_index_inside.asp") < 0 ) )
{
  document.write('      <td width="72" class="f13w_b"><a href="/' + folder_name + '/comparison.asp" class="topsection_03"><font color="#FF0000">產品大比拼</font></a></td>');
}else
{
  document.write('      <td width="72" class="f13w_b"><a href="/' + folder_name + '/comparison.asp" class="topsection_03">產品大比拼</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');
if( ( CFName.indexOf("/" + folder_name + "/digital_subindex.asp?catid=270") > 0 || CFName.indexOf("catid=270") > 0  || CFName.indexOf("catid=874") > 0 || CFName.indexOf("catid=871") > 0 ) )
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=270" class="topsection_03"><font color="#FF0000">手機通訊</font></a></td>');
}else
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=270" class="topsection_03">手機通訊</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');
if( (CFName.indexOf("/" + folder_name + "/digital_subindex.asp?catid=261") > 0 || CFName.indexOf("catid=261") > 0  || CFName.indexOf("catid=875") > 0 || CFName.indexOf("catid=870") > 0 ))
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=261" class="topsection_03"><font color="#FF0000">電腦市場</font></a></td>');
}else
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=261" class="topsection_03">電腦市場</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');
if( ( CFName.indexOf("/" + folder_name + "/digital_subindex.asp?catid=283") > 0 || CFName.indexOf("catid=283") > 0 || CFName.indexOf("catid=873") > 0 || CFName.indexOf("catid=876") > 0  ) ) 
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=283" class="topsection_03"><font color="#FF0000">數碼影樓</font></a></td>');
}else
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=283" class="topsection_03">數碼影樓</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');
if( (CFName.indexOf("/" + folder_name + "/digital_subindex.asp?catid=277") > 0 || CFName.indexOf("catid=277") > 0  || CFName.indexOf("catid=877") > 0 || CFName.indexOf("catid=872") > 0) ) 
{
  document.write('      <td width="49" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=277" class="topsection_03"><font color="#FF0000">AV產品</font></a></td>');
}else
{
  document.write('      <td width="49" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=277" class="topsection_03">AV產品</a></td>');
}
document.write('      <td width="14" class="f13w_b">│</td>');

 
if( ( CFName.indexOf("/" + folder_name + "/digital_subindex.asp?catid=851") > 0 || CFName.indexOf("catid=851") > 0 || CFName.indexOf("catid=878") > 0 )) 
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=851" class="topsection_03"><font color="#FF0000">遊戲特區</font></a></td>');
}else
{
  document.write('      <td width="60" class="f13w_b"><a href="/' + folder_name + '/digital_subindex.asp?catid=851" class="topsection_03">遊戲特區</a></td>');
}

  
document.write('</td>');

document.write('    </tr></table>');
document.write('  </td>');
document.write('  <td width="78" height="25" valign="top" align="right"><img src="images/menu_03.gif" width="78" height="25" valign="top"></td>');

document.write('<form name="fsearch" action="/search/search_result.asp" method="post">');
document.write('<td width="98" height="25" bgcolor="#00a69c"><input type="text" name="keyword" ');
document.write('style="height:18px; width:92px"></td>');
document.write('<td width="45" height="25" valign="top"><input type="image" href="document.fsearch.submit();" src="images/menu_05.gif" width="45" height="25" alt="" border="0"></td>');
document.write('</form>');
document.write('<td bgcolor="#636363" width="5"><img src="images/shim.gif" width="5" height="25" alt=""></td>');
document.write('</tr>');
document.write('</table>');
//-->