



// 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 ] = 'RV Travel: On the RV road again. Plus 2009-2010 RV show lineup';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/newsletter/issue390.shtml';
  syndicate.article_date[ syndicate.index ] = 'Aug  8, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Editor Chuck Woodbury heads off to the Oregon coast for a short RV trip. Plus, see our updated 2009-2010 RV show lineup. And see pics of a bear than wandered into an RVer\'s campsite.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV Travel: Broadcasting live in this issue. RV Doc takes your questions';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/newsletter/issue389.shtml';
  syndicate.article_date[ syndicate.index ] = 'Aug  1, 2009';
  syndicate.article_summary[ syndicate.index ] = 'RVtravel.com embarks on a new era of live broadcasting right on the pages of the newsletter. Today, the RV Doctor stops by to answer questions from readers. It\'s an early house call, but if you miss him you can watch later in our archives.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Fleetwood RV launches 2010 Bounder Classic motorhome';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/fleetwood-bounder-2010.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 29, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Fleetwood RV, Inc. has announced the launch of its 2010 Bounder\nClassic, a value-priced Class A gas motorhome modeled after its best selling RV of the past.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV Doctor to appear on live video broadcast on RVtravel.com';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rv-doc-video-announce.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 28, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The RV Doctor Gary Bunzer will appear on a live video broadcast at RVtravel.com on Saturday, Aug. 1 from 10 a.m. to 11 a.m., Pacific Time. Readers will be invited to submit questions by email to Bunzer about RV repair and maintenance, which he will answer in real time as they watch. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV Travel: Will more people give up house for RV?';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/newsletter/issue388.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 25, 2009';
  syndicate.article_summary[ syndicate.index ] = 'A strange thing is happening to some Hurricane victims who moved into RVs while their homes were rebuilt. Find out what they\'ve decided to do. Plus, Winnebago unveils its new lineup for 2010.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Animal rights group proposes fishy way to save Calif. state park';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/sea-kittens388.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 24, 2009';
  syndicate.article_summary[ syndicate.index ] = 'With California in a big financial pickle, many proposals have come\nforth to rescue it from financial ruin. None are more bizarre than the\nproposal from PETA -- People for the Ethical Treatment of Animals. PETA\nwould be willing to help keep Pescadero State Beach open if state\nofficials would simply change its name to Sea Kitten State Beach.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV maker Winnebago unveils 2010 motorhomes';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/2010-winnebago388.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 24, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Winnebago Industries, Inc., unveiled its 2010 lineup at the company\'s recent\nWinnebago Itasca Travelers Club Grand National Rally. The\nlineup is highlighted by fuel efficient vehicles and a stronger diesel\npresence.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Sales of Spartan Chassis take huge drop in RV market';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/spartan_chassis388.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 24, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Spartan Chassis\' sales to the Class A diesel motorhome market declined\n92.3 percent year-over-year in the current quarter, while backlog for RV\nchassis decreased 46.2 percent year-over-year to $6.7 million as of\nJune 30.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Visits to Florida State Parks set record';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/florida_state_parks388.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 23, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The Florida Department of Environmental Protection\'s\n(DEP) Florida Park Service has announced a new record for state park\nattendance during the 2008-09 fiscal year. More than 21.4 million\npeople visited a Florida state park last fiscal year, an increase of\napproximately 700,000 people, or 3.5 percent, from the previous fiscal\nyear.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV Travel: Home again through land of no traffic';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/issue387.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'RVtravel.com editor Chuck Woodbury completes his three week RV loop around the rural American West on U.S. 395, through northeastern California and eastern Oregon. It\'s wide open space. During one 120-mile stretch of lonely highway, guess what didn\'t happen that sounds almost impossible? Read his essay and find out.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV rolls over steep cliff as RVer walks dog';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/motohome-off-cliff387.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 15, 2009';
  syndicate.article_summary[ syndicate.index ] = 'An RVer stepped out of his motorhome at Depot Bay, Ore., last Sunday to walk his dog and then watched helplessly as his 36-foot motorhome rolled over a steep cliff along the Pacific Ocean.<br><br><br>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV Travel: Editor travels ghostly highway, plus stupid RVer tale';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/issue386.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 11, 2009';
  syndicate.article_summary[ syndicate.index ] = '<span style="font-weight: bold;"></span>The editor reports on a 400-mile "ghostly highway" he traveled last week. And read about one of the worst RV "No No\'s" an RVer can do, and why the cops are now after the guy who did it.<br><br><br><br>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Not easy following Tour de France in team motorhomes';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/tour-de-mohome.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 10, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Tour de France cyclists face a difficult task pedaling for three weeks.\nBut negotiating the race route across vast countryside, ominous\nmountains and often in several countries is not easy in a motorhome.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Updated list of RV manufacturers out of business or bankrupt';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/rv-makers-gone.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul  8, 2009';
  syndicate.article_summary[ syndicate.index ] = '<span class="postbody">Here is a list of RV makers that have gone out of business or who have filed for Chapter 11 bankruptcy\nprotection in 2008 and 2009.</span>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'RV Travel: Editor continues RV romp in American Outback';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/issue385.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul  4, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The editor continues his RV romp through the outback of the American Southwest with his daughter Emily. Plus, the new Fleetwood corporation makes up its mind about honoring warranties of current motorhome owners.';
  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(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 SITENAME.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
