var jcartNo			= getCartNo();
var icartNo  = "";
var icartNo1 = "";
if ( jcartNo != "" ){
    var icartNo = "?cartno=" + jcartNo;
    var icartNo1 = "&cartno=" + jcartNo;
}
var j_url  = "";
if (location.href.indexOf("https") == 0 || location.href.indexOf("http://images.ttnet.net") == 0 || location.href.indexOf("http://cnews.ttnet.net") == 0){
    var j_url = "http://wenbi.ttnet.net";
}

   document.writeln('<style type="text/css">');
   document.writeln('<!--');
   document.writeln('.vig_cf {  font-family: "細明體"; font-size: 12px; color: #9D633E}');
   document.writeln('-->');
   document.writeln('</style>');

   document.writeln('<table cellspacing=0 cellpadding=0 width=775 align=center border=0>');
   document.writeln('<tr>');
   document.writeln('<td width=155 valign=top align=center><a href="/index.shtml'+icartNo+'"><img src="http://images.ttnet.net/pi/cimages/index/ttnet_logo.jpg" width="126" height="52" border=0></a></td>');
   document.writeln('<td height=48 width=620>');
   document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0" background="http://images.ttnet.net/pi/cimages/index/bk-1.jpg" height="40">');
   document.writeln('<tr><td valign="bottom"><a href=/cttnet_show.htm'+icartNo+'><img src="http://images.ttnet.net/pi/cimages/index/show_07191.gif" height="31" border="0"></a></td>');
   document.writeln('<td valign="bottom" align="right">');
   document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="0" height="25">');
   document.writeln('<tr valign="middle">');
   var j_id = GetCookie("CNEWSID"); 
if (j_id == null || j_id == 'null'){ 
   document.writeln('<td align=middle width=53 height=19><a class=j-1 href="'+j_url+'/cttnet-bin/clogin.cgi?log=Y&cooklang=1'+icartNo1+'">會員登入</a></td>');
   document.writeln('<td align=middle width=7 height=19><font color=#00659a size=2>|</font></td>');
   document.writeln('<td align=middle width=53 height=19><a class=j-1 href="'+j_url+'/cfree_membership.shtml'+icartNo+'">加入會員</a></td>');
   document.writeln('<td align=middle width=7 height=19><font color=#00659a size=2>|</font></td>');
}else{
   document.writeln('<td align="center" width="26" height="19"><a href="'+j_url+'/cttnet-bin/c_logout.cgi'+icartNo+'" class="j-1">登出</a></td>');
   document.writeln('<td align="center" width="7" height="19"><font size="2" color="#00659A">|</font></td>');
   document.writeln('<td align=middle width=53 height=19><a class=j-1 href="'+j_url+'/html/qna/index.htm'+icartNo+'">常見問題</a></td>');
   document.writeln('<td align=middle width=7 height=19><font color=#00659a size=2>|</font></td>');
}
document.writeln('<td align=middle width=53 height=19><a class=j-1 href="'+j_url+'/what_do.htm'+icartNo+'">服務項目</a> </td>');
   document.writeln('</tr>');
   document.writeln('</table>');
   document.writeln('</td></tr></table>');
   document.writeln('</td></tr>');
   document.writeln('<tr><td colspan=2 valign=top align=center>');
   document.writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0" height="26">');
   document.writeln('<tr><td align=right width=635>');

document.writeln('            <table border="0" cellpadding="0" cellspacing="0">');
document.writeln('              <tr> ');
document.writeln('                <td width="7" valign="bottom"> ');
document.writeln('                  <div align="center"><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="7" height="26"></div>');
document.writeln('                </td>');
document.writeln('                <td width="41" align="center" valign="bottom"> ');
document.writeln('                  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><a href="/index.shtml'+icartNo+'" class="vig_cf">首頁</a></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></div>');
document.writeln('                </td>');
document.writeln('                <td width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="4" height="26"></div>');
document.writeln('                </td>');
document.writeln('                <td width="60" class="bm3" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><a href="/cbuyer.shtml'+icartNo+'" class="vig_cf" >買主服務</a></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td width="60" class="bm3" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><u><a href="/cttnet-bin/csupplier.cgi?cooklang=1'+icartNo1+'" class="vig_cf">廠商服務</a></u></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td width="60" class="bm3" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><u><a href="/cstockboard.shtml'+icartNo+'" class="vig_cf">買賣看板</a></u></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r_sh_1.gif" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td width="60" class="bm3" height="36" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/r_sh_3.gif">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><a href="/cttnet_show.htm'+icartNo+'" class="vig_cf" style="text-decoration:none;"><font class="c">展覽情報</font></a></div>');
//document.writeln('                        <div align="center"><font class="c">展覽情報</font></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r_sh_2.gif" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td class="bm3" width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><u><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="4" height="26"></u></div>');
document.writeln('                </td>');
document.writeln('                <td width="60" class="bm3" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><u><a href="/putbookc.shtml'+icartNo+'" class="vig_cf">貿易專刊</a></u></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td width="4" valign="bottom"> ');
document.writeln('                  <div align="center"><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></div>');
document.writeln('                </td>');
document.writeln('                <td width="4" valign="bottom"><u><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="4" height="26"></u></td>');
document.writeln('                <td width="60" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><u><a href="javascript:gotourl(news,1);" class="vig_cf">商貿資訊</a></u></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td width="4" valign="bottom"><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></td>');
document.writeln('                <td width="4" valign="bottom"><u><img src="http://images.ttnet.net/pi/cimages/index/r-1-1.jpg" width="4" height="26"></u></td>');
document.writeln('                <td width="60" valign="bottom"> ');
document.writeln('                  <table width="60" border="0" cellspacing="0" cellpadding="0" height="26" background="http://images.ttnet.net/pi/cimages/index/rbk-1.jpg">');
document.writeln('                    <tr> ');
document.writeln('                      <td> ');
document.writeln('                        <div align="center"><u><a href="/cttnet-bin/cbusiness.cgi?cooklang=1'+icartNo1+'" class="vig_cf">商業服務</a></u></div>');
document.writeln('                      </td>');
document.writeln('                    </tr>');
document.writeln('                  </table>');
document.writeln('                </td>');
document.writeln('                <td width="4" valign="bottom"><img src="http://images.ttnet.net/pi/cimages/index/r-2-1.jpg" width="4" height="26"></td>');
document.writeln('              </tr> ');
document.writeln('            </table>');

   document.writeln('</td>');
   document.writeln('<td valign="middle" align="right">');
   document.writeln('<table border="0" cellpadding="0" cellspacing="0" height="22">');
   document.writeln('<tr valign="bottom">');

