



// 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 ] = 'Southern Maryland RC&D Mini Grant Program';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/2012/Southern_Maryland_RC_D_Mini_Grant_Program.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 29, 2011 - 9:59:33 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Southern Maryland Resource Conservation and Development (RC&D) Board has announced that applications for the Mini Grant Program are available. Projects selected for funding will assist RC&D in implementing its Annual Plan and Area Plan which are both focused on community development, land conservation, land management and water management in Charles, Calvert, St. Mary’s and Anne Arundel counties. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2012 Annual Plan of Work';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/2012/2012_Annual_Plan_of_Work.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 28, 2011 - 12:24:24 PM';
  syndicate.article_summary[ syndicate.index ] = 'The 2012 Annual Plan of Work was recently completed by the Board. The Plan of Work highlights the projects that the Board will be involved in during and after the next fiscal year. Click on the title for more information.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'We\'ve Moved!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/We_ve_Moved.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 16, 2011 - 11:16:15 AM';
  syndicate.article_summary[ syndicate.index ] = 'Southern Maryland RC&D is happy to announce that we have relocated to the St. Mary\'s County Agricultural Services Center in Leonardtown, MD. Our new office and mailing address is: <br/>\n26737 Radio Station Way, Suite D<br/>\nLeonardtown, MD 20650<br/>\n<br/>\nYou can find us by phone at (301) 475-8427 extension 6 and by fax at (301) 475-8391.  <br/>\n<br/>\nFor information via email, write to us at somdrcd@somdrcd.org. <br/>\n<br/>\nThanks for your patience throughout this process, and we look forward to continuing to serve Southern Maryland from our new home!<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Raise Funds for RC&D in Your Online Search!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Raise_Funds_for_RC_D_in_Your_Online_Search.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 3, 2010 - 12:53:13 PM';
  syndicate.article_summary[ syndicate.index ] = 'Click here to read more about how you can use GoodSearch.com to meet your internet search needs AND raise funds for Southern Maryland RC&D! ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Potomac Heritage Explorer: Your Online Guidebook to the Potomac Heritage National Scenic Trail';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Potomac_Heritage_Explorer_Your_Online_Guidebook_for_the_Potomac_Heritage_National_Scenic_Trail.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 2, 2010 - 1:17:55 PM';
  syndicate.article_summary[ syndicate.index ] = 'Begin your plans for experiencing the Potomac Heritage National Scenic Trail online with the Potomac Heritage Explorer (www.potomacheritage.net), an itinerary-based travel and information blog highlighting sites along the entire length of the PHNST corridor. Trips range from short cycling adventures, to day trips for birders, overnight stays at historic lock houses, and paddling excursions in the Potomac and its watershed. You\'ll find trip suggestions, an interactive map for each segment of the PHNST, and photos that will convince you it\'s worth the trip! Click to read more...';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Volunteer Shoreline Planting at Indian Head a Success!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Volunteer_Shoreline_Planting_at_Indian_Head_a_Success.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 1, 2010 - 12:53:43 PM';
  syndicate.article_summary[ syndicate.index ] = 'Construction is complete on 5,000 linear feet of shoreline as part of RC&D&#8223;s partnership with the Charles Soil Conservation District to implement erosion control and shoreline stabilization at Naval Support Facility Indian Head.  To finalize the project, however, RC&D has partnered with the National Aquarium of Baltimore to plant approximately 1,500 trees, 50 shrubs, and 17,200 wetland plugs with help from the Maryland Conservation Corps, Charles County Master Gardeners, and other volunteers.  The first planting event took place over three days in late October.  <br/>\n<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'National RC&D Week 2010 Contest Winners Announced!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/National_RC_D_Week_2010_Contest_Winners_Announced.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 27, 2010 - 2:13:05 PM';
  syndicate.article_summary[ syndicate.index ] = 'Southern Maryland RC&D recently celebrated National RC&D Week 2010 by holding a coloring and poster contest in area schools. We received 37 poster contest entries and 182 coloring entries, and we thank all the students, schools, and parents for their support in making this another successful RC&D Week! Click on the headline to see the winning entries of this year\'s contest. <br/>\n<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'RC&D Welcomes New Student Board Member';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/RC_D_Welcomes_New_Student_Board_Member.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 25, 2010 - 3:15:18 PM';
  syndicate.article_summary[ syndicate.index ] = 'Southern Maryland RC&D welcomes aboard Khadijah Brooks as a Student Board Member.  Ms. Brooks is a senior at Thomas Stone High School.  She is interested in pursuing a career in Environmental Science or Environmental Engineering.  RC&D looks forward to having Ms. Brooks\'s perspective and input over the coming year. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2010 Indian Head 100';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/2010_Indian_Head_100.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 25, 2010 - 3:08:53 PM';
  syndicate.article_summary[ syndicate.index ] = 'The Oxon Hill Bicycle and Trail Club had its Southern Maryland Century – the Indian Head 100 - on September 12. Heavy rain that morning reduced the number of riders to 248 from the expected 600. Fortunately, the rain stopped at about 8 am, and the riders enjoyed the ride, with much of the route being along the Potomac Heritage National Scenic Trail from Indian Head to Chapel Point. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Bald Eagle Banding';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Bald_Eagle_Banding.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 17, 2010 - 10:11:50 AM';
  syndicate.article_summary[ syndicate.index ] = 'We may think of Bald Eagles as intimidating predators, however, eaglets are very docile while still only a few weeks old.  Watch this video as Libby Mojica, Biologist with the Center for Conservation Biology at the College of William and Mary bands an eaglet and explains what the bands mean.   Seth Berry, Environmental Specialist with the Naval Support Facility Indian Head, assists in this important monitoring effort taking place on the Naval base.  ';
  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="_self">');
  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="_self">');
document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
// document.write('<p><b>Powered by Southern Maryland RC&D</b></font></a>');
document.write('<br><br></b></font></td></tr>\n');

