// JavaScript Document
var container = document.getElementById("storyShorts");

var tempcontent = '';
var content_newImage = '<img src="Images/new_green.gif" alt="New!" width="31" height="11" border="0" />';

var content1_title = "CONR participates in Amalgam Arrow 'live-fly' exercise ";
var content1_body = "TYNDALL AIR FORCE BASE, Fla. – The North American Aerospace Defense Command and its geographical component, the Continental United States NORAD Region (CONR), will conduct Exercise Amalgam Arrow 10-05 Thursday. The short duration exercise will take place from 11 a.m. to noon Central Time over the skies of northern Minnesota and Wisconsin.";
var content1_date = "022310";
var content1_year = "2010";
var content1_new = true;

var content2_title = "NORAD Launches fighters as security measure";
var content2_body = "PETERSON AIR FORCE BASE, Colo. - North American Aerospace Defense Command launched two F-16 fighter aircraft from Ellington Field in Houston today to conduct an air patrol in response to the crash of a civilian aircraft into a  building in Austin, Texas.";
var content2_date = "021810";
var content2_year = "2010";
var content2_new = false;

var content3_title = "NORAD exercise planned for Washington, D.C. cancelled due to weather";
var content3_body = "TYNDALL AIR FORCE BASE, Fla. – The North American Aerospace Defense Command and its geographical component, the Continental United States NORAD Region (CONR), cancelled Tuesday's one-day exercise, Falcon Virgo 10-05, in the National Capital Region, due to weather.";
var content3_date = "020810_b";
var content3_year = "2010";
var content3_new = false;

if (!content1_new) {content_newImage = "";}
var content1 = '<p><a href="News/' + content1_year + '/' + content1_date + '.html" class="StoryHead"><strong>' + content1_title + '</strong></a>' + content_newImage + '<br />' + content1_body + '<br /><a href="News/' + content1_year + '/' + content1_date + '.html" class="BodylinkscolorCopy">(Full Story)</a></span><br /><img src="Images/Spacer.jpg" alt="Spacer" width="232" height="2" vspace="12" border="0" /><br />';

if (!content2_new) {content_newImage = "";}
var content2 = '<a href="News/' + content2_year + '/' + content2_date + '.html" class="StoryHead">' + content2_title + '</a>' + content_newImage + ' <br /><span class="body_story">' + content2_body + '</span><br /><a href="News/' + content2_year + '/' + content2_date + '.html" class="BodylinkscolorCopy">(Full Story)</a></span><br /><img src="Images/Spacer.jpg" alt="Spacer" width="232" height="2" vspace="12" border="0" /><br />';

if (!content3_new) {content_newImage = "";}
var content3 = '<a href="News/' + content3_year + '/' + content3_date + '.html" class="StoryHead">' + content3_title + '</a>' + content_newImage + '<br /><span class="body_story">' + content3_body + '</span><br /><a href="News/' + content3_year + '/' + content3_date + '.html" class="BodylinkscolorCopy">(Full Story)</a></span><br /><img src="Images/Spacer.jpg" alt="Spacer" width="232" height="2" vspace="12" border="0" /></p>';

var fullContent = tempcontent + content1 + content2 + content3;
container.innerHTML = fullContent;

function Right(str, n)
{
      if (n <= 0)
          return "";
      else if (n > String(str).length)
          return str;
      else
   {
          var iLen = String(str).length;
          return String(str).substring(iLen, iLen - n);
      }
}
