



// 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 ] = 'Newton Falls Animal Abuse Trial Scheduled For Tuesday, March 16th.  Can you attend to show your support of the animals?';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/newton_falls_trial_tuesday_march_16.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2010';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/web1_037.jpg" height="80" width="60" border=0></td></tr>\n  </table>\nOn November 27, 2009, Happy Trails assisted the Trumbull County sheriff\'s department with the removal of 11 neglected&nbsp;horses and other farm animal from a property in Newton Falls. Your presence in Newton Falls Court on Tuesday will show that Ohio residents will not tolerate animal cruelty in our state. Here\'s the details.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Featured Animal Of The Week - Phoenix The Quarter Horse';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/phoenix_the_quarter_horse_featured_animal.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size=2>  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/webaphoenix.jpg" height="69" width="60" border=0></td></tr>\n  </table>\n</font>Spring is here. Are you ready to ride?&nbsp; Check out Phoenix, a very pretty, chestnut Quarter horse mare! Excellent horse for an intermediate rider. <a href="http://happytrailsfarm.org/artman/uploads/featuredanimalphoenix_001.pdf">Here\'s her flier!</a>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'This Weekend On "Animal Talk", Julie Fisher of Christ Episcopal Church Discusses A Religious Perspective Of Animals And Christianity';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/animals_in_christianity_julie_fisher.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2010';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/copy_of_048_48.jpg" height="65" width="60" border=0></td></tr>\n  </table>\nJoin&nbsp;us for <a href="http://happytrailsfarm.org/show_listing.php">"Animal Talk"</a> this week for an in-depth discussion&nbsp;and possibily a new perspective of&nbsp;animals in Christianity, when <font size=2>Mother Julie Fisher of Christ Episcopal Church in Kent, talks about the importance of the animals in our lives from a Biblical perspective. Listen <a href="http://happytrailsfarm.org/show_listing.php">Saturday at 9:30am</a> and catch <a href="http://happytrailsfarm.org/show_listing.php">Part 2 on Sunday at 10am</a>.</font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = '"Mercy For Animals" And Happy Trails Present.....';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/mercy_for_animals_presentation_in_cleveland.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  8, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size=2>  <table border=0 cellspacing=2 cellpadding=0 width=65 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/mfaweb1.jpg" height="42" width="65" border=0></td></tr>\n  </table>\n</font>Mercy For Animals presents a <em>(free)</em> animal-friendly&nbsp;dinner and a very special presentation by Happy Trails on Thursday, March 25th, at the Cleveland Heights Library. Join us for an in-depth&nbsp;look at Ohio\'s animal cruelty laws and a review of a typical animal cruelty case from the investigation to the trial.&nbsp; Here\'s the details!';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Join Happy Trails For A Special Presentation At The Akron Public Library On Wed., April 14th';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/akron_public_library_special_presentation.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  7, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size=2>  <table border=0 cellspacing=2 cellpadding=0 width=65 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/libraryweb1.jpg" height="51" width="65" border=0></td></tr>\n  </table>\n</font>If you live in the Greater Akron area and would like to learn more about Ohio\'s animal cruelty laws and how an animal cruelty case goes through our court sytem, join us for a very special presentation at the Akron Public Library on Wed., April 14, at 6:30pm.&nbsp; <a href="http://happytrailsfarm.org/artman/uploads/akronlibrarypresentation_001.pdf">Here\'s the flier.</a>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Featured Animal This Week -- Dancer The Horse';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/dancer_the_horse_featured_animal.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 24, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size="2">  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/webdancer1.jpg" height="69" width="60" border=0></td></tr>\n  </table>\n</font>Help us find a home for Dancer the horse! <a href="http://happytrailsfarm.org/artman/uploads/featuredanimalsdancer1.pdf">Here\'s a flier and a&nbsp;great picture of this beautiful mare (goat not included)!</a>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'We\'re Close!!!  8 Bunny Foster Homes Still Needed!';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/need_11_bunny_foster_homes.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 23, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size=2>  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/bunny2.jpg" height="70" width="60" border=0></td></tr>\n  </table>\n</font>After rescuing 35 bunnies,&nbsp;8 doesn\'t seem like very many...but we do still need to find&nbsp;8 more&nbsp;temporary bunny foster homes!&nbsp; We\'ll provide everything you need, including the bunny!&nbsp; Here\'s how you can be a foster (or adoptive!) bunny parent!';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Breaking News -- Our Skidsteer Broke!';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/needing_a_new_skidsteer.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 17, 2010';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=59 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/copy_of_s185.jpg" height="59" width="59" border=0></td></tr>\n  </table>\nA critical piece of equipment at Happy Trails is our skidsteer.&nbsp;Our skidsteer&nbsp;recently broke, and the repairs are too costly in&nbsp;comparison to it\'s value. We are opting to purchase a newer skidsteer because we cannot operate the sanctuary and care for the animals without one. <a href="http://happytrailsfarm.org/artman/uploads/skidsteerfundraisernortheastohio.pdf">Here\'s the scoop!</a>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Stinky George -- A Story About Our Latest Rescued Goat!';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/stinky_george_the_rescued_goat.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 17, 2010';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=59 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/webb_006.jpg" height="68" width="59" border=0></td></tr>\n  </table>\nA stray goat was recently discovered near a busy shopping area of Poland, Ohio. After an interesting rescue, George the goat is now safe and sound at Happy Trails. <a title="Click for PDF version" target="_blank" href="http://happytrailsfarm.org/artman/uploads/stinkygeorge-1.pdf">Here is the story of Stinky George!</a>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Happy Trails In The News....';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/in_the_news.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  8, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size=2>  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/images_001.jpg" height="62" width="60" border=0></td></tr>\n  </table>\n</font>The headline should probably read, when <em>isn\'t </em>Happy Trails in the news?&nbsp; We are grateful that so many stories of animal abuse are now considered media-worthy. Here\'s some of the latest newpaper and television&nbsp;stories, including <a href="http://www.fox8.com/">Fox 8 News coverage!</a>&nbsp;(go to videos/dozens of animals left to die)';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Chesney, A Former Cockfighting Rooster Who Made A Difference';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/publish/article_376.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size="2">  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/copy_of_shawnchesney.jpg" height="69" width="60" border=0></td></tr>\n  </table>\n</font>Chesney, a very handsome rooster, crossed the Rainbow Bridge this past week, but not before he touched hundreds of lives with his appearances at schools, universities, and many community events. <a href="http://happytrailsfarm.org/artman/uploads/chesneytherooster.pdf">What lessons did he leave behind for us?</a>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Happy Trails February 2010 Newsletter Now Available On-Line!';
//  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/uploads/feb2010newsletter.pdf';
  syndicate.article_url[ syndicate.index ] = 'http://happytrailsfarm.org/artman/uploads/feb2010newsletter.pdf';
  syndicate.article_date[ syndicate.index ] = 'Feb  2, 2010';
  syndicate.article_summary[ syndicate.index ] = '<font size="2">  <table border=0 cellspacing=2 cellpadding=0 width=60 align=left>\n   <tr><td><img src="http://happytrailsfarm.org/artman/uploads/web1_030.jpg" height="72" width="60" border=0></td></tr>\n  </table>\n</font>Get a sneak-preview of the latest Happy Trails newsletter! Check out the February 2010 edition before the hard copies even get back from the printer!&nbsp;';
  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('</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');
