

   
// Create arrays of articles
syndicate.article_title = new Array;
syndicate.article_summary = new Array;
syndicate.article_date = new Array;
syndicate.article_url = new Array;

// This section of the script is published by Article Manager
syndicate.index = 0;
  syndicate.article_title[ syndicate.index ] = 'Local  Woman\'s Camera Was Her Ticket To The World';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_7437.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 14, 2007';
  syndicate.article_summary[ syndicate.index ] = 'Ethel Kurland lit up the world with her bulky 5-by-7 box camera, dashing across the Atlantic on luxury liners more times than she can remember, snapping pictures of some of the most memorable figures of the 20th century. Seventy years later, she has written an account of the glamorous era of the \'30s and \'40s in her book, The Courage of Ignorance. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Legends of the Knights Templar...';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_5211.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 21, 2005';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'The Original Men Part II ';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_5150.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul  5, 2005';
  syndicate.article_summary[ syndicate.index ] = 'James Parker Shield, Vice-Chair of the Little Shell Tribe in Montana, shared his recollections and experiences of his tribe’s continued quest for Federal recognition. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'The Original Men or ‘the People with no souls’ Part I';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4948.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 26, 2005';
  syndicate.article_summary[ syndicate.index ] = 'The year 1892 was the beginning of a difficult time for the Little Shell Chippewa Tribe living in Montana. While tribal Chief Little Shell was away on a hunting expedition, with others tribal members, a federal Indian agent purchased their land.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = '$1.9 Billion in railroad improvements coming in 2005';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4813.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 29, 2005';
  syndicate.article_summary[ syndicate.index ] = 'BNSF Railway Company, historically, is a major employer in the northwest region, according to Gus Melonas, regional director of public affairs for BNSF in Seattle, WA.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Historical view of David Thompson…A follow up to the story of Margarite';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4518.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan  4, 2005';
  syndicate.article_summary[ syndicate.index ] = 'Last week we learned of Margarite and the 24 years she spent traveling with David Thompson. Now we journey into the life of Thompson, the man who mapped 1.5 million square miles of land mass in the Northwest United States and Canada.  ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bonners Ferry resident goes international…';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4484.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 28, 2004';
  syndicate.article_summary[ syndicate.index ] = 'She captured the attention of the Canadians, as she performed the persona of Margarite last July at the Kootenay Storytelling Festival in Nelson, BC.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bonners Ferry resident stumps neighbors';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4468.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 21, 2004';
  syndicate.article_summary[ syndicate.index ] = 'As Boundary County resident, Bryan Navarro, walked through the woods in Pack River last summer, he saw it…awesome in its natural setting, 12-foot tall, nine-feet across, massive and charred with one sprig of new life springing forth.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Lincoln played vital role in Idaho history';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4459.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 19, 2004';
  syndicate.article_summary[ syndicate.index ] = 'President Abraham Lincoln was actively interested in the early development of the Idaho Territory.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Origin of name "IDAHO" is traced by authority on early-day history';
  syndicate.article_url[ syndicate.index ] = 'http://www.ruralnorthwest.com/artman/publish/article_4422.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 10, 2004';
  syndicate.article_summary[ syndicate.index ] = 'A 1963 article explaining the now discarded explanation of the origin of the name "Idaho."';
  syndicate.index++;







// Set defaults for arguments if user hasn't set them
if (syndicate.title_fontface == null)    { syndicate.title_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.title_fontsize == null)    { syndicate.title_fontsize = '2'; }
if (syndicate.title_fontcolor == null)   { syndicate.title_fontcolor = '#003399'; }
if (syndicate.title_fontbold == null)    { syndicate.title_fontbold = true; }
if (syndicate.title_fontital == null)    { syndicate.title_fontital = false; }
if (syndicate.date_fontface == null)     { syndicate.date_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.date_fontsize == null)     { syndicate.date_fontsize = '1'; }
if (syndicate.date_fontcolor == null)    { syndicate.date_fontcolor = '#6699cc'; }
if (syndicate.date_fontbold == null)     { syndicate.date_fontbold = false; }
if (syndicate.date_fontital == null)     { syndicate.date_fontital = false; }
if (syndicate.date_fontunder == null)    { syndicate.date_fontunder = false; }
if (syndicate.summary_fontface == null)  { syndicate.summary_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.summary_fontsize == null)  { syndicate.summary_fontsize = '2'; }
if (syndicate.summary_fontcolor == null) { syndicate.summary_fontcolor = '#6699cc'; }
if (syndicate.summary_fontbold == null)  { syndicate.summary_fontbold = false; }
if (syndicate.summary_fontital == null)  { syndicate.summary_fontital = false; }
if (syndicate.summary_fontunder == null) { syndicate.summary_fontunder = false; }

if (syndicate.title_maxlength == null)   { syndicate.title_maxlength = 0; }
if (syndicate.summary_maxlength == null) { syndicate.summary_maxlength = 0; }

