



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

// This section of the script is published by the software
syndicate.index = 0;
  syndicate.article_title[ syndicate.index ] = 'Skull Church Heads to Missoula - Monthly Event Hits the Road for Two Days at Wilma Theatre';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-09-0908-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 08 Sep 2011, 20:40:07 EST';
  syndicate.article_summary[ syndicate.index ] = 'KALISPELL, Mont. (SEND2PRESS NEWSWIRE) -- Since its beginnings in summer 2009, Skull Church has delivered killer concerts from popular Christian artists and a clear gospel message to the Flathead Valley. Named for the place of Christ\'s crucifixion, Skull Hill, the monthly event is regularly held at the Liberty and Strand Theatres in Kalispell. This month, for the first time, the event will be taken on the road for two days to the historic Wilma Theater in Missoula. Fresh Life Church produces Skull Church events.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Planning a Trail Riding Vacation and Want to Avoid the Routine \'Nose to Tail\' Debacle?';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-01-0110-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 10 Jan 2011, 11:59:11 EST';
  syndicate.article_summary[ syndicate.index ] = 'ROUNDUP, Mont. (SEND2PRESS NEWSWIRE) -- Sound familiar? You\'re looking forward to a week of riding in the wide open spaces, the feeling of freedom, fresh air on your face and the sounds of wildlife all around you. Instead you find yourself limited to routine rides with your horse\'s nose firmed fixed in another horse\'s butt! Top50Ranches.com feels your pain and has the \'no surprises\' solution with complete riding details for each of their ranches.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Thin Film Coating Witness Samples Now Being Stocked by Lattice Materials';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-06-0622-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 22 Jun 2010, 13:43:06 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOZEMAN, Mont. (SEND2PRESS NEWSWIRE) -- In response to growing demand for rapid delivery and competitive pricing, Lattice Materials recently started stocking thin film coating witness samples for its customers. The program takes the burden and expense of inventory off the company\'s customers and improves their experience with Lattice.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Book: Murder Mystery Solved on Montana Forest after 175 Years';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-12-1217-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 17 Dec 2009, 12:40:54 EST';
  syndicate.article_summary[ syndicate.index ] = 'EUREKA, Mont. (SEND2PRESS NEWSWIRE) -- In his latest novel titled, \'Saving Eden\' (ISBN: 978-0-9791293-9-1, EnDeavours Publishing), set in the Tobacco Valley, Montana author David C. Deavours shares a message of environmental awareness through a story full of mystery, adventure, romance and tragedy. Deavours relocates his main character from his Southern Appalachian home and plunges him into the wilds of Montana\'s Kootenai National Forest, where Nate suddenly finds himself enveloped in an unsolved murder mystery dating in the early 1800\'s.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Stuart Weber Celebrates Upcoming Release of The Fifth Row - A Salute to Vintage American Venues - with Concert';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-04-0430-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 30 Apr 2009, 13:53:42 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOZEMAN, Mont., April 30 (SEND2PRESS NEWSWIRE) -- The Instrumental virtuoso and social networking champion returns to One Prime Recording Location of his breathtaking new album - an acoustic marvel! On Saturday May 2nd, 2009, at 8 p.m., classical guitarist Stuart Weber will be bringing his fret board magic to Bozeman, Montana for an acoustic concert at the Ellen Theatre - one of eleven hallowed locations in which the musician recorded his stunning new album \'The Fifth Row: An Acoustic Tour of Historic Theatres.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Classical Guitar Wonder Stuart Weber Celebrates Great American Concert Houses with New Release \'The Fifth Row\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-01-0127-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 27 Jan 2009, 10:51:30 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOZEMAN, Mont., Jan. 27 (SEND2PRESS NEWSWIRE) -- Over the last two decades, classical guitarist Stuart Weber has emerged as one of today\'s most forward thinking virtuosos in both his interpretations of the classics and his richly melodic original compositions. With his latest offering, \'The Fifth Row\' (Bridger Artists Inc.), he takes that ingenuity of spirit to a whole new arena...make that eleven new arenas! Subtitled An Acoustic Tour of Historic Theaters, The Fifth Row finds Weber taking his guitar on the road for an intimate series of recordings.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Local Coffee House Will Host International \'Birth of Coffee\' Exhibition';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2008-06-0618-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 18 Jun 2008, 17:27:18 EST';
  syndicate.article_summary[ syndicate.index ] = 'MISSOULA, Mont., June 18 (SEND2PRESS NEWSWIRE) -- From June 27th to August 4th Liquid Planet in downtown Missoula will host the International \'Birth of Coffee\' Exhibition. Based on the book of the same name by Daniel and Linda Lorenzetti (ISBN: 978-0609606780), the photography exhibit chronicles the life of coffee from seed to cup.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Letter from Father to Son Blossoms into a New Book and Publishing Company';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-05-0502-006.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 02 May 2007, 20:01:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'EUREKA, Mont. (SEND2PRESS NEWSWIRE) -- EnDeavours Publishing LLC, a newly founded (est. 2006), independent book publisher, recently released its first book titled \'Letters from Home - Thoughts to Carry with You Upon Leaving the Nest\' (ISBN-13 978-0-9791293-7-7). EnDeavours Publishing LLC is owned and operated by husband and wife team David C. and Jennifer Deavours.';
  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; }


// 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
for ( syndicate.index = 0; syndicate.index < syndicate.max_articles ; 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 bgcolor="' + syndicate.bgcolor + '">');
  document.write('<a href="' + syndicate.article_url[syndicate.index] + '" target="_blank">');
  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('Press Release: ');
  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="http://send2pressnewswire.com" target="_blank">');
document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
document.write('<p><b>Powered by Send2Press Newswire</b></font></a>');
document.write('<br><br></b></font></td></tr>\n');

