



// 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 ] = 'Nuggets, Pistons swap Iverson for Billups, McDyess';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Denver_Nuggets_78/Nuggets_Pistons_swap_Iverson_for_Billups_McDyess.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 3, 2008 - 4:35:52 PM';
  syndicate.article_summary[ syndicate.index ] = 'The Detroit Pistons shook the NBA in a big way Monday - landing former MVP Allen Iverson from the Denver Nuggets. The Pistons gave up All-Star point guard and former NBA finals MVP Chauncey Billups, top reserve Antonio McDyess and project Cheikh Samb.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Clippers acquire center Marcus Camby from Nuggets';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Los_Angeles_Clippers_85/Clippers_acquire_center_Marcus_Camby_from_Nuggets.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 16, 2008 - 1:24:26 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Clippers acquired center Marcus Camby from the Denver Nuggets on Tuesday for the option to exchange second-round picks with Los Angeles in 2010.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Nene\'s testicular tumor was malignant';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Denver_Nuggets_78/Nene_s_testicular_tumor_was_malignant.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 22, 2008 - 8:58:18 PM';
  syndicate.article_summary[ syndicate.index ] = 'A testicular tumor removed from Denver Nuggets forward Nene was malignant. The team said Tuesday the tumor was discovered early, and tests showed the cancer was isolated.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Nene Web site: forward had tumor removed';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Denver_Nuggets_78/Nene_Web_site_forward_had_tumor_removed.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 15, 2008 - 6:59:15 PM';
  syndicate.article_summary[ syndicate.index ] = 'Denver Nuggets forward Nene underwent surgery Monday to remove a testicular tumor, and a biopsy will determine if it was cancerous. The Brazilian player took an indefinite leave of absence Friday, and there is no timetable for his return.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '76ers pick up F Evans in 4-player swap';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Philadelphia_76ers_66/76ers_pick_up_F_Evans_in_4-player_swap.htm';
  syndicate.article_date[ syndicate.index ] = 'Sep 10, 2007 - 7:26:16 PM';
  syndicate.article_summary[ syndicate.index ] = 'The Denver Nuggets sent forward Reggie Evans and the draft rights to forward Ricky Sanchez to the Philadelphia 76ers on Monday in exchange for swingman Steven Hunter and forward Bobby Jones. The trade is the second between the teams since December, when Allen Iverson joined the Nuggets in a blockbuster deal.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Spurs win series, change itinerary';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/San_Antonio_Spurs_82/Spurs_win_series_change_itinerary.htm';
  syndicate.article_date[ syndicate.index ] = 'May 3, 2007 - 6:06:42 AM';
  syndicate.article_summary[ syndicate.index ] = 'The San Antonio Spurs don\'t have to go back to Denver. They\'re headed to the Western Conference semifinals.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '\'Big Shot Rob\' lifts Spurs over Nuggets';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/San_Antonio_Spurs_82/Big_Shot_Rob_lifts_Spurs_over_Nuggets.htm';
  syndicate.article_date[ syndicate.index ] = 'May 1, 2007 - 2:35:57 AM';
  syndicate.article_summary[ syndicate.index ] = 'Robert Horry keeps adding to his resume and the Denver Nuggets\' playoff losses.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Spurs top Nuggets, take back homecourt';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/San_Antonio_Spurs_82/Spurs_top_Nuggets_take_back_homecourt.htm';
  syndicate.article_date[ syndicate.index ] = 'Apr 29, 2007 - 11:19:06 AM';
  syndicate.article_summary[ syndicate.index ] = 'These San Antonio Spurs suddenly look more king of the mountain than over the hill. The seasoned Spurs took a 2-1 series lead on the youthful Denver Nuggets with a 96-91 victory Saturday night that was fueled by two old pros with a combined quarter century of NBA experience.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Camby wins NBA Defensive Player award';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Denver_Nuggets_78/Camby_wins_NBA_Defensive_Player_award.htm';
  syndicate.article_date[ syndicate.index ] = 'Apr 27, 2007 - 9:19:35 PM';
  syndicate.article_summary[ syndicate.index ] = 'Now that Marcus Camby is the NBA\'s Defensive Player of the Year, he\'s looking ahead — and behind. The Denver Nuggets\' 33-year-old center said that while he cherishes winning the award for the first time in his 11-year pro career, he\'d much rather be celebrating a championship in a couple of months.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Stars realign for Spurs in Game 2 win';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/San_Antonio_Spurs_82/Stars_realign_for_Spurs_in_Game_2_win.htm';
  syndicate.article_date[ syndicate.index ] = 'Apr 26, 2007 - 4:12:57 AM';
  syndicate.article_summary[ syndicate.index ] = 'Manu Ginobili knew Game 2 would have to be different after the San Antonio Spurs\' top three scorers delivered less-than-stellar performances in the opening-game loss to the Denver Nuggets. He was right and the Spurs won 97-88 on Wednesday night to even the first-round series.';
  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');