if (syndicate.bgcolor == null)           { syndicate.bgcolor = '#ffffff'; }
if (!syndicate.max_articles)             { syndicate.max_articles = syndicate.article_title.length; }  // !syndicate.max_articles catches null and zero
if (syndicate.display_date == null)      { syndicate.display_date = true; }
if (syndicate.display_summaries == null) { syndicate.display_summaries = true; }

// TWO LINES ADDED by davenet on June 24. 2003
if (!syndicate.first_article) { syndicate.first_article = 0; } 
if (!syndicate.last_article) { syndicate.last_article = syndicate.max_articles; } 


// Don't allow user to display too many articles
if (syndicate.max_articles > syndicate.article_title.length) {
  syndicate.max_articles = syndicate.article_title.length;
}

/*
//Function to crop text on word boundaries
function crop_text(text, max_length) {

  // If the string is already small enough, return it unscathed
  if (text.length <= max_length) { return( text ); }

  // If the user has specified a length of 0, it means he wants the whole thing
  if (max_length == 0) { return( text ); }

  // Start looking for a space, leaving space for an elipsis on the end
  var test_length = (max_length - 3);
  if (test_length < 1) { return( '...' ); }   // max_length too small
  while (text.charAt(test_length) != ' ') {
    test_length--;

    // If we didn't find any spaces to break on, return the string broken at max_length
    if (test_length == 0) { return( text.substring(0, max_length - 3) + '...' ); }
  }

  return text.substring(0, test_length) + '...';
}
*/

// List our articles, stopping if the user doesn't want any more
//  ORIGINAL LINE altered BELOW BY davenet June 24,2003 // for ( syndicate.index = 0; syndicate.index < syndicate.max_articles ; syndicate.index++ ) {
for (syndicate.index = syndicate.first_article; syndicate.index < syndicate.last_article ; syndicate.index++ ) {


  /*syndicate.article_title[syndicate.index] = crop_text(syndicate.article_title[syndicate.index], syndicate.title_maxlength);
  syndicate.article_summary[syndicate.index] = crop_text(syndicate.article_summary[syndicate.index], syndicate.summary_maxlength);*/

  document.write('<tr><td align="left" bgcolor="' + syndicate.bgcolor + '">');
  document.write('<a href="' + syndicate.article_url[syndicate.index] + '">');
  if (syndicate.title_fontbold)  { document.write('<b>'); }
  if (syndicate.title_fontital)  { document.write('<i>'); }
  document.write('<font color="' + syndicate.title_fontcolor + '" face="' + syndicate.title_fontface + '" size="' + syndicate.title_fontsize + '"');
  if (syndicate.title_style)     { document.write(' style="' + syndicate.title_style + '"'); }
  document.write('>');
  document.write(syndicate.article_title[syndicate.index]);
  document.write('<br></font>');
  if (syndicate.title_fontital)  { document.write('</i>'); }
  if (syndicate.title_fontbold)  { document.write('</b>'); }
  document.write('</a>');

  if (syndicate.display_date) {
    if (syndicate.date_fontbold)  { document.write('<b>'); }
    if (syndicate.date_fontital)  { document.write('<i>'); }
    if (syndicate.date_fontunder) { document.write('<u>'); }
    document.write('<font color="' + syndicate.date_fontcolor + '" face="' + syndicate.date_fontface + '" size="' + syndicate.date_fontsize + '"');
    if (syndicate.date_style)     { document.write(' style="' + syndicate.date_style + '"'); }
    document.write('>');
    document.write(' ' + syndicate.article_date[syndicate.index]);
    document.write('<br></font>');
    if (syndicate.date_fontunder) { document.write('</u>'); }
    if (syndicate.date_fontital)  { document.write('</i>'); }
    if (syndicate.date_fontbold)  { document.write('</b>'); }
  }

  if (syndicate.display_summaries) {
    if (syndicate.summary_fontbold)  { document.write('<b>'); }
    if (syndicate.summary_fontital)  { document.write('<i>'); }
    if (syndicate.summary_fontunder) { document.write('<u>'); }
    document.write('<font color="' + syndicate.summary_fontcolor + '" face="' + syndicate.summary_fontface + '" size="' + syndicate.summary_fontsize + '"');
    if (syndicate.summary_style)     { document.write(' style="' + syndicate.summary_style + '"'); }
    document.write('>');
    document.write(syndicate.article_summary[syndicate.index]);
    document.write('<br></font>');
    if (syndicate.summary_fontunder) { document.write('</u>'); }
    if (syndicate.summary_fontital)  { document.write('</i>'); }
    if (syndicate.summary_fontbold)  { document.write('</b>'); }
  }

  document.write('<br></td></tr>\n');
}

// If you want your Webfeeds to be branded, uncomment the following lines.
// To do this, remove the // at the beginning of the next five lines:

//document.write('<tr><td bgcolor="' + syndicate.bgcolor + '">');
//document.write('<a href="#" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
//document.write('<b>Powered by RuralNorthwest.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
