// 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 = "NORAD will conduct exercise flights to test its response capability ";
var content1_body = "PETERSON AIR FORCE BASE, Colo. - The North American Aerospace Defense Command (NORAD) will conduct exercise flights today from 8 a.m. to 10 a.m. Mountain Time as they practice intercept and identification procedures. The exercise flights will take place over Alberta, Canada.";
var content1_date = "082610";
var content1_year = "2010";
var content1_new = true;

var content2_title = "Holding the line: TFRs, NORAD and general aviation";
var content2_body = "PETERSON AIR FORCE BASE, Colo. - Temporary Flight Restrictions are nothing new, but in the wake of the Sept. 11 attacks they've taken on a much more important role in the security of events and elected officials, often to the dismay of private aviators.";
var content2_date = "082510";
var content2_year = "2010";
var content2_new = false;

var content3_title = "NORAD will conduct exercise flights to test its response capability ";
var content3_body = "PETERSON AIR FORCE BASE, Colo. - The North American Aerospace Defense Command (NORAD) will conduct exercise flights today from 9 a.m. to 11 a.m. Pacific Daylight Time as they practice intercept and identification procedures. The exercise flights will take place over Central California.";
var content3_date = "082410";
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);
      }
}
