



// 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 ] = 'NFL record-setter Slingin\' Sammy Baugh dies at 94';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/NFL_record-setter_Slingin_Sammy_Baugh_dies_at_94.htm';
  syndicate.article_date[ syndicate.index ] = 'Dec 18, 2008 - 8:21:21 AM';
  syndicate.article_summary[ syndicate.index ] = 'People never forgot Slingin\' Sammy Baugh.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Eli, no-distraction Giants roll over \'Skins 23-7';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/New_York_Giants_108/Eli_no-distraction_Giants_roll_over_Skins_23-7.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 30, 2008 - 6:38:50 PM';
  syndicate.article_summary[ syndicate.index ] = 'The New York Giants have shoved every distraction aside, including a shooting incident involving their star receiver, to become as dominant as, say, a Chicago Bulls team with Michael Jordan.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Romo\'s back, so are Cowboys with 14-10 victory';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Dallas_Cowboys_107/Romo_s_back_so_are_Cowboys_with_14-10_victory.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2008 - 12:58:28 AM';
  syndicate.article_summary[ syndicate.index ] = 'Tony Romo had to learn how to throw with four fingers instead of five, and how to celebrate with his left hand instead of his right.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'DeAngelo Hall joins Redskins';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/DeAngelo_Hall_joins_Redskins.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 7, 2008 - 5:04:56 PM';
  syndicate.article_summary[ syndicate.index ] = 'DeAngelo Hall didn\'t stay unemployed for long.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Portis\' 145 yards rushing leads \'Skins past Eagles';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/Portis_145_yards_rushing_leads_Skins_past_Eagles.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 5, 2008 - 8:55:17 PM';
  syndicate.article_summary[ syndicate.index ] = 'Another road win against a division opponent has the Washington Redskins in perfect position to make a run at the NFC East. Clinton Portis ran for 145 yards and one touchdown, wide receiver Antwaan Randle El threw a TD pass and the Redskins beat the Philadelphia Eagles 23-17 on Sunday.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Campbell\'s pass to Moss gives Redskins 29-24 win';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/Campbell_s_pass_to_Moss_gives_Redskins_29-24_win.htm';
  syndicate.article_date[ syndicate.index ] = 'Sep 14, 2008 - 6:25:19 PM';
  syndicate.article_summary[ syndicate.index ] = 'In his attempt to redesign the Washington Redskins offense, rookie coach Jim Zorn has constantly peppered Jason Campbell with all sorts of phrases. One of them: \"Avoid, reset and throw.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Giants kick off Super Bowl defense with win';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/New_York_Giants_108/Giants_kick_off_Super_Bowl_defense_with_win.htm';
  syndicate.article_date[ syndicate.index ] = 'Sep 5, 2008 - 7:35:28 AM';
  syndicate.article_summary[ syndicate.index ] = 'The New York Giants won the Super Bowl with defense and they kicked off defense of that title with more of the same.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Redskins get Jason Taylor from Dolphins';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/Redskins_get_Jason_Taylor_from_Dolphins.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 20, 2008 - 10:43:12 PM';
  syndicate.article_summary[ syndicate.index ] = 'Jason Taylor wanted out of Miami, and Bill Parcells seemed only too happy to trade the \"Dancing with the Stars\" defensive end.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Redskins fire coaches Williams, Saunders';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/Redskins_fire_coaches_Williams_Saunders.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 27, 2008 - 3:12:10 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Washington Redskins seem to have a whole lot of their coaching staff in place for next season - except for the head coach. And that head coach won\'t be Gregg Williams. Or Al Saunders.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Joe Gibbs resigns as Redskins coach';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Washington_Redskins_110/Joe_Gibbs_resigns_as_Redskins_coach.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 8, 2008 - 2:45:44 PM';
  syndicate.article_summary[ syndicate.index ] = 'After the toughest season of his Hall of Fame career, one that tested his leadership like never before, Joe Gibbs is stepping down. He resigned as coach and team president of the Washington Redskins on Tuesday, three days after a playoff loss ended an inspirational late-season run that followed the death of safety Sean Taylor.';
  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 = '#003366'; }
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] + '">');
  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('<p><b>Powered by YourSite.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');

