function writeHeads(str){

var autechre = '<table width="714" border="0" cellspacing="0" cellpadding="0">';
autechre += '<tr> ';
autechre += '<td height="78" align="left" valign="middle"><a href="../index.html"><img src="../img/logo.gif" alt="たべる、たいせつ　ホームページ" width="163" height="44" border="0"></a></td>';
autechre += '<td align="right"><img src="../img/coop_logo.gif" alt="co・op website" width="68" height="24"></td>';
autechre += '</tr>';
autechre += '<tr> ';
autechre += '<td colspan="2"><table width="714" border="0" cellspacing="0" cellpadding="0">';
autechre += '<tr> ';

if(str == "eat") autechre +=  '<td><img src="../img/bt_01_f2.jpg" alt="たべる、たいせつ" width="116" height="39"></td>'
else  autechre +=  '<td><a href="../eat/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image4\',\'\',\'../img/bt_01_f2.jpg\',1)"><img src="../img/bt_01.jpg" alt="たべる、たいせつ" name="Image4" width="116" height="39" border="0"></a></td>';

if(str == "torikumi") autechre += '<td><img src="../img/bt_02_f2.jpg" alt="コープの取り組み" width="120" height="39"></td>';
else  autechre +=  '<td><a href="../torikumi/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image5\',\'\',\'../img/bt_02_f2.jpg\',1)"><img src="../img/bt_02.jpg" alt="コープの取り組み" name="Image5" width="120" height="39" border="0"></a></td>';

if(str == "item") autechre += '<td><img src="../img/bt_03_f2.jpg" alt="コープ商品" width="120" height="39"></td>';
else  autechre +=  '<td><a href="../item/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image6\',\'\',\'../img/bt_03_f2.jpg\',1)"><img src="../img/bt_03.jpg" alt="コープ商品" name="Image6" width="120" height="39" border="0"></a></td>';

if(str == "safety") autechre += '<td><img src="../img/bt_04_f2.jpg" alt="食品の安全" width="120" height="39"></td>';
else  autechre +=  '<td><a href="http://jccu.coop/food-safety/index.html" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7\',\'\',\'../img/bt_04_f2.jpg\',1)"><img src="../img/bt_04.jpg" alt="食品の安全" name="Image7" width="120" height="39" border="0"></a></td>';

if(str == "fes") autechre += '<td><img src="../img/bt_05_f2.jpg" alt="たべるたいせつキッズクラブ" width="120" height="39"></td>';
else  autechre +=  '<td><a href="http://kidsclub.coop/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image8\',\'\',\'../img/bt_05_f2.jpg\',1)" target="_blank"><img src="../img/bt_05.jpg" alt="たべるたいせつキッズクラブ" name="Image8" width="120" height="39" border="0"></a></td>';

autechre += '<td><a href="http://ikuji.coop/pc/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image9\',\'\',\'../img/bt_06_f2.jpg\',1)" target="_blank"><img src="../img/bt_06.jpg" alt="子育てコープ" name="Image9" width="118" height="39" border="0"></a></td>';

autechre += '</tr>';
autechre += '</table></td>';
autechre += '</tr>';
autechre += '</table>';
autechre += '<img src="../img/spacer.gif" width="1" height="12"> ';

document.write(autechre);

}
