// 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 ] = 'Although Many Worry About the Economy the 2009 Round Guadeloupe Regatta is  a Big Success';
  syndicate.article_url[ syndicate.index ] = 'http://www.caribbeanracing.com/artman/publish/article_1125.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 29, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The organizers of the Round Guadeloupe Regatta thought long and hard before launching the 2009 edition.    Due to the economic crisis, sponsors were reticent to invest and up to only a few weeks before, there was the possibility that the event could fail.   In the end, it was the Guadeloupe nautical community that decided failure was not an option and supported the event such that 2009 was even more successful than 2008.  Four classes with a total of forty nine boats, two more than in 2008,  were on the start line, Wednesday May 20, in front of Gosier islet under a beautiful sun and 15 knots of wind.  The event which circumnavigates Guadeloupe  is completed in five days with a party in a different local each day after racing.<br />\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Eighth Edition of the Triskell Cup';
  syndicate.article_url[ syndicate.index ] = 'http://www.caribbeanracing.com/artman/publish/article_1054.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 28, 2008';
  syndicate.article_summary[ syndicate.index ] = 'November 8, 9 and 10th, more than 600 sailors and friends gathered on and off the water at Marina Bas du Fort at Gosier for the eighth edition of Guadeloupe\'s Triskell Cup.  60 boats in five classes (Coastal, Beach Cats, Multi-hulls, Spinnaker 1 and Spinnaker 2) competed under ideal conditions, with 10 to 13 knots of wind and blue skies.   After racing, the crowd was in party mode.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'SEA, SAIL and FUN - 8th edition of the Triskell Cup ';
  syndicate.article_url[ syndicate.index ] = 'http://www.caribbeanracing.com/artman/publish/article_1035.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 28, 2008';
  syndicate.article_summary[ syndicate.index ] = 'On the 8th, 9th and 10th of  November, the 8th edition of the now famous Triskell Cup will take place in Pointe-a-Pitre (GUADELOUPE). In 2007, 83 teams representing almost 600 sailors, were competing on the waters of the Cul de sac Marin in front of Gosier Island. The boats were varied in genre and size, from an old Muscadet to a SWANN 62. A tremendous turnout is expected this year.  Crews from Nancy, Cherbourg, Brittany and Italy are  expected  as well as crews from Antigua (Abracadabra, Huey Too, and others, all excellent teams well known on the Caribbean tour). Teams from Martinique also promise to be numerous, and two are expected from Dominica.  Additionally, four feminine crews have expressed interest.<br />\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Route Du Rhum Goes To Brits';
  syndicate.article_url[ syndicate.index ] = 'http://www.caribbeanracing.com/artman/publish/article_187.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 25, 2002';
  syndicate.article_summary[ syndicate.index ] = '<SPAN style="mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold"><STRONG>Victory Of Ellen Macarthur On <EM>Kingfisher</EM></STRONG></SPAN> \n<P class=MsoNormal>Ellen MacArthur on <I>Kingfisher</I> won the Route du Rhum 2002 in the 60-foot IMOCA monohull class, Saturday November 23.</P>\n<P class=MsoNormal>Ellen MacArthur was first over the start line in Saint-Malo, Saturday 9 November at 1345 French time, 1245 GMT. She crossed the finish line, Saturday 23 November at 0216:47 GMT, Friday 22 November, 2316:47 local Guadeloupe time. </P>\n<P class=MsoNormal>The previous record for monohulls in the Route du Rhum was 15 days, 19 hours, 23 minutes (Yves Parlier on <I>Cacolac d\'Aquitaine</I> in 1994), Ellen MacArthur has established a new record time for Saint-Malo/Pointe-à-Pitre, at 13 days, 13 hours and 31 minutes, 47 seconds.</P>\n<P class=MsoHeader style="tab-stops: .5in">Ellen MacArthur has raced a total of 3968 miles at the average speed of 12.19 knots, which means 417 miles longer than the direct route following the curve of the earth of 3551 miles.</P>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'MacArthur Sitting Pretty In Route Du Rhum';
  syndicate.article_url[ syndicate.index ] = 'http://www.caribbeanracing.com/artman/publish/article_183.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 22, 2002';
  syndicate.article_summary[ syndicate.index ] = '<P class=MsoNormal><STRONG>MacArthur Looks Set For Line Hours In A Monhull</STRONG></P>\n<P class=MsoNormal>271 miles from the finish at 0300 GMT today, Ellen MacArthur should catch sight of the island of Désirade in this afternoon if she continues to hang on to an average of 12/13 knots. And this vintage Route du Rhum 2002 will be far from over as there will then be 82 miles to cover to round the Basse-Terre buoy which thanks to its normally transitory winds, may take a good 10 hours with an 8 knot average. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P>\n<P class=MsoNormal>“I’m trying to sleep a bit as the day ahead will be very difficult,”said Ellen onboard Kingfisher in the early morning radio session.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>“I remember catching a glimpse of the island in the small hours during the last Route du Rhum and then I crossed the finish line the following night! There was no wind, absolutely nothing at Basse-Terre four years ago.<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>For the moment I prefer to concentrate on the race alone”.</P>';
  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="http://www.caribbeanracing.com" target="_blank">');
document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
document.write('<b>Powered by caribbeanracing.com</b></font></a>');
document.write('<br><br></b></font></td></tr>\n');
