function header(){
   document.write('<div id="wrapper_header">');
   document.write('  <div id="header_container">');
   document.write('    <div id="header_upper_container">');
   document.write('      <div id="header_logo"><a href="/index.html" title="TagMatch-標籤交友-首頁"><img src="/images/index/logo_20081124A.gif" width="253" height="62" alt="TagMatch-標籤交友-首頁" /></a></div>');
   document.write('      <div id="header_company_menu_container">');
/*
   document.write('        <div id="header_logo2"><a href="/index_maker.html" title="TagMatch-首頁"><img src="/images/index/logo_20081124B.gif" width="223" height="62" alt="TagMatch-標籤交友" /></a></div>');
*/
   document.write('        <div id="header_company_menu">');
//   document.write('          <ul>');
//   document.write('            <li><a href="/index_maker.html" title="TagMatch-首頁">TagMatch 首頁</a></li>');
//   document.write('            <li><a href="/search/index.php?type=2" title="TagMatch-搜尋【紅娘】">搜尋【紅娘】</a></li>');
//   document.write('          </ul>');
   document.write('        </div>');
   document.write('      </div>');
   document.write('    </div>');
   document.write('    <div id="header_adv_text_container">');
   document.write('      <div class="header_adv_text">');
   document.write('        <ul>');
//   document.write('          <li><span class="adv_link"><a href="/tips/how_to_join_maker.html" title="TagMatch-標籤交友-當「媒人」是件有福報的好事">當「媒人」是件有福報的好事</a></span></li>');
//   document.write('          <li><span class="adv_link"><a href="/tips/how_to_join_general.html" title="TagMatch-標籤交友-快來填寫屬於你的標籤">快來填寫屬於你的標籤</a></span></li>');
//   document.write('          <li><span class="adv_link"><a href="/company/statement.html" title="TagMatch-標籤交友-用標籤貼滿你全身的性感帶">用標籤貼滿你全身的性感帶</a></span></li>');
//   document.write('          <li><span class="adv_link"><a href="/tips/how_to_matchmaker.html">喬太守亂點鴛鴦譜</a></span></li>');
   document.write('          <li><span class="adv_link"><a href="/search/" title="騎腳踏車去希臘找周杰倫" target="_blank">騎腳踏車去希臘找周杰倫</a></span></li>');
   document.write('          <li><span class="adv_link"><a href="/activity/20090112" title="測驗你的敗犬指數！" target="_blank">測驗你的敗犬指數！</a></span></li>');
   document.write('          <li><span class="adv_link"><a href="/search/" title="想找個浪漫細心的B型男" target="_blank">想找個浪漫細心的B型男</a></span></li>');
   document.write('          <li><span class="adv_link"><a href="http://www.bookast.com/" title="博客思聽中文有聲書摘" target="_blank">博客思聽中文有聲書摘</a></span></li>');
   document.write('        </ul>');
   document.write('      </div>');
   document.write('    </div>');
   document.write('    <div id="header_main_menu_container">');
   document.write('      <div id="FWTableContainer1809483287">');
   document.write('        <table border="0" cellpadding="0" cellspacing="0" width="950">');
   document.write('          <tr>');
   document.write('            <td><img src="/images/header/spacer.gif" width="12" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="23" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="24" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="25" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="24" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="24" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="24" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="112" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img src="/images/header/spacer.gif" width="10" height="1" border="0" alt="TagMatch-標籤交友" /></td>');
   document.write('          </tr>');
   document.write('          <tr>');
   document.write('            <td rowspan="2"><img name="menu_r1_c1" src="/images/header/menu_r1_c1.gif" width="12" height="61" border="0" id="menu_r1_c1" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><a href="/index.html" title="TagMatch-標籤交友-首頁"><img src="/images/header/menu_r1_c2.gif" alt="TagMatch-標籤交友" name="menu_r1_c2" width="112" height="37" border="0" id="menu_r1_c2" onmouseover="MM_swapImage(\'menu_r1_c2\',\'\',\'/images/header/menuB_r1_c2.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   document.write('            <td rowspan="2"><img name="menu_r1_c3" src="/images/header/menu_r1_c3.gif" width="23" height="61" border="0" id="menu_r1_c3" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><a href="javascript:;" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuShowMenu(\'MMMenuContainer1027110030_0\',\'MMMenu1027110030_0\',0,37,\'menu_r1_c4\');"><img src="/images/header/menu_r1_c4.gif" alt="TagMatch-標籤交友" name="menu_r1_c4" width="112" height="37" border="0" id="menu_r1_c4" onmouseover="MM_swapImage(\'menu_r1_c4\',\'\',\'/images/header/menuB_r1_c4.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   document.write('            <td rowspan="2"><img name="menu_r1_c5" src="/images/header/menu_r1_c5.gif" width="24" height="61" border="0" id="menu_r1_c5" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><a href="javascript:;" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuShowMenu(\'MMMenuContainer0008174414_1\',\'MMMenu0008174414_1\',0,37,\'menu_r1_c6\');"><img src="/images/header/menu_r1_c6.gif" alt="TagMatch-標籤交友" name="menu_r1_c6" width="112" height="37" border="0" id="menu_r1_c6" onmouseover="MM_swapImage(\'menu_r1_c6\',\'\',\'/images/header/menuB_r1_c6.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   document.write('            <td rowspan="2"><img name="menu_r1_c7" src="/images/header/menu_r1_c7.gif" width="25" height="61" border="0" id="menu_r1_c7" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><a href="javascript:;" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuShowMenu(\'MMMenuContainer0008174600_2\',\'MMMenu0008174600_2\',0,37,\'menu_r1_c8\');"><img src="/images/header/menu_r1_c8.gif" alt="TagMatch-標籤交友" name="menu_r1_c8" width="112" height="37" border="0" id="menu_r1_c8" onmouseover="MM_swapImage(\'menu_r1_c8\',\'\',\'/images/header/menuB_r1_c8.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   document.write('            <td rowspan="2"><img name="menu_r1_c9" src="/images/header/menu_r1_c9.gif" width="24" height="61" border="0" id="menu_r1_c9" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><a href="/interactive/message.php" title="TagMatch-標籤交友-我的留言板"><img src="/images/header/menu_r1_c10.gif" alt="TagMatch-標籤交友" name="menu_r1_c10" width="112" height="37" border="0" id="menu_r1_c10" onmouseover="MM_swapImage(\'menu_r1_c10\',\'\',\'/images/header/menuB_r1_c12.gif\',1);MM_swapImage(\'menu_r1_c10\',\'\',\'/images/header/menuB_r1_c10.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   document.write('            <td rowspan="2"><img name="menu_r1_c11" src="/images/header/menu_r1_c11.gif" width="24" height="61" border="0" id="menu_r1_c11" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><a href="javascript:;" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuShowMenu(\'MMMenuContainer1001155349_1\',\'MMMenu1001155349_1\',0,37,\'menu_r1_c12\');"><img src="/images/header/menu_r1_c12.gif" alt="TagMatch-標籤交友" name="menu_r1_c12" width="112" height="37" border="0" id="menu_r1_c12" onmouseover="MM_swapImage(\'menu_r1_c12\',\'\',\'/images/header/menuB_r1_c12.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   document.write('            <td rowspan="2"><img name="menu_r1_c13" src="/images/header/menu_r1_c13.gif" width="24" height="61" border="0" id="menu_r1_c13" alt="TagMatch-標籤交友" /></td>');
   var info=GetCookie("GeneralSession");
   if(info){
      document.write('            <td><a href="/member/logout.php" title="TagMatch-標籤交友-登出"><img src="/images/header/menu_logoutA_r1_c16.gif" alt="TagMatch-標籤交友" name="menu_r1_c14" width="112" height="37" border="0" id="menu_r1_c14" onmouseover="MM_swapImage(\'menu_r1_c14\',\'\',\'/images/header/menu_logoutB_r1_c16.gif\',1)" onmouseout="MM_swapImgRestore()" /></a></td>');
   } else {
      document.write('            <td><a href="/general/" title="TagMatch-標籤交友-登入"><img src="/images/header/menu_r1_c14.gif" alt="TagMatch-標籤交友" name="menu_r1_c14" width="112" height="37" border="0" id="menu_r1_c14" onmouseover="MM_swapImage(\'menu_r1_c14\',\'\',\'/images/header/menuB_r1_c14.gif\',1)" onmouseout="MM_swapImgRestore()" /></td>');
   }
   document.write('            <td rowspan="2"><img name="menu_r1_c15" src="/images/header/menu_r1_c15.gif" width="10" height="61" border="0" id="menu_r1_c15" alt="TagMatch-標籤交友" /></td>');
   document.write('          </tr>');
   document.write('          <tr>');
   document.write('            <td><img name="menu_r2_c2" src="/images/header/menu_r2_c2.gif" width="112" height="24" border="0" id="menu_r2_c2" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img name="menu_r2_c4" src="/images/header/menu_r2_c4.gif" width="112" height="24" border="0" id="menu_r2_c4" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img name="menu_r2_c6" src="/images/header/menu_r2_c6.gif" width="112" height="24" border="0" id="menu_r2_c6" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img name="menu_r2_c8" src="/images/header/menu_r2_c8.gif" width="112" height="24" border="0" id="menu_r2_c8" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img name="menu_r2_c10" src="/images/header/menu_r2_c10.gif" width="112" height="24" border="0" id="menu_r2_c10" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img name="menu_r2_c12" src="/images/header/menu_r2_c12.gif" width="112" height="24" border="0" id="menu_r2_c12" alt="TagMatch-標籤交友" /></td>');
   document.write('            <td><img name="menu_r2_c14" src="/images/header/menu_r2_c14.gif" width="112" height="24" border="0" id="menu_r2_c14" alt="TagMatch-標籤交友" /></td>');
   document.write('          </tr>');
   document.write('        </table>');
   document.write('        <div id="MMMenuContainer1027110030_0">');
   document.write('          <div id="MMMenu1027110030_0" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuResetTimeout();">');
   document.write('            <a href="/company/statement.html" title="TagMatch-標籤交友-成立宗旨" id="MMMenu1027110030_0_Item_0" class="MMMIFVStyleMMMenu1027110030_0" onmouseover="MM_menuOverMenuItem(\'MMMenu1027110030_0\');">成立宗旨</a>');
   document.write('            <a href="/company/feature.html" title="TagMatch-標籤交友-網站特色" id="MMMenu1027110030_0_Item_1" class="MMMIVStyleMMMenu1027110030_0" onmouseover="MM_menuOverMenuItem(\'MMMenu1027110030_0\');">網站特色</a>');
   document.write('            <a href="/company/sitemap.html" title="TagMatch-標籤交友-網站地圖" id="MMMenu1027110030_0_Item_2" class="MMMIVStyleMMMenu1027110030_0" onmouseover="MM_menuOverMenuItem(\'MMMenu1027110030_0\');">網路地圖</a>');
   document.write('            <a href="/faq/" title="TagMatch-標籤交友-FAQ" id="MMMenu1027110030_0_Item_3" class="MMMIVStyleMMMenu1027110030_0" onmouseover="MM_menuOverMenuItem(\'MMMenu1027110030_0\');">FAQ</a>');
   document.write('            <a href="/tips/how_to_join_general.html" title="TagMatch-標籤交友-免費加入流程" id="MMMenu1027110030_0_Item_4" class="MMMIVStyleMMMenu1027110030_0" onmouseover="MM_menuOverMenuItem(\'MMMenu1027110030_0\');">免費加入流程</a>');
   document.write('          </div>');
   document.write('        </div>');
   document.write('        <div id="MMMenuContainer0008174414_1">');
   document.write('          <div id="MMMenu0008174414_1" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuResetTimeout();">');
   document.write('            <a href="/search/" title="TagMatch-標籤交友-標籤搜尋" id="MMMenu0008174414_1_Item_0" class="MMMIFVStyleMMMenu0008174414_1" onmouseover="MM_menuOverMenuItem(\'MMMenu0008174414_1\');">標籤搜尋</a>');
   document.write('            <a href="/search/map.php" title="TagMatch-標籤交友-出沒地搜尋" id="MMMenu0008174414_1_Item_1" class="MMMIVStyleMMMenu0008174414_1" onmouseover="MM_menuOverMenuItem(\'MMMenu0008174414_1\');">出沒地搜尋</a>');
   document.write('          </div>');
   document.write('        </div>');
   document.write('        <div id="MMMenuContainer0008174600_2">');
   document.write('          <div id="MMMenu0008174600_2" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuResetTimeout();">');
   document.write('            <a href="/general/edit_tag.php" title="TagMatch-標籤交友-標籤設定" id="MMMenu0008174600_2_Item_0" class="MMMIFVStyleMMMenu0008174600_2" onmouseover="MM_menuOverMenuItem(\'MMMenu0008174600_2\');">標籤設定</a>');
   document.write('            <a href="/general/edit_map.php" title="TagMatch-標籤交友-出沒地設定" id="MMMenu0008174600_2_Item_1" class="MMMIVStyleMMMenu0008174600_2" onmouseover="MM_menuOverMenuItem(\'MMMenu0008174600_2\');">出沒地設定</a>');
   document.write('          </div>');
   document.write('        </div>');
   document.write('        <div id="MMMenuContainer1001155349_1">');
   document.write('          <div id="MMMenu1001155349_1" onmouseout="MM_menuStartTimeout(500);" onmouseover="MM_menuResetTimeout();">');
   document.write('            <a href="/general/edit.php" title="TagMatch-標籤交友-基本資料" id="MMMenu1001155349_1_Item_0" class="MMMIFVStyleMMMenu1001155349_1" onmouseover="MM_menuOverMenuItem(\'MMMenu1001155349_1\');">基本資料</a>');
   document.write('            <a href="/general/edit_match.php" title="TagMatch-標籤交友-媒合資料" id="MMMenu1001155349_1_Item_1" class="MMMIVStyleMMMenu1001155349_1" onmouseover="MM_menuOverMenuItem(\'MMMenu1001155349_1\');">媒合資料</a>');
   document.write('            <a href="/general/edit_photo.php" title="TagMatch-標籤交友-刊登相片" id="MMMenu1001155349_1_Item_2" class="MMMIVStyleMMMenu1001155349_1" onmouseover="MM_menuOverMenuItem(\'MMMenu1001155349_1\');">刊登相片</a>');
   document.write('            <a href="/interactive/browse.php" title="TagMatch-標籤交友-別人看的瀏覽頁" id="MMMenu1001155349_1_Item_3" class="MMMIVStyleMMMenu1001155349_1" onmouseover="MM_menuOverMenuItem(\'MMMenu1001155349_1\');">別人看的瀏覽頁</a>');
   document.write('          </div>');
   document.write('        </div>');
   document.write('      </div>');
   document.write('    </div>');
   document.write('  </div>');
   document.write('</div>');
}

function copyright_text(){
//   document.write('紅娘網站採用國際最高等級之SSL 256位元會員資料加密系統與安全電子交易機制，是全球安全認證的網站.<br>');
   document.write('易康網路行銷股份有限公司版權所有，禁止侵害，違者必究.<br>');
   document.write('&copy; 2010 TagMatch.tw All Rights Reserved.<br>');
   document.write('客服信箱: <span class="content_link"><a href="mailto:service@tagmatch.tw">service@tagmatch.tw</a></span><br>');
//   document.write('FAX: (886 2) 2762-5101<br>');
//   document.write('TEL: (886 2) 2761-8833，請於週二~週日PM1:30~PM9:00來電<br>');
   document.write('本站建議最佳瀏覽器為Firefox火狐以及IE7.0以上版本，<br>');
   document.write('最佳視窗解析度為1280x1024<br>');
}

function copyright(){
   document.write('<div id="wrapper_footer">');
   document.write('  <div id="footer_container">');
   document.write('    <div id="footer_left">');
   document.write('      <div class="footer_copyright_text">');
   copyright_text();
   document.write('      </div>');
   document.write('    </div>');
   document.write('    <div class="footer_menu">');
   document.write('      <ul>');
   document.write('        <li><a href="/about/record.html" title="TagMatch-標籤交友-大事記">大事記</a></li>');
   document.write('        <li><a href="/about/news.html" title="TagMatch-標籤交友-媒體報導">媒體報導</a></li>');
   document.write('        <li><a href="/company/marketing.html" title="TagMatch-標籤交友-廣告與合作">廣告與合作</a></li>');
   document.write('        <li><a href="/company/terms.html" title="TagMatch-標籤交友-使用者條款">使用者條款</a></li>');
   document.write('        <li><a href="/company/privacy.html" title="TagMatch-標籤交友-隱私權保護">隱私權保護</a></li>');
   document.write('        <li><a href="/company/prosecution.html" title="TagMatch-標籤交友-檢舉通報">檢舉通報</a></li>');
   document.write('        <li><a href="/company/contact.html" title="TagMatch-標籤交友-聯絡客服">聯絡客服</a></li>');
   document.write('      </ul>');
   document.write('    </div>');
   document.write('  </div>');
   document.write('</div>');
}

function googleanalytics(){
   var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
   document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
}

function GetCookie (name) {
   var arg = name + "=";
   var alen = arg.length;
   var clen = window.document.cookie.length;
   var i = 0;
   while (i < clen) {
      var j = i + alen;
      if (window.document.cookie.substring(i, j) == arg) return getCookieVal (j);
      i = window.document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break;
   }
   return null;
}

function getCookieVal (offset) {
   var endstr = window.document.cookie.indexOf (";", offset);
   if (endstr == -1) endstr = window.document.cookie.length;
   return unescape(window.document.cookie.substring(offset, endstr));
}

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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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];}
}
