var header_contents = "";
header_contents += "<div id=\"header\" style=\"background-image: url(http://www.checkatoilet.com/images/top_title.jpg) \">";
header_contents += "<div style=\"position:absolute;top:60px;left:350px;font-size:13px;\">";
header_contents += "<a href=\"http://www.en.checkatoilet.com/\">＞ English</a>";
header_contents += "</div>";
header_contents += "<div id=\"headerbanner\">";

//バナー(ランダム表示）
var bannertags = new Array();
bannertags.push("<a href=\"http://www.for-dab.jp/\"><img src=\"http://www.checkatoilet.com/images/bnr_w468_h60.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"ＮＰＯ運転免許取得支援センター\"></a>");
bannertags.push("<a href=\"http://www.kaigo-town.jp/\"><img src=\"http://www.checkatoilet.com/images/attaka-town.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"介護たすけあいホームページ　あったかタウン\"></a>");
bannertags.push("<a href=\"http://www.temil.jp/map/dekaketemil/index.html \"><img src=\"http://www.checkatoilet.com/images/temil_banner.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"でかけテミル\"></a>");
bannertags.push("<a href=\"http://www.ekipedia.jp/\"><img src=\"http://www.checkatoilet.com/images/ekipedia_banner.jpg\" border=\"0\" width=\"468\" height=\"60\" alt=\"えきペディア　全国の地下鉄駅のバリアフリー情報\"></a>");
bannertags.push("<a href=\"http://www.psa.or.jp/\"><img src=\"http://www.checkatoilet.com/images/psa.jpg\" border=\"0\" width=\"468\" height=\"60\" alt=\"特定非営利活動法人プレジャーサポート協会\"></a>");
bannertags.push("<a href=\"http://widgets.access-company.com/jp/\"><img src=\"http://www.checkatoilet.com/images/nfwidgets.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"NetFront (R) Widgets コミュニティサイト　モバイルでウィジェットを楽しもう！\"></a>");
bannertags.push("<a href=\"http://petamap.jp/\"><img src=\"http://www.checkatoilet.com/images/petamap468.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"地図から「知図」へ３５万件以上の情報が終結 Peta Map\"></a>");
bannertags.push("<a href=\"http://rurubu.travel/\"><img src=\"http://www.checkatoilet.com/images/checkbannar.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"宿・ホテル予約は「るるぶトラベル」\"></a>");
bannertags.push("<a href=\"http://shinjuku.mypl.net\"><img src=\"http://www.checkatoilet.com/images/banner_shinjuku_pr.gif\" border=\"0\" width=\"468\" height=\"60\" alt=\"（仮称）新宿区ポータル\"></a>");
bannertags.push("<a href=\"http://www.gallery.checkatoilet.com/\"><img src=\"http://www.checkatoilet.com/images/ga468.jpg\" border=\"0\" width=\"468\" height=\"60\" alt=\"「Check A Toilet Gallery」 こだわりの「トイレ」展　募集開始\"></a>");
bannertags.push("<a href=\"http://www.rakuten.co.jp/phrille/\"><img src=\"http://www.checkatoilet.com/images/marse2.jpg\" border=\"0\" width=\"468\" height=\"60\" alt=\"アパレルブランド　フリル\"></a>");

ShuffleArray(bannertags);
if (bannertags.length>1) {
header_contents += bannertags[0];
}

header_contents += "</div>";
header_contents += "</div>";
header_contents += "<div id=\"topmenu\">";
header_contents += "<table id=\"topmenu\">";
header_contents += "<tr>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<img src=\"http://www.checkatoilet.com/images/menu_left.gif\" border=\"0\">";
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<a href=\"http://www.checkatoilet.com/\"><img alt=\"トップへ\" src=\"http://www.checkatoilet.com/images/menu_gotop.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_gotop_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_gotop.gif'\"></a>";
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<a href=\"http://www.checkatoilet.com/map/map.php\"><img alt=\"トイレを検索\" src=\"http://www.checkatoilet.com/images/menu_search.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_search_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_search.gif'\"></a>";
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
if (typeof(map) != 'undefined'){
	header_contents += "<a href=\"javascript:goRecodePage();\"><img alt=\"トイレを登録\" src=\"http://www.checkatoilet.com/images/menu_mark.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_mark_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_mark.gif'\"></a>";
}
else{
	header_contents += "<a href=\"http://www.checkatoilet.com/map/map_recode.php\"><img alt=\"トイレを登録\" src=\"http://www.checkatoilet.com/images/menu_mark.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_mark_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_mark.gif'\"></a>";
}
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<a href=\"http://www.checkatoilet.com/usage/\"><img alt=\"使い方\" src=\"http://www.checkatoilet.com/images/menu_usage.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_usage_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_usage.gif'\"></a>";
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<a href=\"http://www.checkatoilet.com/about/\"><img alt=\"実施事例\" src=\"http://www.checkatoilet.com/images/menu_sample.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_sample_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_sample.gif'\"></a>";
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<a href=\"http://www.checkatoilet.com/faq/\"><img alt=\"よくあるご質問\" src=\"http://www.checkatoilet.com/images/menu_faq.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_faq_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_faq.gif'\"></a>";
header_contents += "</td>";
header_contents += "<td align=\"left\" id=\"topmenu\">";
header_contents += "<a href=\"http://www.checkatoilet.com/links/\"><img alt=\"リンク集\" src=\"http://www.checkatoilet.com/images/menu_links.gif\" border=\"0\" onMouseOver=\"this.src='http://www.checkatoilet.com/images/menu_links_over.gif'\" onMouseOut=\"this.src='http://www.checkatoilet.com/images/menu_links.gif'\"></a>";
header_contents += "</td>";
header_contents += "<td align=\"right\" id=\"topmenu\">";
header_contents += "<img src=\"http://www.checkatoilet.com/images/menu_right.gif\" border=\"0\">";
header_contents += "</td>";
header_contents += "</tr>";
header_contents += "</table>";
header_contents += "</div>";

document.write(header_contents);

// ArrayShuffle
function ShuffleArray(list) {
  if (list.length < 2) return list;
  
  var i = list.length;
  while (--i) {
    var j = Math.floor(Math.random() * (i + 1));
    var k = list[i];
    list[i] = list[j];
    list[j] = k;
  }
  return list;
}
