



// 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 ] = 'Registration Information Available for 2010 Mid-Atlantic RC&D Conference (September 15-17 in Annapolis, MD)';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Registration_Information_Available_for_2010_Mid-Atlantic_RC_D_Conference_September_15-17_in_Annapolis_MD.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 21, 2010 - 2:27:07 PM';
  syndicate.article_summary[ syndicate.index ] = 'Energizing the Future of RC&D: Click here for more information and to register! ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Indian Head Works Toward Becoming a Trail Town';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Indian_Head_Works_Toward_Becoming_a_Trail_Town.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 21, 2010 - 1:57:02 PM';
  syndicate.article_summary[ syndicate.index ] = 'With help from Beth Porter (National Park Service), Peggy Palmer (Chair, Indian Head Economic Development Commission), Heidi Fick (Charles County Park Manager) and Cathy McCollom (Trail Town Program Director), Indian Head citizens, elected officials and interested organizations have formed a committee to pursue the transformation of the town of Indian Head to a Trail Town.  The benefits of the newly opened Indian Head Rail Trail are the primary focus of this initiative, but the Town\'s location along the Potomac Heritage National Scenic Trail also makes it well-positioned to become a Trail Town, \"a small town center of commerce for bikers, visitors, and residents.\" ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'As Farmers and Hunters Feeding the Hungry Wraps up Mini-Grant, Dynamic Partnership with RC&D Continues';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/As_Farmers_and_Hunters_Feeding_the_Hungry_Wraps_up_Mini-Grant_Dynamic_Partnership_with_RC_D_Continues.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 14, 2010 - 2:28:57 PM';
  syndicate.article_summary[ syndicate.index ] = 'RC&D recently announced its new partnership with Southern Maryland Farmers and Hunters Feeding the Hungry (FHFH) as a result of a $5000 mini-grant received from the National Association of RC&D Councils.  We are happy to report that Southern Maryland FHFH estimates 14,540 meals from 78 deer totaling 3,635 pounds of donated meat were supplemented with high protein, low-fat venison from the $5,000 in mini-grant funds. That is about 34 cents per meal to add quality protein to meals for those in need. These grants funds not only increased the quantity of meat available to supplement meals distributed at food distribution centers, but they also helped to extend the length of time Southern Maryland FHFH was able to donate venison to the centers and pantries by two months.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Annual Awards Dinner Held April 30!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Annual_Awards_Dinner_Held_April_30.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 7, 2010 - 10:48:07 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Southern Maryland Resource Conservation & Development Council (RC&D) recently celebrated another year of successful partnerships in Southern Maryland at their Annual Awards Dinner on April 30th at the Greater Waldorf Jaycees in Waldorf, MD.  Over 50 people attended the dinner including Dick Myers-Assistant to Senator Barbara Mikulski, Senator Thomas “Mac” Middleton, Delegate Peter Murphy, Candidate for Charles County Commissioner Ken Robinson, Secretary of Agriculture Buddy Hance and USDA-NRCS Maryland State Conservationist Jon Hall.  ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'LandServer.org Assessment Tool Launched!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/LandServer_org_Assessment_Tool_Launched.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 5, 2010 - 2:31:31 PM';
  syndicate.article_summary[ syndicate.index ] = 'Thanks to hard work at the Pinchot Institute for Conservation, Sustainable Solutions, LLC, and the Alliance for the Chesapeake Bay, LandServer has been launched online!  LandServer data is currently available for Maryland and Delaware. Plans are set to make data from the remaining Chesapeake Bay states live by the end of Summer 2010.  ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Millbrook Farm Grist Mill Designated 2010 Endangered Maryland Site';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Millbrook_Farm_Grist_Mill_Designated_2010_Endangered_Maryland_Site.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 19, 2010 - 11:37:24 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Millbrook Farm Grist Mill is the last surviving water-powered grist mill in Charles County.  The mill was recently featured in the March/April issue of Maryland Life magazine as one of the 2010 Endangered Maryland sites. Owned by the Silbaugh family, it is located in Nanjemoy, MD very near the town\'s original post office and general store. Southern Maryland RC&D is currently working with the Silbaughs to explore restoration opportunities and obtain the necessary funds.  ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Thomas Stone High School Job Shadow Day';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Thomas_Stone_High_School_Job_Shadow_Day.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 26, 2010 - 11:31:16 AM';
  syndicate.article_summary[ syndicate.index ] = '<'+'!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\n         \n\n      <table border=\"0\" cellspacing=\"0\" cellpadding=3 align=\"left\" width=\"200\">\n         <tr><td>\n         \n         \n\n         <img src=\"http://www.somdrcd.org/articles/uploads/1/Michelle_Edelen_002_thumb.jpg\" border=\"1\" alt=\"Michelle_Edelen_002.jpg\" width=\"200\"  height=\"150\"><br clear=\"all\">\n            <span class=\"image_caption\"></span>\n\n      		</td></tr>\n      </table>\n\n         \n      \n\n\n\n      \n\n   \n\n\n\n   \n<'+'!-- /templateDebugMode: end template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\n On Friday February 26, 2010 Michelle Edelen got to experience a day at the office. A student of Thomas Stone High School, she enjoyed the experience of learning outside of the classroom.  She learned about the sundry of programs and activities they are involved in and the various aspects of agriculture. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'RC&D Matches 100% for Outreach Grant to Farmers and Hunters Feeding the Hungry!';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/RC_D_Matches_100_for_Outreach_Grant_to_Farmers_and_Hunters_Feeding_the_Hungry.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2010 - 3:18:20 PM';
  syndicate.article_summary[ syndicate.index ] = 'The Southern Maryland Resource Conservation & Development (RC&D) Board, Inc. is pleased to announce that at our Winter Board Meeting held January 21, 2010, the Board voted to offer Southern Maryland Farmers and Hunters Feeding the Hungry (FHFH) a $5,000.00 match to supplement the grant received from the National Association of RC&D Councils awarded in December 2009.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Southern MD Nonprofits Partner to Feed the Hungry, Control Deer Population';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Southern_MD_Nonprofits_Partner_to_Feed_the_Hungry_Control_Deer_Population.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 21, 2010 - 11:51:52 AM';
  syndicate.article_summary[ syndicate.index ] = 'Thanks to an Outreach Grant from the National Association of Resource Conservation & Development (RC&D) Councils, Southern Maryland RC&D and Southern Maryland Farmers & Hunters Feeding the Hungry (FHFH) have begun a partnership to address hunger in Southern Maryland.  These funds will go towards increasing the number of high-protein meals provided to minority and underprivileged populations in Southern Maryland while simultaneously contributing to improved local deer habitat and herd health through deer population control. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Southern MD RC&D Week - Recap';
  syndicate.article_url[ syndicate.index ] = 'http://www.somdrcd.org/articles/publish/news/Southern_MD_RC_D_Week_-_Recap.shtml';
  syndicate.article_date[ syndicate.index ] = 'Dec 24, 2009 - 3:33:31 PM';
  syndicate.article_summary[ syndicate.index ] = 'Southern MD RC&D recently celebrated National RC&D week by having a coloring and poster contest for school aged children. The Board has received over 700 coloring contest entries and a few posters. Click on the title for more information and photos.';
  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');