var j_cart = GetCookie("CCARTCNT"); 
if (j_cart == null || j_cart == 'null' || j_cart == 'N'){
   document.writeln('<td width="25" align="center"><a href="'+j_url+'/cttnet-bin/cinq_manager.cgi?chkcart=Y&cooklang=1'+icartNo1+'"><img src="http://images.ttnet.net/pi/cimages/index/car0.gif" width="19" height="17" border="0"></a></td>');
}else{
   document.writeln('<td width="25" align="center"><a href="'+j_url+'/cttnet-bin/cinq_manager.cgi?chkcart=Y&cooklang=1'+icartNo1+'"><img src="http://images.ttnet.net/pi/cimages/index/car1.gif" width="19" height="17" border="0"></a></td>');
}

   document.writeln('<td width="50" align="center">');
   document.writeln('<a href="/cttnet-bin/cinq_manager.cgi?chkcart=Y&cooklang=1'+icartNo1+'" class="j-1">詢價車..</a>');
   document.writeln('</td></tr></table>');
   document.writeln('</td></tr></table>');
   document.writeln('</td></tr></table>');
   document.writeln('<table border="0" align="center" cellpadding="0" cellspacing="0" height="23" bgcolor="#9D633E" width="775">');
   document.writeln('<tr><td align="center">');
   document.writeln('<table border="0" align="center" cellpadding="0" cellspacing="0" height="18">');
   document.writeln('<tr valign="bottom">');
   
   document.writeln('<TD align=middle bgColor=#9D633E>&nbsp;</TD>');
   document.writeln('<TD align=middle bgColor=#9D633E><FONT color=#cccccc><A class=bm2 href="/cshow_plan.htm'+icartNo+'">ttnet參展推廣計畫</A></FONT></TD>');
   document.writeln('<TD width=10 align="center" bgColor=#9D633E><FONT color=#cccccc>|</FONT></TD>');
   document.writeln('<TD align=middle bgColor=#9D633E><FONT color=#cccccc><A class=bm2 href="/cshow_agent.htm'+icartNo+'">ttnet徵展資訊</A></FONT></TD>');
   document.writeln('<TD width=10 align="center" bgColor=#9D633E><FONT color=#cccccc>|</FONT></TD>');
   document.writeln('<TD bgColor=#9D633E><FONT color=#cccccc> <A class=bm2 href="/cttnet-bin/cshow_news.cgi?cooklang=1'+icartNo+'">ttnet參展見聞</A></FONT></TD>');
   document.writeln('<TD width=10 align="center" bgColor=#9D633E><FONT color=#cccccc>|</FONT></TD>');
   document.writeln('<TD align=middle bgColor=#9D633E><FONT color=#cccccc><A class=bm2 href="/cttnet-bin/cshow.cgi?showhtml=Y&cooklang=1'+icartNo1+'">展覽資訊</A></FONT></TD>');
   document.writeln('<TD width=10 align="center" bgColor=#9D633E><FONT color=#cccccc>|</FONT></TD>');
   document.writeln('<TD align=middle bgColor=#9D633E><FONT color=#cccccc><A class=bm2 href="/html/exhibition/kj200510/cecf_98index.htm'+icartNo+'">廣交會相關</A></FONT></TD>');
   document.writeln('<TD align=middle bgColor=#9D633E>&nbsp;</TD>');   
      
   document.writeln('</tr>');
   document.writeln('</table>');
   document.writeln('</td>');
   document.writeln('</tr>');
   document.writeln('</table>');
   
//擷取Cookie 
function GetCookie(name) { 
var result = null; 
var myCookie = document.cookie + ";"; 
var searchName = name + "="; 
var startOfCookie = myCookie.indexOf(searchName); 
var endOfCookie; 
if (startOfCookie != -1) { 
startOfCookie += searchName.length; 
endOfCookie = myCookie.indexOf(";",startOfCookie); 
result = unescape(myCookie.substring(startOfCookie, endOfCookie)); 
} 
return result; 
} 
