<?php get_header(); ?>

    <h3 class="title">Projects</h3>
    <div id="projects-homepage">
    	<div id="projects-featured">
    	<h4>Featured</h4>
    	<img src="<?php bloginfo('template_url'); ?>/gfx/featured_concept-series.gif" alt="Mozilla Labs Concept Series" />
    	<p>The concept series is an initiative to make it easy to contribute to the development of the online experience.</p>
    	<p><a href="<?php bloginfo('url'); ?>/projects/concept-series/"><img src="<?php bloginfo('template_url'); ?>/gfx/btn_more_project.gif" alt="More about this project" /></a></p>
    	</div>
    	<div id="projects-more">
    	<ul id="projects">
	    <?php
            global $post;
            $myposts = get_posts('post_type=page&post_parent=65&order=ASC&orderby=post_title&exclude=65&numberposts=3&orderby=RAND()');
            foreach($myposts as $post) :
	    ?>
	        <li>
    		<a href="<?php bloginfo('url'); ?>/projects/<?php echo $post->post_name; ?>/"><img class="left" src="<?php bloginfo('template_url'); ?>/gfx/icon_<?php echo $post->post_name; ?>_S.gif" alt="<?php echo $post->post_title; ?>" /></a><h3><a href="<?php bloginfo('url'); ?>/projects/<?php echo $post->post_name; ?>/"><?php echo $post->post_title; ?></a></h3>
    		<?php echo get_post_meta("$post->ID", 'project-excerpt-mini', true); ?>
    		</li>
	    <?php
	        endforeach;
	    ?>
    	</ul>
    	</div><!--end projects-features-->
    </div><!--end projects-homepage-->

    <div id="blog-homepage">
    	<div class="blog-home-one">
    	<h3 class="title">Blog</h3>
    	</div>
    	
        <?php 
            // Get the last 4 posts in the Blog category.
            query_posts('tag=announcement&showposts=4');
                
             if ( have_posts() ) : while ( have_posts() ) : the_post();
        ?>
        <div class="blog-home-two">
            <h5><?php the_time('m.d.Y') ?></h5>
            <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
            <p><?php the_excerpt(); ?><a href="<?php the_permalink(); ?>">Read more &raquo;</a></p>
        </div>
    	<?php endwhile; else: ?>
            <p>Sorry, no posts matched your criteria.</p>
        <?php endif; ?>
	
    	<!--Feature & Highlight content-->
<!--
    	<div class="blog-home-three">
    		<div id="promo-home">
    			<!--swappable header image-->
    			<img src="<?php bloginfo('template_url'); ?>/gfx/promo_header_ExtendFirefox.jpg" alt="Extend Firefox 3" />
    			<h4>Extend Firefox 3</h4>
    			<p><strong>Are you ready to take the first hill? Now is your chance. The next edition of Extend Firefox is here!</strong></p>
    			<p><a href="http://www.extendfirefox.com">Extend Firefox 3</a> is a global developer contest with prizes awarded for developing new <a href="http://addons.mozilla.org">Firefox Add-ons</a> for the upcoming production release of <a href="http://www.mozilla.com/firefox">Firefox 3</a>.</p>
    		</div>
    		<div id="promo-home-footer"></div>
    	</div>
-->
    <br clear="all" />
    </div><!--end blog-homepage-->

<?php get_footer(); ?>
