function heading(){

koukoku = '<a href="http://px.a8.net/svt/ejp?a8mat=10G5JX+FQSOOI+14CS+5ZEMP" target="_blank"><img border="0" width="468" height="60" alt="" src="http://www26.a8.net/svt/bgt?aid=061219869952&wid=001&eno=01&mid=s00000005230001005000&mc=1"></a><img border="0" width="1" height="1" src="http://www11.a8.net/0.gif?a8mat=10G5JX+FQSOOI+14CS+5ZEMP" alt="">';

htmlmaker = '';
htmlmaker += '<div style="width:806px; margin-left:9px; font-size:9pt; line-height:15pt; color:#ff3300;">ペットのコミュニティサイト　プチラテ</div>';
htmlmaker += '<table border="0" cellpadding="0" cellspacing="0" class="menus"><tr>';
htmlmaker += '<td width="190px" rowspan="2"><a href="http://www.pet-ei.com/"><img src="http://www.pet-ei.com/imgs/logo.jpg" width="190" height="100" border="0" alt="プチラテ" /></a></td>';
htmlmaker += '<td width="498px" align="center">' + koukoku + '</td>';
htmlmaker += '<form method="get" action="http://www.google.co.jp/search" target="_blank">';
htmlmaker += '<input type="hidden" name="ie" value="UTF-8" />';
htmlmaker += '<input type="hidden" name="oe" value="UTF-8" />';
htmlmaker += '<input type="hidden" name="hl" value="ja" />';
htmlmaker += '<input type="hidden" name="domains" value="http://www.pet-ei.com/" />';
htmlmaker += '<input type="hidden" name="sitesearch" value="http://www.pet-ei.com/" />';
htmlmaker += '<td width="106px" rowspan="2" valign="bottom">';
htmlmaker += '<a href="http://www.google.co.jp/" target="_blank"><img src="http://www.pet-ei.com/imgs/Logo_25wht.gif" alt="Google" border="0" style="margin:5px 0 0"></a><br />';
htmlmaker += '<input type="text" name="q" size="18" maxlength="255" value="" class="googlequery" /><br />';
htmlmaker += '<input type="submit" name="btnG" value=" Google 検索 " class="googlesubmit" />';
htmlmaker += '</td></form></tr>';
htmlmaker += '<tr><td width="498px" valign="top" nowrap="nowrap">';
htmlmaker += '<a href="http://www.pet-ei.com/jobnavi/index.html"><img src="http://www.pet-ei.com/imgs/nbtn01.gif" width="83" height="26" border="0" alt="求人検索" /></a>';
htmlmaker += '<a href="http://www.pet-ei.com/petnavi/index.html"><img src="http://www.pet-ei.com/imgs/nbtn02.gif" width="83" height="26" border="0" alt="店舗検索" /></a>';
htmlmaker += '<a href="http://www.pet-ei.com/foster/"><img src="http://www.pet-ei.com/imgs/nbtn03.gif" width="83" height="26" border="0" alt="里親募集" /></a>';
htmlmaker += '<a href="http://www.pet-ei.com/life/"><img src="http://www.pet-ei.com/imgs/btn02.gif" width="83" height="26" border="0" alt="ペットライフ" /></a>';
htmlmaker += '<a href="http://www.pet-ei.com/dictionary/"><img src="http://www.pet-ei.com/imgs/nbtn04.gif" width="83" height="26" border="0" alt="ペット図鑑" /></a>';
htmlmaker += '<a href="http://www.pet-ei.com/fortunetell/index.html"><img src="http://www.pet-ei.com/imgs/btn06.gif" width="83" height="26" border="0" alt="ペット占い" /></a></td></tr>';
htmlmaker += '</table>';
htmlmaker += '<div class="swfer">';
htmlmaker += '<object data="http://www.pet-ei.com/news/img/head.swf" type="application/x-shockwave-flash" width="810px" height="125px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0" id="headswf">';
htmlmaker += '<param name="movie" value="http://www.pet-ei.com/news/img/head.swf" />';
htmlmaker += '<param name="menu" value="false" />';
htmlmaker += '<param name="quality" value="high" />';
htmlmaker += '<param name="scale" value="noscale" />';
htmlmaker += '<param name="salign" value="lt" />';
htmlmaker += '<param name="bgcolor" value="#ffffff">';
htmlmaker += '<embed src="http://www.pet-ei.com/news/img/head.swf" width="810px" height="125px" quality="high" bgcolor="#ffffff" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash"></embed>';
htmlmaker += '</object>';
htmlmaker += '</div>';

if(document.all){document.all.headsw.innerHTML = htmlmaker;}
else if(document.getElementById){document.getElementById("headsw").innerHTML = htmlmaker;}

}


function underlink(){
nowpage = document.URL;
nowid = nowpage.substr(31,1);
previd = Number(nowid) - 1;
nextid = Number(nowid) + 1;

under = '';
under += '<p class="navi-link">';
if(previd > 0){under += '＜＜　<a href="http://www.pet-ei.com/beetle/00' + previd + '/index.html">前のコーナーを読む</a>　　｜　　';}
under += '<a href="http://www.pet-ei.com/beetle/">トップへ</a>';
if(nextid < 8){under += '　　｜　　<a href="http://www.pet-ei.com/beetle/00' + nextid + '/index.html">次のコーナーを読む</a>　＞＞';}
under += '</p>';

if(document.all){document.all.underlink.innerHTML = under;}
else if(document.getElementById){document.getElementById("underlink").innerHTML = under;}
}

function ovn(v,w){
document.images[w].src= v + 'on.gif';
}
function ovt(v,w){
document.images[w].src= v + '.gif';
}

window.onload = heading;
