



// 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 ] = 'The Real Truth - Sports Reporters Are No Different Than Political Reporters';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/The_Real_Truth_-_Sports_Reporters_Are_No_Different_Than_Political_Reporters.htm';
  syndicate.article_date[ syndicate.index ] = 'Feb 19, 2009 - 8:54:51 AM';
  syndicate.article_summary[ syndicate.index ] = 'MOPSquad Sports\' Gustavo Reynoso comments on the media\'s treatment of Kobe Bryant.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Pierce, Garnett struggle in Game 3 loss to Lakers';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Los_Angeles_Lakers_86/Pierce_Garnett_struggle_in_Game_3_loss_to_Lakers.htm';
  syndicate.article_date[ syndicate.index ] = 'Jun 11, 2008 - 4:47:29 AM';
  syndicate.article_summary[ syndicate.index ] = 'Paul Pierce is looking forward to Game 4 of the NBA finals, when he\'ll get a second chance to show his hometown what Boston\'s Big Three can do.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Reaction to All-Star Voting';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/Reaction_to_All-Star_Voting.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 27, 2008 - 4:13:05 PM';
  syndicate.article_summary[ syndicate.index ] = 'Who in a million years would\'ve ever thought they\'d see Shaquille O\'Neal and Tracy McGrady both snubbed by the fans for the All-Star Game?  Well, that day has come.  I explain why the coaches should follow suit on O\'Neal but not McGrady, and also why I don\'t have a problem with coaches receiving free iPods from Brandon Roy.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Zeke Should Be Villified/Kyle Korver/More';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/Zeke_Should_Be_Villified_Kyle_Korver_More.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 4, 2008 - 4:34:33 PM';
  syndicate.article_summary[ syndicate.index ] = 'Knicks fans, I feel your pain.  Honestly, I do.  Isiah Thomas should be fired.  Problem is ownership isn\'t listening.  I have a way to make them listen.  You probably won\'t like it though.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2007-08 NBA Preview: The Southwest Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/2007-08_NBA_Preview_The_Southwest_Division.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 18, 2007 - 3:34:23 AM';
  syndicate.article_summary[ syndicate.index ] = 'The 6th and final part of the 2007-08 NBA Preview takes a look at the Southwest Division, home to the reigning and defending NBA champion San Antonio Spurs.  Will Tim Duncan and the gang bring Title #5 to the River Walk, or has the sands in the hourglass finally run out on this team?  And what of the fates of the Mavericks, Rockets, Hornets, and Grizzlies?  Find out by reading this column.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2007-08 NBA Preview: The Northwest Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/2007-08_NBA_Preview_The_Northwest_Division.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 18, 2007 - 3:31:36 AM';
  syndicate.article_summary[ syndicate.index ] = 'Part 5 of the 2007-08 NBA Preview takes us to the Northwest Division; a division full of turmoil, uncertainty, and impending change.  Oh, and two teams looking to once again battle it out for the division crown.  Can the Jazz repeat as division champs, or can the Carmelo-AI combo finally take Denver to the next level?';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2007-08 NBA Preview: The Pacific Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/2007-08_NBA_Preview_The_Pacific_Division.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 16, 2007 - 2:33:31 AM';
  syndicate.article_summary[ syndicate.index ] = 'Part 4 of the 2007-08 NBA Preview takes us to the Pacific Divison, and of course sunny California.  Is the surgence of the Los Angeles Clippers dead?  Can the Lakers overcome the Kobe soap opera?  Are the Warriors for real?  And how bad are the Kings?  One thing is for certain: it\'s still Phoenix\'s division.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2007-08 NBA Preview: The Southeast Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/2007-08_NBA_Preview_The_Southeast_Division.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 15, 2007 - 3:47:28 AM';
  syndicate.article_summary[ syndicate.index ] = 'Part 3 of the 2007-08 NBA Preview takes a look at the Southeast Division, where it could very well be a one-horse race for the division title.  Can Gilbert Arenas bring the Wizards to the top?  He\'ll have to contend with the Heat, Magic, Bobcats, and Hawks to do it.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2007-08 NBA Preview: The Atlantic Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/2007-08_NBA_Preview_The_Atlantic_Division.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 14, 2007 - 4:41:55 AM';
  syndicate.article_summary[ syndicate.index ] = 'Part 2 of the 2007-08 NBA Preview takes us to the Atlantic Division.  Surely, there are some big names in that division.  Three of them will be wearing Celtics green this season.  Kevin Garnett, Ray Allen, and Paul Pierce look to dominate opponents such as the Raptors, Nets, 76ers, and the lowly New York Knicks.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2007-08 NBA Preview: The Central Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Basketball_166/2007-08_NBA_Preview_The_Central_Division.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 13, 2007 - 3:23:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'Part 1 of the 2007-08 NBA Preview kicks off with a look at the Central Division.  Just how much does Detroit have left?  Are the Bulls and Bucks on their way up?  Will LeBron and the Cavs repeat as Eastern Conference Champions?  And what exactly can the Pacers do?  This is a good column, as long as you\'re not LeBron James wearing a Yankees hat.';
  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');

