package commonhtml;

sub print_head{
	my $dir=$_[0];
	my $ret=<<"EOL";
<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ja" xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html/css charset=shift_jis" />
<title>kugesh -クゲッシュ-</title>
<meta name="keywords" content="ホームページのキーワードを入力してください（10個程度）" />
<meta name="description" content="ホームページの説明を入力してください" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<link href="$dir/default.css" rel="stylesheet" type="text/css" />
</head>

<body>

<!--ヘッダライン-->

<div id="contents">
  <div id="index">

    <img src="$dir/kugeimg/kugephoto.jpg" width="800" height="200" /><br>

  <div id="menu">
    <a href="$dir/top.html" onFocus="this.blur()">
      <img src='$dir/kugeimg/menu_top_0.jpg' onMouseOver="this.src='$dir/kugeimg/menu_top_1.jpg'"
       onMouseOut="this.src='$dir/kugeimg/menu_top_0.jpg'" />
    </a>
    <a href="$dir/profile.html" onFocus="this.blur()">
      <img src='$dir/kugeimg/menu_profile_0.jpg' onMouseOver="this.src='$dir/kugeimg/menu_profile_1.jpg'"
       onMouseOut="this.src='$dir/kugeimg/menu_profile_0.jpg'" />
    </a>
    <a href="$dir/kugephoto.html" onFocus="this.blur()">
      <img src='$dir/kugeimg/menu_photo_0.jpg' onMouseOver="this.src='$dir/kugeimg/menu_photo_1.jpg'"
       onMouseOut="this.src='$dir/kugeimg/menu_photo_0.jpg'" />
    </a>
    <a href="http://ameblo.jp/kugesh/" onFocus="this.blur()">
      <img src='$dir/kugeimg/menu_blog_0.jpg' onMouseOver="this.src='$dir/kugeimg/menu_blog_1.jpg'"
       onMouseOut="this.src='$dir/kugeimg/menu_blog_0.jpg'" />
    </a>
    <a href="$dir/media.html" onFocus="this.blur()">
      <img src='$dir/kugeimg/menu_media_0.jpg' onMouseOver="this.src='$dir/kugeimg/menu_media_1.jpg'"
       onMouseOut="this.src='$dir/kugeimg/menu_media_0.jpg'" />
    </a>
    <a href="$dir/shop.html" onFocus="this.blur()">
      <img src='$dir/kugeimg/menu_shop_0.jpg' onMouseOver="this.src='$dir/kugeimg/menu_shop_1.jpg'"
       onMouseOut="this.src='$dir/kugeimg/menu_shop_0.jpg'" />
    </a>
  </div>
EOL

	return $ret;
}


sub print_tail{
	my $ret=<<"EOL";
  </div>
  <div id="copy">  Copyright (C) <script language="javascript">document.write(new Date().getFullYear())</script> kuge. All Rights Reserved.</div>

</div>

<script type="text/javascript"><!--
var fhp_c_pc = navigator.userAgent.toLowerCase();
var fhp_ie = ((fhp_c_pc.indexOf("msie") != -1) && (fhp_c_pc.indexOf("opera") == -1));
var fhp_cs, fhp_wt, fhp_dm;

if (fhp_ie) {
        fhp_cs = document.charset;
}else{
        fhp_cs = document.characterSet;
}
fhp_dm = document.location;

fhp_wt = "";
fhp_wt = '<' + 'script src="http://web.fc2.com/footer/footer.php?cs=' + fhp_cs + '&dm=' + fhp_dm + '"><' + '/script>';
document.write(fhp_wt);
//--></script>
</body>
</html>
EOL

	return $ret;
}

1;