<?php get_header(); ?>
<?php include (TEMPLATEPATH.'/contentsHeader.php'); ?>

		
<div id="VSL">
<script type="text/javascript">RunFlashToppage();</script>
<noscript><img src="<?php bloginfo('url'); ?>/pts/index/vslPictNoscript.jpg" alt="" width="830" height="250" /></noscript>
<!--=====#/VSL======--></div>

<div id="WRP">
<div id="CNT">

<div id="CNT-WRP">
<div id="CNT-LEFT">

<?php query_posts('cat=4 & showposts=1'); ?>
<?php if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<h3><img src="<?php bloginfo('url'); ?>/pts/index/importantTitle.gif" alt="重要なお知らせ" width="410" height="40" /></h3>
<p class="eleIndexImportant"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br />
<span class="note"><?php the_time('Y年n月j日'); ?></span></p>
<?php endwhile; endif; ?>

<h3><img src="<?php bloginfo('url'); ?>/pts/index/eventTitle.gif" alt="イベント情報" width="410" height="40" border="0" usemap="#mapEvent" /><map name="mapEvent" id="mapEvent"><area shape="rect" coords="345,0,415,40" href="<?php bloginfo('url'); ?>/category/event" alt="一覧へ" /></map></h3>
<?php query_posts('cat=7 & showposts=3 & order=ASC'); ?>
<?php if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="110"><p class="eleIndexEventThum"><a href="<?php the_permalink(); ?>">
<?php $attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order'));
	if ( ! is_array($attachments) ) continue;
	$count = count($attachments);
	$first_attachment = array_shift($attachments); ?>
<?php echo wp_get_attachment_image($first_attachment->ID); ?>
</a></p>
</td>
<td><p><img src="<?php bloginfo('url'); ?>/pts/share/iconArrow1.gif" alt="" width="11" height="11" class="icon" /><a href="<?php the_permalink(); ?>" class="bold"><?php the_title(); ?></a><br />
<?php echo get_post_meta($post->ID,'日時',TRUE); ?><br />
<?php echo get_post_meta($post->ID,'会場',TRUE); ?></p>
</td>
</tr>
</table>
<?php endwhile; ?>
<p class="text alignRight"><a href="<?php bloginfo('url'); ?>/category/event">イベント一覧へ</a></p>
<?php endif; ?>

<?php query_posts('cat=9 & showposts=5 & order=ASC'); ?>
<h3 class="eleIndexCaption"><img src="<?php bloginfo('url'); ?>/pts/index/regularTitle.gif" alt="定期イベント" width="410" height="40" border="0" usemap="#mapRegular" /><map name="mapRegular" id="mapRegular"><area shape="rect" coords="345,0,415,40" href="<?php bloginfo('url'); ?>/category/regular" alt="一覧へ" /></map></h3>
<?php if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td width="110"><p class="eleIndexEventThum"><a href="<?php the_permalink(); ?>">
<?php $attachments = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order'));
	if ( ! is_array($attachments) ) continue;
	$count = count($attachments);
	$first_attachment = array_shift($attachments); 
	var_dump($attachments);
	?>
<?php echo wp_get_attachment_image($first_attachment->ID); ?>
</a></p>
</td>
<td><p><img src="<?php bloginfo('url'); ?>/pts/share/iconArrow1.gif" alt="" width="11" height="11" class="icon" /><a href="<?php the_permalink(); ?>" class="bold"><?php the_title(); ?></a><br />
<?php echo get_post_meta($post->ID,'会場',TRUE); ?></p>
</td>
</tr>
</table>
<?php endwhile; endif; ?>

<?php query_posts('cat=1 & showposts=3'); ?>
<h3 class="eleIndexCaption"><img src="<?php bloginfo('url'); ?>/pts/index/newsTitlte.gif" alt="新着情報" width="410" height="40" border="0" usemap="#mapNews" /><map name="mapNews" id="mapNews"><area shape="rect" coords="345,0,415,40" href="<?php bloginfo('url'); ?>/category/news" alt="一覧へ" /></map></h3>
<ul class="text" id="eventList">
<?php if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br />
<?php the_time('Y年n月j日'); ?></li>
<?php endwhile; endif; ?>
</ul>

<!--=====#/CNT-LEFT======--></div>

<div id="CNT-RIGHT">
<ul class="ele-index-pagelist">
<?php wp_list_pages('sort_column=post_date & title_li=& meta_key=表示 & meta_value=top ') ?>
</ul>

