



// 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 ] = 'Garden Stepping Stones';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/643_Garden_Stepping_Stones.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 13 Oct 2006';
  syndicate.article_summary[ syndicate.index ] = '<P>  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/643thumb.jpg" height="133" width="100" border=1></td></tr>\n  </table>\nGarden stepping stones can really enhance the beauty of any garden. Inspirational garden stepping stones will help you meditate, if you spend quiet time in your personal garden area. Making garden stepping stones is not too hard, and there are several options. I have homemade garden stepping stones at my home. They are made from paving brick cemented to precast concrete pads.</P>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Outdoor Fountains';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/642_Outdoor_Fountains.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 06 Oct 2006';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/642thumb.jpg" height="133" width="100" border=1></td></tr>\n  </table>\nOutdoor fountains can be found in my backyard. My wife loves our outdoor water fountains, and so do the birds. The outdoor garden fountains I have installed have performed well over time. The key is to purchase the right sized pump for your outdoor fountain. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Gas Grills';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/574_Gas_Grills.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 13 Jun 2005';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/574thumb.jpg" height="133" width="100" border=1></td></tr>\n  </table>\nGas grills and bbq grills are very popular. I love cooking on my own grill, even in cold weather. Gas grills can be fueled with natural gas or propane. Each has advantages and disadvantages. Some fire codes do not allow gas grills in multi-family housing. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Outdoor Handball Court';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/N14_Outdoor_Handball_Court.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sun, 05 Jun 2005';
  syndicate.article_summary[ syndicate.index ] = 'Outdoor handball court walls can be made from either concrete blocks or poured concrete. Poured concrete may be harder to work with and more expensive. The wall needs to be designed by an engineer because it can blow over easily in high winds. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Privacy Outdoors ';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/520_Privacy_Outdoors.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 31 May 2004';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/520_1-thumb.jpg" height="74" width="100" border=1></td></tr>\n  </table>\nPrivacy outdoors is minimal in the backyards of homes at some of the new subdivisions. Privacy can be gained with long lasting building materials for a privacy fence, privacy screen, privacy trellis or a mix. Outdoor living need no longer feel like being a fish in a crystal-clear fishbowl if you go out in your yard. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Landscape Design';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/514_Landscape_Design.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 19 Apr 2004';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/514_1-thumb.jpg" height="153" width="100" border=1></td></tr>\n  </table>\nA landscape design that incorporates rocks, mulch, gravel, plants and inspiring landscape art will minimize your work. Yardwork can also be lightened by fillng your landscape with rock gardens, and the results will dazzle, too. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Edging With Granite Cobblestones';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/469_Edging_With_Granite_Cobblestones.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 09 Jun 2003';
  syndicate.article_summary[ syndicate.index ] = 'Landscape edging of granite cobblestones will keep grass at bay and make a crisp lawn edging at sidewalks and driveways. Garden edging saves work. Edging of stone will keep your gravel and grass from socializing. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Arbor';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/456_Arbor.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 10 Mar 2003';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/456_1-thumb.jpg" height="101" width="100" border=1></td></tr>\n  </table>\nAn arbors is a lovely sun shade for dining or relaxing. These garden arbors/patio shades are stylish, simple shade shelters. Building an elegant, yet simple garden arbor will add lots of character to the average patio or backyard. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Handicap Ramps ';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/444_Handicap_Ramps_.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 16 Dec 2002';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/444_1-thumb.jpg" height="75" width="100" border=1></td></tr>\n  </table>\nHandicap accessibility for your loved one with special needs requires planning. Handicap ramps should meet the needs of the individual. Building handicap ramps requires a little bit of your high school math. To build a proper ramp for people who are physically challenged, you may want to exceed minimum standards for ramps to make the ramp easier to navigate at your home. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Outdoor Rooms Create Extra Living Space';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/425_Outdoor_Rooms_Create_Extra_Living_Space.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 05 Aug 2002';
  syndicate.article_summary[ syndicate.index ] = '  <table border=0 cellspacing=2 cellpadding=0 width=100 align=right>\n   <tr><td><img src="http://www.askthebuilder.com/artman/uploads/425_1-thumb.jpg" height="133" width="100" border=1></td></tr>\n  </table>\nOutdoor rooms create extra living space. Decks, a patio, an outdoor living room, garden rooms - even outdoor kitchens are possible. An outdoor room helps families who\'ve outgrown their homes with additional outdoor living space to enjoy. ';
  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');
