



// 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 ] = 'Coyotes pose threat to small pets at campgrounds';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvcoyotes.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 13, 2006';
  syndicate.article_summary[ syndicate.index ] = '<P>At popular campgrounds, coyotes have become so bold that they pose a serious threat to small pets.</P>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Ten Commandments to Camping with Dogs';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/article_697.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 19, 2006';
  syndicate.article_summary[ syndicate.index ] = '<span style="font-family: verdana;">Millions\nof families take their dogs camping every year, yet few take even the\nmost basic preparations for their dog’s safety and enjoyment Learn the\nTen Commandments to follow when camping or RVing with your dog.</span>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Walking the dog should be enjoyable';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvpetswalking.shtml';
  syndicate.article_date[ syndicate.index ] = 'Apr  8, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Walking with your dog should be an enjoyable experience. It can be if you consider your expectations and take time to prepare your dog for a variety of situations. Each walk should have a little "free sniff" time but also short training sessions.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Well equipped first aid kid essential for RVing pets';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvpetfirstaid.shtml';
  syndicate.article_date[ syndicate.index ] = 'Apr  1, 2006';
  syndicate.article_summary[ syndicate.index ] = 'The Cub Scout Motto is Be Prepared. A well equipped first aid kit for our pets provides peace of mind in case of emergency. Rule number one, stay calm and keep the pet calm. Besides the&nbsp;essentials, a first aid handbook must be included in the kit.&nbsp; ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Website debuts about RVing with dogs';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rv_withdogs.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 30, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Recreational vehicle enthusiasts who travel with dogs have a new online resource in <a target="_blank" href="http://www.rvingwithdogs.com/">RVingWithDogs.com</a>. The website includes daily commentary by editors Julee and Jack Meltzer as well as a directory of "dog-friendly" campgrounds.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Is your pet overweight? Here\'s what to do';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvoverweightdogs.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 20, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Dogs on the go tend to sit too much, eat too much and get too little\nexercise. They also tend to get&nbsp;fat. How can you tell if your\npouch is a bit porky? Look and feel and the truth will be revealed.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Security for pets on the go';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/xpen.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 13, 2006';
  syndicate.article_summary[ syndicate.index ] = 'The exercise pen is portable, easy to store and sets up quickly for a one night stop or an extended stay.&nbsp;Dogs and cats love being outside with the family. Keep them safe in the Xpen. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = '"Microchip" your pet for peace of mind';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvpetsonthego209.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  7, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Losing a pet while on the road is unbelievably traumatic. To help\nensure you find a lost pet make sure it has a license, rabies tags and\na microchip. A microchip cannot be lost or altered. The database that\nbacks up the microchip is your best insurance for reuniting\nyou&nbsp;with your pet.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Doggie duffles protects pets on the RV road';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/petsonthego207.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  1, 2006';
  syndicate.article_summary[ syndicate.index ] = '<div style="text-align: left;">Preparing the doggie duffle will ensure\nthat you have what you need for your pets on the go.&nbsp;Proper\nleashes, extra collars, grooming supplies, dishes and&nbsp;treats\nshould all be on the list and in the duffle.&nbsp;<br>\n </div>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Feeding your pet: take it seriously';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvpetfood.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 22, 2006';
  syndicate.article_summary[ syndicate.index ] = 'While on the road, what food you buy and where you buy it could make a\nbig difference in the comfort of your traveling pet and those who\ntravel with him. Do not change foods suddenly while on the road or\never. But make sure the product you are buying is fresh. All pet food\nstores are not created equal.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Don\'t forget pet health records before your next trip';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvpetsonthego1.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 13, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Before setting out on the road with your pet, visit your veterinarian.\nAll vaccinations must be updated. Medical records must contain all\ninformation necessary in case of emergency. Make copies of these\nrecords and leave one copy at home in a safe place and keep one with\nyou where you can find it when needed.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Meet our new "RVing with Pets" columnist';
  syndicate.article_url[ syndicate.index ] = 'http://rvtravel.com/publish/rvwithpets1.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 25, 2006';
  syndicate.article_summary[ syndicate.index ] = 'Most pets love to travel. They want to be with their people family wherever that might be. This column is for RVers who travel with pets -- about half of all RVers. bring a long an animal friend on their trips. Dogs are their first choice followed by cats, with a few birds tagging along as well.';
  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');

