<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title>
<?php if(is_page() || is_single() || is_category()): wp_title(''); endif;
if(is_month()): echo get_the_time('Y年n月'); endif;
if(is_day()): echo get_the_time('Y年n月j日'); endif;
if(is_search()): echo '「'.$s.'」の検索結果'; endif;
if(is_tag()): echo 'タグ：'.wp_title('', false).'の記事一覧'; endif;
if(wp_title('', false))echo '-'; bloginfo('name'); ?>
</title>

<?php include (TEMPLATEPATH . '/metatag.php'); ?>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if(is_single() || is_page()):?><?php trackback_rdf(); ?><?php endif;?>

<?php wp_head(); ?>

</head>
<body class="layout-twt">
<a name="top" id="top"></a>
<div id="container">
<div id="container-inner">

<div id="header">
<div id="header-inner">
	<?php if(is_home()):?>
	<h1 id="header-description">
	<?php bloginfo('description'); ?>
	</h1>
	<?php else: ?>
	<div id="header-description">
	<?php bloginfo('description'); ?>
    </div>
    <?php endif;?>
	<div id="header-contents">
		<div class="left">
		<?php if(is_home()):?>
		<div id="header-name">
		<h2><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h2>
		</div>
		<?php else: ?>
		<div id="header-name"><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></div>
		<?php endif;?>
	</div>
	<div class="right">
		<div class="sub-contents"> <?php include (TEMPLATEPATH . '/mailto.php'); ?> |<a href="<?php include (TEMPLATEPATH . '/link_sitemap.php'); ?>">サイトマップ</a></div>
		<div class="header-search">
		<?php include (TEMPLATEPATH . '/searchform_header.php'); ?>
		</div>
	</div>
	<div class="clear"></div>
	</div>
</div>
</div>

<?php if(is_home()):?>
<?php include (TEMPLATEPATH . '/topmain_img.php'); ?>
<?php endif;?>