<h3><a href="<?php bloginfo('url'); ?>/category/message"><img src="<?php bloginfo('url'); ?>/pts/index/messageTitle.gif" alt="ふれあいメッセージ" width="200" height="40" border="0" /></a></h3>
<p class="nopadding"><a href="http://www.shiga-kibougaoka.jp/message-entry/"><img src="<?php bloginfo('url'); ?>/pts/index/messageBtnEntry.gif" alt="利用者の皆様の声を募集しています！【投稿する】" width="200" height="45" border="0" /></a></p>
<?php query_posts('cat=5 & showposts=3'); ?>
<?php if (have_posts() ) : while (have_posts() ) : the_post(); ?>
<p class="nopadding"><img src="<?php bloginfo('url'); ?>/pts/index/messageBgTop.gif" alt="" width="200" height="20" /></p>
<div class="messageArticle">
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">続きを表示</a></p>
<!--./messageArticle--></div>
<p class="nopadding"><img src="<?php bloginfo('url'); ?>/pts/index/messageImgBottom.gif" alt="" width="200" height="20" /></p>
<?php endwhile; endif; ?>
<p class="nopadding"><a href="<?php bloginfo('url'); ?>/category/message/"><img src="<?php bloginfo('url'); ?>/pts/index/messageBtnList.gif" alt="一覧" width="200" height="40" border="0" /></a></p>
<p><img src="<?php bloginfo('url'); ?>/pts/index/bannerEcology.gif" alt="エコアクション21の認証事業者です。" width="200" height="150" /></p>
<p><img src="<?php bloginfo('url'); ?>/pts/index/bannerAED.gif" alt="園内にAEDを設置しています。" width="200" height="150" /></p>
<!--=====#/CNT-RIGHT======--></div>
<!--=====#/CNT-WRP======--></div>

<p class="styleBackToPagetop"><a href="#PAGETOP"><img src="pts/share/iconPagetop.gif" alt="ページの上部へ戻る" width="84" height="17" border="0" /></a></p>

<?php include (TEMPLATEPATH.'/adText.php'); ?>

<!--=====#/CNT======--></div>


<div id="SDB">

<!--div class="pickupBox">
<h3><img src="<?php bloginfo('url'); ?>/pts/index/pickupTitlte.jpg" alt="ピックアップ" width="200" height="30" /></h3>
<div class="pickupBoxBody">
<p class="alignCenter"><a href="<?php bloginfo('url'); ?>/special/080815-0-1/index.html"><img src="<?php bloginfo('url'); ?>/special/080815-0-1/pict10-s.jpg" alt="" width="160" height="120" border="1" /></a></p>
<p><a href="<?php bloginfo('url'); ?>/special/080815-0-1/index.html">イベントレポート<br />
<span class="font-10">8月4日～行われたみんなで作ろうキッズ彫刻in希望が丘のレポートです。</span></a></p>
</div>
<p class="nopadding"><img src="<?php bloginfo('url'); ?>/pts/index/pickupImgBottom.gif" alt="" width="200" height="15" /></p>
</div-->

<p><img src="<?php bloginfo('url'); ?>/pts/index/bannerMobile.gif" alt="携帯電話版サイトのお知らせ" width="200" height="125" /></p>

<?php include (TEMPLATEPATH.'/adSquare.php'); ?>

<div class="spBox">
<h3><img src="<?php bloginfo('url'); ?>/pts/index/spTitlte.jpg" alt="スペシャルコンテンツ" width="200" height="30" /></h3>
<div class="spBoxBody">
<p class="alignCenter"><a href="<?php bloginfo('url'); ?>/special/cm/index.html"><img src="<?php bloginfo('url'); ?>/pts/index/spPictKachofugetsu.jpg" alt="" width="160" height="120" border="1" /></a></p>
<p><a href="<?php bloginfo('url'); ?>/special/cm/index.html">希望が丘イメージムービー <br />
<span class="font-10">希望が丘公園を動画でご紹介！</span></a></p>
<!--./spBoxBody--></div>
<p class="nopadding"><img src="<?php bloginfo('url'); ?>/pts/index/spImgBottom.gif" alt="" width="200" height="15" /></p>
<!--./spBox--></div>


<!--=====#/SDB======--></div>
<!--=====#/WRP======--></div>

<br clear="all" />

<?php get_footer(); ?>

