{info} [LIVESTREAM|Livestream] now on -- watch now for guided coverage of the KiwiMars mission{info}
{section}
{column:width=45%}

h4. Recent updates

[!PORTAL:Home^rss_feed.gif|border=0! Subscribe via RSS|http://feeds.feedburner.com/kiwispace/news]

{report-table:maxResults=5}
  {content-reporter:spaces=MDRSMS|type=news|labels=-draft}
    {date-sort:content:modification date|order=descending}
  {content-reporter}
  {report-column:title=Date     }
    {report-info:content:creation date|format=d MMM}
    {report-info:content:creation date|format=HH:mm}
  {report-column}
  {report-column:title=Update}
    *{report-info:content:title|link=true|default=_none_}*
    {report-info:content:body > text:first 200|render=wiki}... {report-link:content:url}Read more{report-link}
    {report-on:content:attachments}{report-image:attachment:thumbnail path|width=50px|height=50px}{report-on}
  {report-column}
{report-table}

{column}
{column:width=30%}

| h4. Follow the Journey \\
!mappreview.jpg|border=1! \\
Where have the crew travelled on 'Mars'? |

h4. Today's schedule

{include:Schedule}

h4. Other stuff to factor in

* Caption / announcement / etc \|
* Some form of intro text, linking to 'about the mission' page/etc
* Facebook/Google+/Twitter integration -- comments?
* "Days elapsed/remaining"


{column}
{column:width=25%}

h4. Live Feed

{comment} ---------------------------- AJAX UPDATE ----------------------------------- {comment}
{html}
  <img id="webcam" src="http://www.freemars.org/mdrscam/MDRS-cam1.jpg" width="200" height="150">

  <script type="text/javascript">
    var hoursDiff = +6;
    var currentCam = 0;
    var cams = new Array();
    cams[0] = "http://www.freemars.org/mdrscam/MDRS-cam1.jpg";
    cams[1] = "http://www.freemars.org/mdrscam/MDRS-left.jpg";
    cams[2] = "http://www.freemars.org/mdrscam/MDRS-cam3.jpg";
    cams[3] = "http://www.freemars.org/mdrscam/outside/observatory_inside_cam.jpg";
    cams[4] = "http://www.freemars.org/mdrscam/outside/MDRS-astro-cam.jpg";
    cams[5] = "http://www.freemars.org/mdrscam/outside/MDRS-astro-cam-S.jpg";

    jQuery(document).ready(function($) {
      setTimeout("webcamCycle()", 1000*5);
    });

    function webcamCycle() {
      now = new Date();
      uniq = "?"+now.getTime();

      var numCams = 6;

      // if it's after 9pm or before 6am then only show the first 3 cams
      if ( (now.getHours() + hoursDiff >= 21) || (now.getHours() + hoursDiff <= 6) ) {
        numCams = 3;
      }
 
      currentCam++;
      if (currentCam > numCams-1) { 
        currentCam = 0;
      }

      document.all.webcam.src = cams[currentCam] +uniq;

      setTimeout("webcamCycle()", 1000*5);
    }
</script>
{html}
{comment} ----------------------------    END    ----------------------------------- {comment}


h4. Crew Status

{style}
   .crewstatus * { 
       font-family: helvetica,arial,sans-serif !important;
       font-size: 11px !important; 
       line-height: 15px !important;
       letter-spacing: 0px !important
    }
   .crewstatus table { width: 200px; }
{style}
{html}<div class="crewstatus">{html}
| !MDRS:Meet the Crew^Hari.jpg|border=1,width=40!\\ | _[Haritina Mogosanu|MDRS:CDR - Commander|overlay]_ \\
_Mission Commander_ \\
Location: {html}<span style="font-weight: bold;" id="haritina_location">...</span>{html} \\
Task: {html}<span style="font-weight: bold;" id="haritina_task">...</span>{html} |
| !MDRS:Meet the Crew^Mike.jpg|border=1,width=40! | _[Mike Bodnar|MDRS:XO - First Officer|overlay]_ \\
_First Officer_ \\
Location: {html}<span style="font-weight: bold;" id="mike_location">...</span>{html} \\
Task: {html}<span style="font-weight: bold;" id="mike_task">...</span>{html} |
| !MDRS:Meet the Crew^Annalea.jpg|border=1,width=40! | _[Annalea Beatie|MDRS:MSL - Mission Specialist Life Sciences|overlay]_ \\
_Mission Specialist_ \\
Location: {html}<span style="font-weight: bold;" id="annalea_location">...</span>{html} \\
Task: {html}<span style="font-weight: bold;" id="annalea_task">...</span>{html} |
| !MDRS:Meet the Crew^Don.jpg|border=1,width=40! | _[Don Stewart|MDRS:FE - Flight Engineer|overlay]_ \\
_Flight Engineer_ \\
Location: {html}<span style="font-weight: bold;" id="don_location">...</span>{html} \\
Task: {html}<span style="font-weight: bold;" id="don_task">...</span>{html} |
| !MDRS:Meet the Crew^Ali copy.jpg|border=1,width=40!\\ | _[Ali Harley|MDRS:MSP - Mission Specialist Planetary Sciences|overlay]_ \\
_Geologist_ \\
Location: {html}<span style="font-weight: bold;" id="ali_location">...</span>{html} \\
Task: {html}<span style="font-weight: bold;" id="ali_task">...</span>{html} |
| !MDRS:Meet the Crew^Bruce.jpg|border=1,width=40! | _[Bruce Ngataierua|MDRS:HSO - Health & Safety Officer|overlay]_ \\
_Health & Safety Officer_ \\
Location: {html}<span style="font-weight: bold;" id="bruce_location">...</span>{html} \\
Task: {html}<span style="font-weight: bold;" id="bruce_task">...</span>{html} |
{html}</div>{html}


h4. Weather on Mars
{html}<span style="display: block !important; width: 180px; text-align: center; font-family: sans-serif; font-size: 12px;"><a href="http://www.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:84734.1.99999&bannertypeclick=wu_simplewhite" title="Hanksville, Utah Weather Forecast"><img src="http://weathersticker.wunderground.com/weathersticker/cgi-bin/banner/ban/wxBanner?bannertype=wu_simplewhite_metric&airportcode=K4HV&ForcedCity=Hanksville&ForcedState=UT&zipcode=84734&language=EN" alt="Find more about Weather in Hanksville, UT" width="160" /></a><br></span>{html} 

{column}
{section}


h1. REGISTER FOR UPDATES


{html}
<div id="fb-root"></div>
<script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript" src="http://www.worldspaceweek.org.nz/2011/js/fbml5.js"></script>
<script>
	//<![CDATA[
    FB.init({
	    	appId: '196041117116188', 
		   	status: false, 
			cookie: true,
			fbml5: true
		});
 	//]]>
</script>
<embed data-fb="comments" data-href="" data-num_posts="3" data-width="820"/>
{html}

{comment} ---------------------------- AJAX UPDATE ----------------------------------- {comment}
{html}
<!-- ENABLE FOLLOWING WHEN TESTING IN EDITOR -->
<!--
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
-->

<script src="/mark/jquery-ui.min.js"></script>
<link href="/mark/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
  jQuery(document).ready(function($) {
    ajax_backgroundupdates();
  });

  function ajax_backgroundupdates() {
    $.ajax({
      type: "GET",
      url: "http://www.kiwispace.org.nz/mark/kiwimars/missioninfo/info_crewstatus.php",
      dataType: "script"
    });
    setTimeout("ajax_backgroundupdates()", 1000*10);
  }
</script>
{html}
{comment} ----------------------------    END    ----------------------------------- {comment}