



// 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 ] = 'Safety helmets strongly recommended by Dressage Committee';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_27743.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul  1, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Following the accident in which Courtney King-Dye (USA) sustained serious head injuries in a schooling fall in Florida earlier this year, the FEI Dressage Committee has today issued a recommendation regarding the wearing of protective headgear.<br />\n <br />\nThe FEI Dressage Committee strongly recommends that all riders should wear properly fastened safety helmets when training and in pre-competition warm-ups at all international Dressage shows.<br />\n <br />\nRiders still have the choice of wearing protective headgear in the competition arena.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'riders4helmets National Helmet Awareness Day July 10th, 2010';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_27660.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 21, 2010';
  syndicate.article_summary[ syndicate.index ] = '<i>Helmet Manufacturers to offer discounts through participating retailers<br />\n</i><br />\nThe riders4helmets campaign operated by helmet advocate Jeri Bryant and supported by SUCCEED®, has organized a National Helmet Awareness Day endorsed by the United States Equestrian Federation, to be held on July 10th, 2010. riders4helmets has teamed up with leading helmet manufacturers to offer discounts on helmets to equestrians via participating retailers Nationwide on this day. Helmet brands that are to be included in the promotion to date include: Troxel, Charles Owen, GPA and Aegis (Devon-Aire). Visit www.riders4helmets.com to locate a dealer near you. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'You Can Ride Down the Center Line at the 35th Anniversary of Dressage at Devon';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_26536.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Dressage riders! 2010 is the year to make dreams come true at Dressage at Devon. To celebrate the show\'s 35th Anniversary, the qualifying criteria for the 2010 show have been changed. Minimum qualifying scores have been eliminated giving more riders the opportunity to experience this historic event. Instead, submit your highest scores for the class level entered. These scores will be ranked on closing day to fill the class. This is your chance to ride down centerline and join the ranks of the most celebrated dressage competitors in American history. Those participating as spectators will find the 35th Anniversary show the most exciting in the event\'s storied history. More surprises will be unveiled throughout the coming year. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'FREEDOM FARM\'S JULY 15TH DRESSAGE SHOW IS THE ONLY RECOGNIZED SHOW IN NJ TO AWARD CASH PRIZES';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_25571.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Freedom Farm will host New Jersey’s only ESDCTA recognized dressage show that will award cash prizes in every category, on Wednesday, July 15th.  This will be the 3rd year that Freedom Farm will open its doors to dressage enthusiasts from New Jersey, Pennsylvania and New York.  50% of the entry fee money will go towards cash prizes through 3rd place in each class except golden oldies where there will be non-cash prizes and ribbons, through 6th.place. Competitors will ride two tests and the competitor’s scores will be averaged to determine the winners.  ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'US Festival of Champions, Exquis World Dressage Masters, Aachen on Coverage Calendar for www.dressage-news.com';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_25543.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 10, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The Internet web site, www.dressage-news.com is maintaining its coverage of the world\'s premier dressage events with the Exquis World Dressage Masters at Cannes, the U.S. Festival of Champions at Gladstone, New Jersey, and the World Equestrian Festival CHIO Aachen, Germany on the calendar for June.<br />\n<br />\nSince launching less than two months ago, dressage-news has provided on-the-spot coverage of the FEI World Cup in Las Vegas, the Exquis World Dressage Masters in Munich, Germany and the Raleigh CDI World Cup in North Carolina. Hundreds of other video, photo and news reports of goings on in the global dressage community have been posted.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Rocher Retires from International Competition';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_25208.shtml';
  syndicate.article_date[ syndicate.index ] = 'Apr 24, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Gypsy Woods Farm owners Charles (Chuck) and Joann Smith announce that the beloved, crowd-pleasing Westfalen mare, Rocher (Rolls Royce), will retire from International competition.<br />\n <br />\n“Rocher took a dream and made it a reality,” states Chuck “she took us all over the world and filled us with pride. She has incredible character and inspired her fans wherever she showed.”<br />\n <br />\nRocher came to the United States in 2000 to be ridden by George Williams for the Smith family and Gypsy Woods Farm. Her career was highlighted with a 5th place finish in the 2003 World Cup Freestyle championships in Goteborg, Sweden. In the same year she was named U.S. Dressage Federation Grand Prix Horse and Grand Prix Freestyle Horse of the Year as well as Chronicle of the Horse Dressage Horse of the Year.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Lars Petersen &amp; Success Win Holiday &amp; Horses Wellington CDI 3* Dressage Grand Prix Freestyle';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_24231.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec  9, 2008';
  syndicate.article_summary[ syndicate.index ] = '<br />\n     Denmark\'s Lars Petersen played his crowd-wowing cartoon medley to Success to capture his second straight major Grand Prix Freestyle with a convincing win at the Holiday &amp; Horses CDI 3* at the Palm Beach International Equestrian Center Saturday night.<br />\n     The score of 73.90 per cent with four of the five judges awarding first place for the longtime partnership that began in Europe and flowered in America edged out 2006 World Cup Finalist Arlene "Tuny" Page and Wild One of the USA who placed second with 70.00 per cent and the USA\'s Tara Stegen and New Tango finished third on 67.55 per cent.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Elizabeth Niemi Rides with Klaus Balkenhol At the 2008 International Dressage Symposium';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_24033.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 29, 2008';
  syndicate.article_summary[ syndicate.index ] = '<br />\nElizabeth Niemi, a well established FEI dressage competitor and trainer of Niemi Dressage, rode with Klaus Balkenhol, Chef d’Equipe for the United States Dressage Team, in the 2008 International Dressage Symposium, at Maplewood Warmbloods Farm on October 18 and 19th. This is a two-day United States Dressage Federation (USDF) University accredited symposium headlined with three of the world’s dressage masters.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Iron Spring Farm\'s Pilgrim ISF Selected for Stallion Testing';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_23966.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 23, 2008';
  syndicate.article_summary[ syndicate.index ] = '<br />\nIron Spring Farm\'s three-year-old homebred Friesian stallion, Pilgrim ISF, was awarded the prestigious First Premie Star designation and was selected for KFPS stallion testing during the FHANA KFPS keuring September 29, 2008.  Iron Spring Farm\'s success during the keuring also includes Pilgrim\'s dam, Toltsje fan\'t Boekehof, receiving an 82.5 on her IBOP (performance) test to earn the prestigious Model designation. She also received the Champion Mare award.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Dawn Bernardo Makes Her Mark at Great American Insurance Group USDF Region 8 Dressage Championships';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_23742.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 26, 2008';
  syndicate.article_summary[ syndicate.index ] = '<br />\n     Dressage trainer and instructor, Elizabeth Niemi, returned home from the GAIG/USDF Region 8 Dressage Championships with a new star in her stable. Niemi’s student, Dawn Bernardo, went Reserve Champion in the adult amateur Third Level Championship Class on Sunday afternoon, posting a score of 66.279%. After a very rainy start to the show, the sun came out for Bernardo and her horse, Welthyn, as they stepped into the ring first.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'USDF Goes Green';
  syndicate.article_url[ syndicate.index ] = 'http://www.bridleandbit.com/artman/publish/article_23280.shtml';
  syndicate.article_date[ syndicate.index ] = 'Aug  1, 2008';
  syndicate.article_summary[ syndicate.index ] = 'The United States Dressage Federation announced today the start of its “Going Green” Campaign.  The campaign was developed to manage costs in a tough economy and support worldwide environmental efforts while continuing to provide the best in member benefits and services.<br />\n<br />\nThe first major step in the effort was the launch of the USDF Web site last fall which has allowed USDF to provide extensive information and services to its members online, reducing paper usage, shipping costs, and staff processing time.';
  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');
