



// 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 ] = 'Pressure Washer Basics Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/Pressure_Washer_Basics_Video.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 07 May 2007';
  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/pressure_washer_thumb.jpg" height="81" width="100" border=1></td></tr>\n  </table>\nA pressure washer is a fantastic tool, but if used\nincorrectly can cause many problems. Tim Carter of AsktheBuilder.com\ndemonstrates the basics about pressure washers and power washers so you\nget excellent results without hurting your property or yourself.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Lawn Mowers Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/Lawn_Mowers_Video.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 03 May 2007';
  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/lawn_mowers_thumb.jpg" height="82" width="100" border=1></td></tr>\n  </table>\nLawn mowers and lawn tractors are great machines and the latest models have some features worth checking out. New, fancy zero turn mowers and four wheel steer mowers can make mowing your lawn quicker and easier. Tim Carter of AsktheBuilder.com takes you through some of those new lawn mower features.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bathroom Exhaust Fans Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/Bathroom_Exhaust_Fans_Video.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 30 Apr 2007';
  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/bathroom_fan_thumb.jpg" height="82" width="100" border=1></td></tr>\n  </table>\nBathroom exhaust fans don\'t have to be in the bathroom ceiling. You can\nhave a bathroom exhaust fan that works like a central vacuum system,\nwhere the motor is hidden up in your attic so that it\'s whisper quiet.\nTim Carter, of AsktheBuilder.com, walks you through the basics of those\nnew bathroom fans.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Roof Cleaning';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/672_Roof_Cleaning.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 27 Apr 2007';
  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/672thumb.jpg" height="74" width="100" border=1></td></tr>\n  </table>\nRoof cleaning is a task many have to do because moss, lichens and algae can grow on shingles and other roofing materials. Cleaning roof shingles with a pressure washer is possible. Roof shingle cleaning needs to be done carefully with constant inspection to ensure the shingles are not being damaged. I tested a powerful pressure washer on my twenty-year-old roof and was able to clean it without any damage to the shingles.<br>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Drywall Tools';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/670_Drywall_Tools.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 26 Apr 2007';
  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/670thumb.jpg" height="75" width="100" border=1></td></tr>\n  </table>\nDrywall tools come in all different types and levels of quality. If you are just going to hang and finish a few sheets, you can get by with basic tools. But if you intend to be working with lots of drywall, it may pay to invest in an assortment of joint knives, t-square, stilts, a drywall taping banjo and any number of other specialty drywall tools.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Shed Ramps';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/671_Shed_Ramps.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 20 Apr 2007';
  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/671thumb.jpg" height="74" width="100" border=1></td></tr>\n  </table>\nShed ramps are necessary for almost all sheds that have a wooden floor. It is very common for a shed floor to be six or more inches above the outdoor grade level. Shed ramps can be made from wood or metal. Wood ramps are fairly easy to construct, but they must not be too steep.<br>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Copper Tubing Flaring Tool Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/Copper_Tubing_Flaring_Tool_Video.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 16 Apr 2007';
  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/flaring_tool_thumb.jpg" height="82" width="100" border=1></td></tr>\n  </table>\nTim Carter, of AsktheBuilder.com, demonstrates how to flare the end of soft copper tubing to produces leak-proof joints. A copper tubing flaring tool makes the job simple. But, be careful. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Framing Square Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/Framing_Square_Video.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 16 Apr 2007';
  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/framing_square_thumb.jpg" height="82" width="100" border=1></td></tr>\n  </table>\nTim Carter demonstrates the basics of a framing square. Tim shows how to make the marks for a simple roof rafter. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Underground Wire Tunnel Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/Underground_Wire_Tunnel_Video.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 16 Apr 2007';
  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/wire_tunnel_thumb.jpg" height="82" width="100" border=1></td></tr>\n  </table>\nTim Carter demonstrates how to drill a hole under a sidewalk, driveway or walkway so you can install an underground wire. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'You Tub';
  syndicate.article_url[ syndicate.index ] = 'http://www.askthebuilder.com/You_Tub.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sun, 08 Apr 2007';
  syndicate.article_summary[ syndicate.index ] = 'You Tub is not a bathroom fixture. It is possible some people might think it is \na new bathtub, but such is not the case. It is undoubtedly a misspelling of the \npopular website You Tube. I have many home improvement videos on You Tube, so I \nthought I would clarify this on my website. ';
  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');
