



// 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 ] = 'Troy Ross is the NEW Contender Champion!';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Troy_Ross_is_the_NEW_Contender_Champion.htm';
  syndicate.article_date[ syndicate.index ] = 'Feb 26, 2009 - 12:44:40 PM';
  syndicate.article_summary[ syndicate.index ] = 'Canada\'s Troy Ross proved that the two knockouts he administered to his opponents during The Contender tournament were no fluke. A knockout with each hand deemed him a really tough customer. And so he was!  ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender four, week 10, round two - Ehikhamenor and Hoye move into semi-finals';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_four_week_10.htm';
  syndicate.article_date[ syndicate.index ] = 'Feb 13, 2009 - 6:59:12 PM';
  syndicate.article_summary[ syndicate.index ] = 'We had another double-header this week, as round two came to a close. There are no members of the Blue Team left. Now the fighters must face off with men that they have lived in the same room with over the past several weeks.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender four, week nine, round two - AK shoots down Escalera';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_Four.htm';
  syndicate.article_date[ syndicate.index ] = 'Feb 5, 2009 - 11:44:36 PM';
  syndicate.article_summary[ syndicate.index ] = 'Alfredo Escalera faced off with AK Laleye. But before that action, Ryan Coyne was sent home due to the cut over his eye, and tempers flare over who should be invited back in his place.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Two wins, two TKOs for Ross';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Two_wins_two_TKOs_for_Ross.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 29, 2009 - 8:38:05 PM';
  syndicate.article_summary[ syndicate.index ] = 'We have moved into the second round of The Contender. There are no more teams now; it becomes every man for himself. The first fight of round two is between Felix Cora, Jr. and Troy Ross.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender four-Week seven (fight seven); Rico Hoye moves into the semi-finals';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_four_week_seven_fight_seven.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 22, 2009 - 11:39:49 PM';
  syndicate.article_summary[ syndicate.index ] = 'We saw two fights on the latest Contender. In the first one, Mike Alexander fought a good battle, but in the end it was Rico Hoye who moved into the semi-final round.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender four - Week six; Tauasa suffers first KO';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_four_-_Week_six_Tauasa_suffers_first_KO.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 15, 2009 - 11:41:07 PM';
  syndicate.article_summary[ syndicate.index ] = 'With three fights left in round one, things are getting interesting. This week\'s episode saw friends become foes, a big TKO, and another fight sealed for the second round.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hino rings the bell of \"Ding-A-Ling Man\"';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Hino_rings_the_bell_of_Ding-A-Ling_Man.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 9, 2009 - 3:04:55 AM';
  syndicate.article_summary[ syndicate.index ] = 'With the Gold Team once again in control, the decision was made that Hino would fight next. But surprisingly, he did not pick Ryan Coyne, the one who has gotten under his skin. Instead, he picked the hard-hitting Darnell Wilson.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender, week four - Gold and blue tied at two each';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_week_three_-_Gold_and_blue_tied_at_two_each.htm';
  syndicate.article_date[ syndicate.index ] = 'Jan 2, 2009 - 3:34:12 AM';
  syndicate.article_summary[ syndicate.index ] = 'The fourth episode of The Contender saw the Gold Team win again to tie with Blue at two wins each. Deon Elam was responsible for giving Team Gold their second victory in a fight that was not as easy as Elam had predicted.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender four; week three - Boxer vs. slugger';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_four_week_three_-_Boxer_vs_slugger.htm';
  syndicate.article_date[ syndicate.index ] = 'Dec 18, 2008 - 11:34:48 PM';
  syndicate.article_summary[ syndicate.index ] = 'The third week of competition brought by far the most active fight we have seen, and at the end of the series it will probably still remain one of the most energetic match-ups.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Contender, week two - Fight two, again to Blue';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Boxing_The_Contender_Recaps_747/Contender_week_two_-_Fight_two_again_to_Blue.htm';
  syndicate.article_date[ syndicate.index ] = 'Dec 12, 2008 - 2:08:56 AM';
  syndicate.article_summary[ syndicate.index ] = 'The second week of Contender saw the Blue Team once again victorious. Alfredo Escalera, Jr. faced off against Jon Schneider in this fight, and while it was not as exciting as last weeks, Escalera showed he has some hitting power.';
  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');

